Koozali.org: home of the SME Server

Help needed with php service restart

QuayUtewan

Help needed with php service restart
« 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?

gardnc

Help needed with php service restart
« Reply #1 on: June 10, 2005, 12:49:08 AM »
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

Offline raem

  • *
  • 3,972
  • +4/-0
Re: Help needed with php service restart
« Reply #2 on: June 10, 2005, 02:39:51 AM »
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 !!
...

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Help needed with php service restart
« Reply #3 on: June 10, 2005, 04:15:17 AM »
Quote from: "gardnc"

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.

QuayUtewan

Help needed with php service restart
« Reply #4 on: June 10, 2005, 06:01:20 AM »
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.

Offline raem

  • *
  • 3,972
  • +4/-0
Help needed with php service restart
« Reply #5 on: June 10, 2005, 07:02:26 AM »
QuayUtewan
Maybe try
/etc/init.d/httpd-e-smith restart
/etc/init.d/httpd-admin restart
...

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Help needed with php service restart
« Reply #6 on: June 13, 2005, 02:21:15 AM »
Quote from: "QuayUtewan"

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.