Koozali.org: home of the SME Server
Legacy Forums => General Discussion (Legacy) => Topic started by: QuayUtewan on June 09, 2005, 11:14:23 PM
-
Ok newbie problem here. I've inadvertently disabled one of my servers by turning off the php service using the services panel. I can still access the machine via ssh, but even the server manager on there isn't functioning. What command can I use to restart the php service?
-
PHP is not a service in the normal sense of background daemons. Instead if the apache is configured to use PHP then the apache runs PHP code through the PHP engine.
So I'm not sure what they turn off when they turn off the "PHP service".
Maybe they change apache config not to include PHP, or perhaps disable cgibin style software from running.
There is a /etc/PHP.ini that might have something that could get you going long enough to fix it in the service manager. But of course any changes there will be lost at reboot until the proper template is re-written.
Hope this sheds some light.
Larry
-
QuayUtewan
>....but even the server manager on there isn't functioning.
Perhaps you turned off server manager ?
To quote a previous poster
"in the services panel of the server-manager, I turned off web, and now server-manager is disabled. What template do I have to edit to turn it on permanently?"
/sbin/e-smith/config httpd-e-smith setprop status enabled
/sbin/e-smith/config httpd-admin setprop status enabled
/sbin/e-smith/signal-event post-upgrade
/sbin/e-smith/signal-event reboot
Don't turn off the web service in future !!
-
So I'm not sure what they turn off when they turn off the "PHP service".
Maybe they change apache config not to include PHP...
Correct.
-
I turned off "php" using the services control panel that was included with the "custom" iso available a little while back. I didn't turn off web services, but the web server is failing to load because it's trying to call php functions and the php isn't responding. It's generating an error message. I don't know the specifics of what that control panel function does. From what gardnc described I would guess that the php engine is off or disabled perhaps?
To address CharlieBrady's question I don't think it has changed the apache config, in fact I think that is the problem since apache is trying to perform something requiring php and it's not there, so there is an error.
I tried the sequence that RayMitchell described without success.
-
QuayUtewan
Maybe try
/etc/init.d/httpd-e-smith restart
/etc/init.d/httpd-admin restart
-
To address CharlieBrady's question I don't think it has changed the apache config, in fact I think that is the problem since apache is trying to perform something requiring php and it's not there, so there is an error.
I didn't ask a question - I made a short statement.
I expect the apache config has changed - looks like you have a contrib which needs php and doesn't check that it is enabled.
You need to follow Ray's instructions, but also (re-)enable php:
/sbin/e-smith/config setprop php status enabled
In future, don't disable php.