Start/Stop and Restart server by PHP
Hello!
I would like write panel with start/stop/restart my server. I start my server in console this command: Quote:
Quote:
Quote:
PHP Code:
|
Because PHP runs as user apache or httpd and your script or cs server runs with different user.
You need to run apache as root, but thats a very very bad idea, or cs server which the same user rights as php is running. |
I have lighttpd. So i change in lighttpd.conf:
Quote:
Now LIGHTTPD isn't start: Quote:
|
Seems like lighttpd is build to not allowed to run the web server with root user, which is a super good idea. Try to run the lighttpd and cs server with a normal user, like "joe" ... you get my point, and make sure that the rights for the cs server belong to joe... because I suppose that server can run also as a normal user not just root.
|
Quote:
|
All times are GMT -5. The time now is 08:03 AM. |