Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
hi, i have a problem very extrange. when I run /usr/bin/php /var/www/html/cacti/cmd.php manually, i see the graphs from web.
but when i charge */5 * * * * apache /usr/bin/php /var/www/html/cacti/cmd.php > /dev/null 2>
&1 at the crontab, It ' doesn't work. why?
I have the permissions in this way chown -R apache:apache /var/www/html/cacti/ and the same in /var/cacti
drwxrwxr-x 8 apache apache 4096 Sep 5 15:23 cacti
You said that when you've ran manualy the /usr/bin/php /var/www/html/cacti/cmd.php manually it works good, let me ask you something, you are executing that command as "apache"?
Also, you have to make sure that apache can run /usr/bin/php.