Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: MasthaX on August 24, 2007, 07:53:22 PM
-
Well, i think i killed my server. I was trying to make htaccess work but when i wanted to expand some templates i got an error concerning a error in phpsysinfo. Ok fine, so i did:
yum remove smeserver-phpsysinfo
It showed no errors and so. So i wanted to check if it worked and suddenly my server isnt reacheable anymore(by http). SSH and SAMBA are still working so i think i messed up my apache.
how can i solve this?
p.s. if someone needs logs or any i will post them, i dont know what logs i should post right now.
-
What do you get in your /var/log/httpd/admin_error or error logs ?
-
nothing special to mee. those are just webmail requests i guess
asked for missing languages nl, referer: https://10.0.0.60/server-manager/cgi-bin/qmailanalog
[Fri Aug 24 17:29:30 2007] [error] [client 127.0.0.1] get_languages: Browser asked for missing languages nl, referer: https://10.0.0.60/server-manager/cgi-bin/qmailanalog
[Fri Aug 24 17:29:30 2007] [error] [client 127.0.0.1] get_languages: Browser asked for missing languages nl, referer: https://10.0.0.60/server-manager/cgi-bin/qmailanalog
[Fri Aug 24 17:29:30 2007] [error] [client 127.0.0.1] get_languages: Browser asked for missing languages nl, referer: https://10.0.0.60/server-manager/cgi-bin/qmailanalog
[Fri Aug 24 17:29:39 2007] [error] [client 127.0.0.1] get_languages: Browser asked for missing languages nl, referer: https://10.0.0.60/server-manager/navigation
[Fri Aug 24 17:29:39 2007] [error] [client 127.0.0.1] get_languages: Browser asked for missing languages nl, referer: https://10.0.0.60/server-manager/navigation
[Fri Aug 24 17:29:39 2007] [error] [client 127.0.0.1] get_languages: Browser asked for missing languages nl, referer: https://10.0.0.60/server-manager/navigation
[Fri Aug 24 17:29:39 2007] [error] [client 127.0.0.1] get_languages: Browser asked for missing languages nl, referer: https://10.0.0.60/server-manager/navigation
[Fri Aug 24 17:29:39 2007] [error] [client 127.0.0.1] get_languages: Browser asked for missing languages nl, referer: https://10.0.0.60/server-manager/navigation
[Fri Aug 24 19:47:06 2007] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Fri Aug 24 19:47:07 2007] [notice] Digest: generating secret for digest authentication ...
[Fri Aug 24 19:47:07 2007] [notice] Digest: done
[Fri Aug 24 19:47:07 2007] [notice] Apache configured -- resuming normal operations
-
And what does...
sv status /service/httpd-e-smith
Show ?
-
On another note did you notice that yum was going to remove any other packages when you ran...
yum remove smeserver-phpsysinfo
??
-
i checked yum and it said it was ready to remove one package then got a confirm (Y or N) so i did, after that my server was down
[root@s1 ~]# sv status /service/httpd-e-smith
down: /service/httpd-e-smith: 1s, want up
this is what the status command said.
i tried to restart the httpd server and even rebooted my whole server but that didnt work.
-
i checked yum and it said it was ready to remove one package then got a confirm (Y or N) so i did, after that my server was down
Hmm.
[root@s1 ~]# sv status /service/httpd-e-smith
down: /service/httpd-e-smith: 1s, want up
this is what the status command said.
i tried to restart the httpd server and even rebooted my whole server but that didnt work.
How did you try to start the httpd-e-smith ? What did it say when you tried to restart ? I'm in two minds if we should start a bug report....
-
i did:
/etc/init.d/httpd-e-smith restart
-
/etc/init.d/httpd-e-smith restart
For SME Server that is incorrect, please try...
sv restart /service/httpd-e-smith
That should start the service...
-
[root@s1 ~]# sv restart /service/httpd-e-smith
ok: run: /service/httpd-e-smith: (pid 17726) 0s, normally down
well it still doesnt work, im quite a noob so i dont know what to do.
Is there a way to just reinstall the apache server? if not, i have full backups so.
-
[root@s1 ~]# sv restart /service/httpd-e-smith
ok: run: /service/httpd-e-smith: (pid 17726) 0s, normally down
OK, thats restarted fine, use the same checking commands i.e
sv status /service/httpd-admin
Show results first ?
Then type...
sv restart /service/httpd-e-smith
-
[root@s1 ~]# sv status /service/httpd-admin
run: /service/httpd-admin: (pid 3972) 15310s, normally down; run: log: (pid 2955) 15324s
[root@s1 ~]# sv restart /service/httpd-e-smith
ok: run: /service/httpd-e-smith: (pid 18779) 0s, normally down
[root@s1 ~]#
still its down, but the server is running fine i guess.
-
[root@s1 ~]# sv status /service/httpd-admin
run: /service/httpd-admin: (pid 3972) 15310s, normally down; run: log: (pid 2955) 15324s
[root@s1 ~]# sv restart /service/httpd-e-smith
ok: run: /service/httpd-e-smith: (pid 18779) 0s, normally down
[root@s1 ~]#
still its down, but the server is running fine i guess.
I actually meant to put...
sv restart /service/httpd-admin
But the httpd-admin service was already up, ok from here would you mind taking all the notes and open a bug ticket telling all what we have done here already and attaching your logs to the bug....Thanks.
-
yum remove smeserver-phpsysinfo
MasthaX, do open a bug, I've just tested on my test box downloading that package and removing via yum and nothing affects the server-manager/apache, so my guess is you have changed/removed something else too.
-
Well i did some other stuff but cant remember exactly what. All i did is some soluton on this forum to activate HTACCESS then there was a problem with PHPsysinfo, i removed it and now we're here.
well i dont think i need to fill in a bug report. i think i just messed it all up myself. a reinstall will do i guess.
-
MasthaX
> Well i did some other stuff but cant remember exactly what.
It's good to keep notes of what you do, just in case.
The yum remove command has been demonstrated in these forums to be quite dangerous, and can likely remove a lot of dependencies as well that you don't really want to be removed.
One of the lead developers has recommended NOT to use yum remove, but instead to use
rpm -e packagename
You could do
yum list updates
to see what your system is missing, if indeed there were additional rpms removed by yum, that is causing your current problems.
-
[root@s1 ~]# yum list updates
==============================================================
WARNING: Additional commands may be required after running yum
==============================================================
Loading "fastestmirror" plugin
Loading "smeserver" plugin
Setting up repositories
smeaddons 100% |=========================| 951 B 00:00
updates 100% |=========================| 951 B 00:00
base 100% |=========================| 1.1 kB 00:00
smeos 100% |=========================| 951 B 00:00
smeupdates 100% |=========================| 951 B 00:00
Loading mirror speeds from cached hostfile
Reading repository metadata in from local files
Excluding Packages from CentOS - updates
Finished
Excluding Packages from CentOS - os
Finished
Updated Packages
clamav.i386 0.91.2-1.el4.rf smeupdates
clamav-db.i386 0.91.2-1.el4.rf smeupdates
clamd.i386 0.91.2-1.el4.rf smeupdates
ocrad.i386 0.17-1.el4.rf smeupdates
================================================================
No new rpms were installed. No additional commands are required.
================================================================
[root@s1 ~]#
nothing wrong i guess?
Edit:
I just discoverd some other things. When i go to the servers location( i ussually connect with putty by SSH) and i check it keeps getting the message syntax error in /etc/httpd/conf/httpd.conf on line 719. I checked and there was this:
ScriptAlias /php5-cgi /usr/bin/php5
<Directory /usr/bin/php5>
order deny, allow
deny from all
allow from all
Options ExecCGI
</Directory>
I do have installed PHP5 (CGI) but how do i remove it or remove the template or so?
io used this tutorial to do so.
http://sme.firewall-services.com/spip.php?article46#forum76
-
MasthaX
It looks like nothing untoward happened with the yum remove command.
You can safely run
yum update
later, to update those 4 packages listed.
You need to have a look for any custom template fragments in
/etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/...
and delete the offending fragments
then
expand-template /etc/httpd/conf/httpd.conf
sv t /service/httpd-e-smith
That should get your server working OK again, assuming the above is the only problem it has.
Generally speaking you want to reverse (undo) the changes you made using that Howto.
-
well i really messed it up i guess even those commands bring errors, i will reinstall them i guess.
-
MasthaX
They will bring errors until you delete the offending custom template fragment(s) in the location given.