Koozali.org: home of the SME Server

server down: php, mysql, all services disabled [urgent]

Larry

server down: php, mysql, all services disabled [urgent]
« on: August 12, 2003, 12:54:10 PM »
Hi all,

How stupid I am!!! I also know the "urgent" and "please help" doesn't help to go faster but since it is a production server the time is against me.

Well, my server hanged so I tried many things that didn't work. After a while, being quite angry already I decided to go to the server-manager and go to the service page (http://www.e-smith.org/contrib/rpm-index/RPM-e-smith-service-control-1.1.0-01.src.html) to enable/disble services and in a madness move, I disabled everything (but specially php, mysql, imap,  ...) and of course now, my machine is down and since php is disabled, it is impossible to go back to the server-manager to re-enable it.

Config:
# rpm -qa | grep Server
SMEServer-5.1.2_Update3-01

Problem:
I tried manually to re-enable php but probably the dirty way but still not working:

# /sbin/e-smith/config show php
php=service
    UploadMaxFilesize=50M
    status=disabled

# /sbin/e-smith/config setprop php status enable

# /sbin/e-smith/config show php
php=service
    UploadMaxFilesize=50M
    status=enable

# /etc/e-smith/events/actions/conf-php
# /etc/rc.d/init.d/httpd-e-smith graceful
Starting httpd: Syntax error on line 2618 of /etc/httpd/conf/httpd.conf:
Invalid command 'php_flag', perhaps mis-spelled or defined by a module not included in the server configuration
                                                           [ FAILED ]

Just for info:
# grep php4_module /etc/httpd/conf/httpd.conf
 (nothing)
# ls /usr/lib/apache/libphp4.so
/usr/lib/apache/libphp4.so

# grep php /etc/httpd/conf/httpd.conf
#LoadModule php_module         modules/mod_php.so
#LoadModule php3_module        modules/libphp3.so
#AddModule mod_php.c
#AddModule mod_php3.c
#AddType application/x-httpd-php3 .php3
#AddType application/x-httpd-php3-source .phps
#AddType application/x-httpd-php .phtml
AddType application/x-httpd-php .php .php3
php_flag magic_quotes_gpc on
php_flag track_vars on
    AddType application/x-httpd-php .php
    php_flag  magic_quotes_gpc  off
    php_flag  track_vars        on
    AddType application/x-httpd-php .php .php3
    php_flag  magic_quotes_gpc  on
    php_flag  track_vars        on
   
   
   
   
   
    AddType application/x-httpd-php .php .php3 .phtml

# rpm -q e-smith-php
e-smith-php-1.5.0-03


Before breaking down more things, I would apreciate a little help from guru.

Thanks in advance

--
Larry

Michiel

Re: server down: php, mysql, all services disabled [urgent]
« Reply #1 on: August 12, 2003, 04:33:11 PM »
Have you looked at /home/e-smith/configuration?  I believe the service-control pannel stores it's values there, so maybe your problem can be solved by manually enabling all the services in that file and reboot (don't forget to make a copy first :-)

Michiel

Dan Brown

Re: server down: php, mysql, all services disabled [urgent]
« Reply #2 on: August 12, 2003, 06:00:55 PM »
Have you tried going into the server manager again?  Contrary to what you seem to think, it doesn't use PHP.  In any case, I think you need to set the status to "enabled" (with the d on the end").

Larry

Re: server down: php, mysql, all services disabled [urgent]
« Reply #3 on: August 13, 2003, 06:16:38 AM »
Thanks Guys for reply,

Actually that's right I didn't remember that all the parameters were stored in /home/e-smith/configuration [note for later ;-)].

On top of it, after initiating one query (parsing a very long file and then email me the result), I realised early this morning that my quota exceeded, therefore causing this file looping (of course, when I was executing this query, I was logged as root!!!).

By the way, even if I know that the server-manager is not written in php, if you have errors due to it, httdp-admin and httpd-e-smith refused to start :
"Starting httpd: Syntax error on line 2618 of /etc/httpd/conf/httpd.conf:
Invalid command 'php_flag', perhaps mis-spelled or defined by a module not included in the server configuration
[ FAILED ]"

Well, after doing so many things (and I am still not sure what I did, help by my friend remotly), it is finally working.

Thanks again guys for your help, and I promise, when I will be overloaded like yesterday, I will not touch my favourite loved sme.

--
Larry

Alejandro Lengua

Re: server down: php, mysql, all services disabled [urgent]
« Reply #4 on: October 31, 2003, 11:40:25 PM »
Is there a way to simply start php service?