Hi all,
I need to run the following PHP line:
Code:
echo shell_exec('/root/visitors_0.7/visitors -A -m 30 -o html /var/log/httpd/access_log');
I know apache runs as user 'apache' on my server and currently it gives me "permission denied" errors because all the files are owned by root.
What's the best way of giving permission to just these files so it can run?
Or perhaps there is a better way?
Here's my setup:
cloud server on rackspace
CentOS
PHP 5
ls -lh ~/visitors_0.7/
-rwxr-xr-x 1 root root 264K May 15 20:34 visitors
ls -lh /var/www/html/s/
-rw-r--r-- 1 root root 224 May 16 23:16 index.php
Thanks
