View Single Post
Old 3rd August 2011, 00:42
pitchinnate pitchinnate is offline
Junior Member
Join Date: Apr 2007
Posts: 8
Thanks: 1
Thanked 0 Times in 0 Posts
Default Shell script

Ok I did what you said and created a shell script (/usr/local/ispconfig/server/ which has the following lines in it:


/usr/bin/php -q /usr/local/ispconfig/server/test.php

I then created test.php and put the same thing as the other php file I created (pinging google with the exec command).

I then ran as both root and as user ispconfig and it completed successfully for both. Do I need to run the script as a different user? What user do the cron jobs run under? All the files are owned by ispconfig user.
Reply With Quote