Apache Server configuration support - I screwed it up (again !)

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > June 2007 > I screwed it up (again !)





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author I screwed it up (again !)
pokhara67

2007-06-14, 1:33 pm

The default install on my Debian-like box was a bit messed up.

So I uninstalled it using apt-get remove apache2 etc etc

I also deleted every apache sounding directory on the box

NOW when I try and install it fresh I get

root@knoppix:~# apt-get install apache2
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
apache2-mpm-worker
The following NEW packages will be installed:
apache2 apache2-mpm-worker
0 upgraded, 2 newly installed, 0 to remove and 282 not upgraded.
Need to get 0B/459kB of archives.
After unpacking 766kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Selecting previously deselected package apache2-mpm-worker.
(Reading database ... 149782 files and directories currently
installed.)
Unpacking apache2-mpm-worker (from .../apache2-mpm-
worker_2.2.3-4_i386.deb) ...
Selecting previously deselected package apache2.
Unpacking apache2 (from .../apache2_2.2.3-4_all.deb) ...
Setting up apache2-mpm-worker (2.2.3-4) ...
grep: /etc/apache2/mods-enabled/*.load: No such file or directory
It looks like you've deleted /etc/apache2/mods-available/cgid.load, so
mod_cgid cannot be enabled. To fix this, please purge and reinstall
apache2.2-common.
Starting web server (apache2)...apache2: Could not open configuration
file /etc/apache2/apache2.conf: No such file or directory
failed!
invoke-rc.d: initscript apache2, action "start" failed.

Setting up apache2 (2.2.3-4) ...
root@knoppix:~#


I tried apt-get remove apache2.2-common and then apt-get install
apache2.2-common to no avail.

kwan

2007-06-14, 1:33 pm

On Jun 14, 7:43 am, pokhara67 <pokhar...@googlemail.com> wrote:
> The default install on my Debian-like box was a bit messed up.
>
> So I uninstalled it using apt-get remove apache2 etc etc
>
> I also deleted every apache sounding directory on the box
>
> NOW when I try and install it fresh I get
>
> root@knoppix:~# apt-get install apache2
> Reading package lists... Done
> Building dependency tree... Done
> The following extra packages will be installed:
> apache2-mpm-worker
> The following NEW packages will be installed:
> apache2 apache2-mpm-worker
> 0 upgraded, 2 newly installed, 0 to remove and 282 not upgraded.
> Need to get 0B/459kB of archives.
> After unpacking 766kB of additional disk space will be used.
> Do you want to continue [Y/n]? y
> Selecting previously deselected package apache2-mpm-worker.
> (Reading database ... 149782 files and directories currently
> installed.)
> Unpacking apache2-mpm-worker (from .../apache2-mpm-
> worker_2.2.3-4_i386.deb) ...
> Selecting previously deselected package apache2.
> Unpacking apache2 (from .../apache2_2.2.3-4_all.deb) ...
> Setting up apache2-mpm-worker (2.2.3-4) ...
> grep: /etc/apache2/mods-enabled/*.load: No such file or directory
> It looks like you've deleted /etc/apache2/mods-available/cgid.load, so
> mod_cgid cannot be enabled. To fix this, please purge and reinstall
> apache2.2-common.
> Starting web server (apache2)...apache2: Could not open configuration
> file /etc/apache2/apache2.conf: No such file or directory
> failed!
> invoke-rc.d: initscript apache2, action "start" failed.
>
> Setting up apache2 (2.2.3-4) ...
> root@knoppix:~#
>
> I tried apt-get remove apache2.2-common and then apt-get install
> apache2.2-common to no avail.


Is the apache service is running?

HansH

2007-06-14, 1:33 pm

"pokhara67" <pokhara67@googlemail.com> schreef in bericht
news:1181825006.996806.81180@g37g2000prf.googlegroups.com...
The [re]install reported
> It looks like you've deleted /etc/apache2/mods-available/cgid.load, so
> mod_cgid cannot be enabled.
>To fix this, please purge and reinstall apache2.2-common.


hinting how to cure your problem, as 'purge' is an option to apt-get
Just 'man apt-get' for details

HansH



pokhara67

2007-06-14, 1:33 pm

On Jun 14, 3:26 pm, kwan <kwan.ji...@gmail.com> wrote:
> On Jun 14, 7:43 am, pokhara67 <pokhar...@googlemail.com> wrote:
>
>
>
>
>
>
>
>
>
>
> Is the apache service is running?


no it isnt

It looks like you've deleted /etc/apache2/mods-available/cgid.load, so
mod_cgid cannot be enabled

cant i just get a copy of cgid.load from somewhere ?

pokhara67

2007-06-14, 1:33 pm

On Jun 14, 3:38 pm, "HansH" <h...@invalid.invalid> wrote:
> "pokhara67" <pokhar...@googlemail.com> schreef in berichtnews:1181825006.996806.81180@g37g2000prf.googlegroups.com...
> The [re]install reported
>
>
> hinting how to cure your problem, as 'purge' is an option to apt-get
> Just 'man apt-get' for details
>
> HansH


apt-get --purge remove apache2.2-common

thaks it worked

whats the difference between

apache-mpm-worker and apache-mpm-prefork ?

and my /etc/apache2/sites-enabled/ directory is now empty.

the default file hasnt been restored

kwan

2007-06-14, 1:33 pm

On Jun 14, 9:56 am, pokhara67 <pokhar...@googlemail.com> wrote:
> On Jun 14, 3:38 pm, "HansH" <h...@invalid.invalid> wrote:
>
>
>
>
>
> apt-get --purge remove apache2.2-common
>
> thaks it worked
>
> whats the difference between
>
> apache-mpm-worker and apache-mpm-prefork ?
>
> and my /etc/apache2/sites-enabled/ directory is now empty.
>
> the default file hasnt been restored


rpm -e apache2

to remove all the previous installation
and reinstall back...


HansH

2007-06-14, 1:33 pm

"pokhara67" <pokhara67@googlemail.com> schreef in bericht
news:1181832967.078704.175000@e9g2000prf.googlegroups.com...
> apt-get --purge remove apache2.2-common
> thaks it worked
>
> whats the difference between
> apache-mpm-worker and apache-mpm-prefork ?

http://httpd.apache.org/docs/2.2/mod/

> and my /etc/apache2/sites-enabled/ directory is now empty.
> the default file hasnt been restored

There should not be a file [ever], just (sym)links will do.

This folders contence may appear after [re]installing one of the
apache-mpm-* ,
apache2.2-common is just the invisable part of the show.


HansH
--
Apache2 comes without a RTF Manual


HansH

2007-06-14, 1:33 pm

"kwan" <kwan.jingx@gmail.com> schreef in bericht
news:1181835610.140889.209160@i38g2000prf.googlegroups.com...
> On Jun 14, 9:56 am, pokhara67 <pokhar...@googlemail.com> wrote:
> rpm -e apache2
>
> to remove all the previous installation
> and reinstall back...
>

On Debian rpm is not the preferred tool to install a package.

HansH


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com