Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Marko

Pages: [1]
1
CentOS 7 Problems / Cron job does not work
« on: July 28, 2023, 11:34:04 AM »
Hello,
Anyone have idea what's going on with my cron job. Cron is run as i expect but does not execute script and I can't find any error, in cron log I found

Code: [Select]
Jul 28 13:20:01 global CROND[9961]: (username) CMD (wget -qO /dev/null https://site.com/dir/publish_cron.php )
Jul 28 13:20:01 global CROND[9959]: (username) MAIL (mailed 71 bytes of output but got status 0x0001#012)

If I setup same line as root user all is working fine

Code: [Select]
*/10 * * * * wget -qO /dev/null https://site.com/dir/publish_cron.php
But if I set up cron as any other user in that case i have problem, and also this file does not call any mail function inside, i was try to disable firewall but all is same.

2
CentOS 7 Problems / CORS Missing Allow Origin
« on: December 24, 2020, 12:12:17 AM »
Hello
I have using Nginx & Varnish & Apache but can't find solution to fix CORS problem.
I have add in apache vhosts
Code: [Select]
Header set Access-Control-Allow-Origin "*"
In nginx vhosts config
Code: [Select]
add_header 'Access-Control-Allow-Origin' '*';
In php script

Code: [Select]
header("Access-Control-Allow-Origin: *");
header("Access-Control-Allow-Credentials: true"

What i'm missing, where can be problem and why i have "CORS Missing Allow Origin" error constantly?

Pages: [1]