HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Tips/Tricks/Mods (http://www.howtoforge.com/forums/forumdisplay.php?f=29)
-   -   Need to Run Jobqueue from PHP manually (http://www.howtoforge.com/forums/showthread.php?t=44251)

ethanlifka 21st March 2010 03:56

Need to Run Jobqueue from PHP manually
 
Does anyone know how to run the Job Queue manualy through the ISPConfig 3 admin interface.

I created a link that runs the queue and linked it to a .php file.

But I can't get the .php file to run:
/usr/local/ispconfig/server/server.sh

I know that this script is run by a cron every minute, but I want to turn off that cron or change it to every day instead. Then all i need is a way for me to run it after I made changes to the ISPC admin interface. I do not have any clients or users logging into the ISPC admin interface so running the cron every minute is not needed.

It seems that only "root" can run this script.
/usr/local/ispconfig/server/server.sh

How can I make a PHP file run the script as root and not apache.

Thanks

till 21st March 2010 12:59

You can not run the jobqueue manualy from the interface, as the interface does not have permissions for that and it can not have permissions for that as the jobqueue can only be executed by the root user.

Quote:

How can I make a PHP file run the script as root and not apache.
You cant without opening up your system for hackers. The apache webserver may naver be run as root user, thats even compiled into the apache binaries of all linux distributions to prevent such a configuration.


All times are GMT +2. The time now is 08:27.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.