cant start apache2
dave selby
dave6502 at googlemail.com
Wed Oct 17 20:45:12 UTC 2007
> Maybe you didn't install it?
>
definitely installed :)
> > root at dave-desktop:/etc/init.d# aptitude install apache2
> > apache2
> ...
> > 0 packages upgraded, 1 newly installed, 0 to remove and 0 not
> > upgraded. Need to get 0B/38.7kB of archives. After unpacking 86.0kB
>
> This is not enough, look at this:
>
> # dpkg -l|grep apache2
> ii apache2 2.2.3-3.2ubuntu0.1
> Next generation, scalable, extendable web se ii
> apache2-mpm-prefork 2.2.3-3.2ubuntu0.1
> Traditional model for Apache HTTPD 2.1 ii apache2-utils
> 2.2.3-3.2ubuntu0.1 utility programs for webservers
> ii apache2.2-common 2.2.3-3.2ubuntu0.1
> Next generation, scalable, extendable web se
>
> This is the minimum you should have installed.
>
> Gerald
I should be OK I did a ...
aptitude reinstall apache2-mpm-prefork apache2 apache2-utils
libapache2-mod-php5 libapr1 libaprutil1 apache2.2-common
which covers the above and a few more .... ? (see below)
It seems that even with this lot I have not yet hit the package that
reinstalls /etc/apache2/apache2.conf.
Dave
root at dave-desktop:/etc/apache2#
root at dave-desktop:/etc/apache2# aptitude reinstall apache2-mpm-prefork
apache2 apache2-utils libapache2-mod-php5 libapr1 libaprutil1
apache2.2-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initialising package states... Done
Building tag database... Done
The following packages will be REINSTALLED:
apache2 apache2-mpm-prefork apache2-utils apache2.2-common
libapache2-mod-php5 libapr1 libaprutil1
0 packages upgraded, 0 newly installed, 7 reinstalled, 0 to remove and
0 not upgraded.
Need to get 0B/4448kB of archives. After unpacking 0B will be used.
Writing extended state information... Done
(Reading database ... 115938 files and directories currently installed.)
Preparing to replace apache2 2.2.3-3.2ubuntu0.1 (using
.../apache2_2.2.3-3.2ubuntu0.1_all.deb) ...
Unpacking replacement apache2 ...
Preparing to replace apache2-mpm-prefork 2.2.3-3.2ubuntu0.1 (using
.../apache2-mpm-prefork_2.2.3-3.2ubuntu0.1_i386.deb) ...
* Stopping web server (apache2)...
[ OK ]
Unpacking replacement apache2-mpm-prefork ...
Preparing to replace apache2-utils 2.2.3-3.2ubuntu0.1 (using
.../apache2-utils_2.2.3-3.2ubuntu0.1_i386.deb) ...
Unpacking replacement apache2-utils ...
Preparing to replace apache2.2-common 2.2.3-3.2ubuntu0.1 (using
.../apache2.2-common_2.2.3-3.2ubuntu0.1_i386.deb) ...
Unpacking replacement apache2.2-common ...
Preparing to replace libapache2-mod-php5 5.2.1-0ubuntu1.4 (using
.../libapache2-mod-php5_5.2.1-0ubuntu1.4_i386.deb) ...
Unpacking replacement libapache2-mod-php5 ...
Preparing to replace libapr1 1.2.7-8.1 (using
.../libapr1_1.2.7-8.1_i386.deb) ...
Unpacking replacement libapr1 ...
Preparing to replace libaprutil1 1.2.7+dfsg-2build1 (using
.../libaprutil1_1.2.7+dfsg-2build1_i386.deb) ...
Unpacking replacement libaprutil1 ...
Setting up libapr1 (1.2.7-8.1) ...
Setting up libaprutil1 (1.2.7+dfsg-2build1) ...
Setting up apache2-utils (2.2.3-3.2ubuntu0.1) ...
Setting up apache2.2-common (2.2.3-3.2ubuntu0.1) ...
Setting up apache2-mpm-prefork (2.2.3-3.2ubuntu0.1) ...
* Starting web server (apache2)...
apache2:
Could not open configuration file /etc/apache2/apache2.conf: No such
file or directory
[fail]
invoke-rc.d: initscript apache2, action "start" failed.
Setting up libapache2-mod-php5 (5.2.1-0ubuntu1.4) ...
Setting up apache2 (2.2.3-3.2ubuntu0.1) ...
root at dave-desktop:/etc/apache2#
>
More information about the ubuntu-users
mailing list