Koozali.org: home of the SME Server

HELP! i think i killed my server

Offline raem

  • *
  • 3,972
  • +4/-0
Re: HELP! i think i killed my server
« Reply #15 on: August 25, 2007, 02:37:15 AM »
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.
...

Offline MasthaX

  • ***
  • 52
  • +0/-0
Re: HELP! i think i killed my server
« Reply #16 on: August 25, 2007, 12:34:02 PM »
[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
« Last Edit: August 25, 2007, 01:12:17 PM by MasthaX »
There's no place like 127.0.0.1

Offline raem

  • *
  • 3,972
  • +4/-0
Re: HELP! i think i killed my server
« Reply #17 on: August 25, 2007, 02:12:31 PM »
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.
...

Offline MasthaX

  • ***
  • 52
  • +0/-0
Re: HELP! i think i killed my server
« Reply #18 on: August 25, 2007, 02:37:00 PM »
well i really messed it up i guess even those commands bring errors, i will reinstall them i guess.
There's no place like 127.0.0.1

Offline raem

  • *
  • 3,972
  • +4/-0
Re: HELP! i think i killed my server
« Reply #19 on: August 26, 2007, 07:59:27 AM »
MasthaX

They will bring errors until you delete the offending custom template fragment(s) in the location given.
...