Hi Eric,
Thanks for the reply, I didn’t realize that apache failed to start for the others. My case is certainly very different in that case.
Apache2 ran and worked fine for me after the update. Only the php problem was observed. The only other thing I meddled around with on the server was a BIND DNS setting, and is completely unrelated.
I looked in the apache2 logs. Nothing related was there, just some 403 errors from me trying to access domains that I had not put index files into.
Basically, in my case the php module was not only disabled, it was removed altogether. In addition, APACHE2-MPM-PREFORK was also removed. I installed this and LIBAPACHE2-MOD-PHP5 twice, and manually added a config file to parse php scripts in the apache conf.d area. I had to enable to php5 module again as well. I couldn’t stop apache2 using the init.d scripts, so I had killed the process so that my PHP scripts were not directly downloaded as HTML in plain text. Anyway, after doing all this the problem was solved earlier today. After doing the final reboot, it worked fine.
Then my squid3 proxy had cached the PHP scripts as HTML textfiles so I had to completely wipe the cache as well. This recent problem has made me feel very uncomfortable with my server. Why did this happen?
Here is my apt log by the way:
Log started: 2010-05-08 13:54:00
(READING DATABASE ... 75841 FILES AND DIRECTORIES CURRENTLY INSTALLED.)
REMOVING LIBAPACHE2-MOD-PHP5 ...
MODULE PHP5 DISABLED.
RUN '/ETC/INIT.D/APACHE2 RESTART' TO ACTIVATE NEW CONFIGURATION!
(READING DATABASE ... 75840 FILES AND DIRECTORIES CURRENTLY INSTALLED.)
PREPARING TO REPLACE APACHE2 2.2.9-10+LENNY6 (USING .../APACHE2_2.2.9-10+LENNY7_ALL.DEB) ...
UNPACKING REPLACEMENT APACHE2 ...
DPKG: APACHE2-MPM-PREFORK: DEPENDENCY PROBLEMS, BUT REMOVING ANYWAY AS YOU REQUEST:
MAILMAN DEPENDS ON APACHE2 | HTTPD; HOWEVER:
PACKAGE APACHE2 IS NOT CONFIGURED YET.
PACKAGE APACHE2-MPM-PREFORK WHICH PROVIDES APACHE2 IS TO BE REMOVED.
PACKAGE HTTPD IS NOT INSTALLED.
PACKAGE APACHE2-MPM-PREFORK WHICH PROVIDES HTTPD IS TO BE REMOVED.
VIRTUALMIN-BASE DEPENDS ON APACHE2; HOWEVER:
PACKAGE APACHE2 IS NOT CONFIGURED YET.
PACKAGE APACHE2-MPM-PREFORK WHICH PROVIDES APACHE2 IS TO BE REMOVED.
MAILMAN DEPENDS ON APACHE2 | HTTPD; HOWEVER:
PACKAGE APACHE2 IS NOT CONFIGURED YET.
PACKAGE APACHE2-MPM-PREFORK WHICH PROVIDES APACHE2 IS TO BE REMOVED.
PACKAGE HTTPD IS NOT INSTALLED.
PACKAGE APACHE2-MPM-PREFORK WHICH PROVIDES HTTPD IS TO BE REMOVED.
(READING DATABASE ... 75837 FILES AND DIRECTORIES CURRENTLY INSTALLED.)
REMOVING APACHE2-MPM-PREFORK ...
STOPPING WEB SERVER: APACHE2 ... WAITING .
(READING DATABASE ... 75831 FILES AND DIRECTORIES CURRENTLY INSTALLED.)
PREPARING TO REPLACE APACHE2.2-COMMON 2.2.9-10+LENNY6 (USING .../APACHE2.2-COMMON_2.2.9-10+LENNY7_AMD64.DEB) ...
UNPACKING REPLACEMENT APACHE2.2-COMMON ...
SELECTING PREVIOUSLY DESELECTED PACKAGE APACHE2-MPM-WORKER.
UNPACKING APACHE2-MPM-WORKER (FROM .../APACHE2-MPM-WORKER_2.2.9-10+LENNY7_AMD64.DEB) ...
SETTING UP APACHE2.2-COMMON (2.2.9-10+LENNY7) ...
SETTING UP APACHE2-MPM-WORKER (2.2.9-10+LENNY7) ...
STARTING WEB SERVER: APACHE2WARNING: MAXCLIENTS (10) MUST BE AT LEAST AS LARGE
AS THREADSPERCHILD (25). AUTOMATICALLY
INCREASING MAXCLIENTS TO 25.
.
SETTING UP APACHE2 (2.2.9-10+LENNY7) ...
Log ended: 2010-05-08 13:54:13
Log started: 2010-05-08 13:54:19
(Reading database ... 75840 files and directories currently installed.)
Preparing to replace libclamav6 0.95.3+dfsg-1~volatile1 (using .../libclamav6_0.96+dfsg-4~volatile1_amd64.deb) ...
Unpacking replacement libclamav6 ...
Preparing to replace clamav 0.95.3+dfsg-1~volatile1 (using .../clamav_0.96+dfsg-4~volatile1_amd64.deb) ...
Unpacking replacement clamav ...
Setting up libclamav6 (0.96+dfsg-4~volatile1) ...
Setting up clamav (0.96+dfsg-4~volatile1) ...
Log ended: 2010-05-08 13:54:21
Log started: 2010-05-08 13:54:40
(Reading database ... 75840 files and directories currently installed.)
Preparing to replace clamav-daemon 0.95.3+dfsg-1~volatile1 (using .../clamav-daemon_0.96+dfsg-4~volatile1_amd64.deb) ...
Stopping ClamAV daemon: clamd.
Unpacking replacement clamav-daemon ...
Preparing to replace clamav-base 0.95.3+dfsg-1~volatile1 (using .../clamav-base_0.96+dfsg-4~volatile1_all.deb) ...
Unpacking replacement clamav-base ...
Setting up clamav-base (0.96+dfsg-4~volatile1) ...
Replacing config file /etc/clamav/clamd.conf with new version
Setting up clamav-daemon (0.96+dfsg-4~volatile1) ...
Installing new version of config file /etc/init.d/clamav-daemon ...
Starting ClamAV daemon: clamd .
Log ended: 2010-05-08 13:54:47
Log started: 2010-05-08 13:54:51
(Reading database ... 75840 files and directories currently installed.)
Preparing to replace clamav-docs 0.95.3+dfsg-1~volatile1 (using .../clamav-docs_0.96+dfsg-4~volatile1_all.deb) ...
Unpacking replacement clamav-docs ...
Setting up clamav-docs (0.96+dfsg-4~volatile1) ...
Log ended: 2010-05-08 13:54:52
Log started: 2010-05-08 13:54:55
(Reading database ... 75843 files and directories currently installed.)
Preparing to replace clamav-freshclam 0.95.3+dfsg-1~volatile1 (using .../clamav-freshclam_0.96+dfsg-4~volatile1_amd64.deb) ...
Stopping ClamAV virus database updater: freshclam.
Unpacking replacement clamav-freshclam ...
Setting up clamav-freshclam (0.96+dfsg-4~volatile1) ...
Installing new version of config file /etc/init.d/clamav-freshclam ...
Replacing config file /etc/logrotate.d/clamav-freshclam with new version
Replacing config file /etc/clamav/freshclam.conf with new version
Starting ClamAV virus database updater: freshclam.
Log ended: 2010-05-08 13:54:58
Log started: 2010-05-08 13:55:04
(Reading database ... 75843 files and directories currently installed.)
Preparing to replace clamav-testfiles 0.95.3+dfsg-1~volatile1 (using .../clamav-testfiles_0.96+dfsg-4~volatile1_all.deb) ...
Unpacking replacement clamav-testfiles ...
Setting up clamav-testfiles (0.96+dfsg-4~volatile1) ...
Log ended: 2010-05-08 13:55:05
Log started: 2010-05-08 13:55:12
(Reading database ... 75883 files and directories currently installed.)
Preparing to replace usermin 1.430 (using .../archives/usermin_1.440_all.deb) ...
Unpacking replacement usermin ...
Setting up usermin (1.440) ...
Usermin install complete. You can now login to https://xxxxxxxxxxxxxxxxxx.com:20000/
as any user on the system.
Log ended: 2010-05-08 13:55:30
Log started: 2010-05-08 13:55:44
Selecting previously deselected package libapt-pkg-perl.
(Reading database ... 75886 files and directories currently installed.)
Unpacking libapt-pkg-perl (from .../libapt-pkg-perl_0.1.22+b1_amd64.deb) ...
Selecting previously deselected package apt-show-versions.
Unpacking apt-show-versions (from .../apt-show-versions_0.15_all.deb) ...
Preparing to replace webmin 1.500 (using .../webmin_1.510-2_all.deb) ...
Unpacking replacement webmin ...
Setting up libapt-pkg-perl (0.1.22+b1) ...
Setting up apt-show-versions (0.15) ...
** initializing cache. This may take a while **
Setting up webmin (1.510-2) ...
Webmin install complete. You can now login to https://xxxxxxxxxxxxxxxxx.com:10000/
as root with your root password, or as any user who can use sudo
to run commands as root.
Log ended: 2010-05-08 13:56:29
Log started: 2010-05-08 13:56:38
(Reading database ... 75969 files and directories currently installed.)
Preparing to replace webmin-virtual-server 3.77.gpl (using .../webmin-virtual-server_3.78.gpl_all.deb) ...
Unpacking replacement webmin-virtual-server ...
Setting up webmin-virtual-server (3.78.gpl) ...
Log ended: 2010-05-08 13:56:59
Log started: 2010-05-08 14:13:47
(Reading database ... 75993 files and directories currently installed.)
Preparing to replace dpkg 1.14.28 (using .../dpkg_1.14.29_amd64.deb) ...
Unpacking replacement dpkg ...
Setting up dpkg (1.14.29) ...
(Reading database ... 75993 files and directories currently installed.)
Preparing to replace libkrb53 1.6.dfsg.4~beta1-5lenny2 (using .../libkrb53_1.6.dfsg.4~beta1-5lenny3_amd64.deb) ...
Unpacking replacement libkrb53 ...
Preparing to replace apache2-doc 2.2.9-10+lenny6 (using .../apache2-doc_2.2.9-10+lenny7_all.deb) ...
Unpacking replacement apache2-doc ...
Preparing to replace apache2-utils 2.2.9-10+lenny6 (using .../apache2-utils_2.2.9-10+lenny7_amd64.deb) ...
Unpacking replacement apache2-utils ...
Preparing to replace libcurl3 7.18.2-8lenny3 (using .../libcurl3_7.18.2-8lenny4_amd64.deb) ...
Unpacking replacement libcurl3 ...
Preparing to replace curl 7.18.2-8lenny3 (using .../curl_7.18.2-8lenny4_amd64.deb) ...
Unpacking replacement curl ...
Preparing to replace dselect 1.14.28 (using .../dselect_1.14.29_amd64.deb) ...
Unpacking replacement dselect ...
Preparing to replace libpng12-0 1.2.27-2+lenny2 (using .../libpng12-0_1.2.27-2+lenny3_amd64.deb) ...
Unpacking replacement libpng12-0 ...
Preparing to replace libimlib2 1.4.0-1.2 (using .../libimlib2_1.4.0-1.2+lenny1_amd64.deb) ...
Unpacking replacement libimlib2 ...
Preparing to replace libpng3 1.2.27-2+lenny2 (using .../libpng3_1.2.27-2+lenny3_all.deb) ...
Unpacking replacement libpng3 ...
Preparing to replace linux-libc-dev 2.6.26-21lenny3 (using .../linux-libc-dev_2.6.26-21lenny4_amd64.deb) ...
Unpacking replacement linux-libc-dev ...
Preparing to replace php5-dev 5.2.6.dfsg.1-1+lenny6 (using .../php5-dev_5.2.6.dfsg.1-1+lenny8_amd64.deb) ...
Unpacking replacement php5-dev ...
Preparing to replace apache2-suexec-custom 2.2.9-10+lenny6 (using .../apache2-suexec-custom_2.2.9-10+lenny7_amd64.deb) ...
Unpacking replacement apache2-suexec-custom ...
Setting up libkrb53 (1.6.dfsg.4~beta1-5lenny3) ...
Setting up apache2-doc (2.2.9-10+lenny7) ...
Reloading web server config: apache2Setting up apache2-utils (2.2.9-10+lenny7) ...
Setting up libcurl3 (7.18.2-8lenny4) ...
Setting up curl (7.18.2-8lenny4) ...
Setting up dselect (1.14.29) ...
Setting up libpng12-0 (1.2.27-2+lenny3) ...
Setting up libimlib2 (1.4.0-1.2+lenny1) ...
Setting up libpng3 (1.2.27-2+lenny3) ...
Setting up linux-libc-dev (2.6.26-21lenny4) ...
Setting up php5-dev (5.2.6.dfsg.1-1+lenny8) ...
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_CA.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_CA.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Setting up apache2-suexec-custom (2.2.9-10+lenny7) ...
Log ended: 2010-05-08 14:13:56
Log started: 2010-05-08 14:31:19
dpkg: apache2-mpm-worker: dependency problems, but removing anyway as you request:
apache2 depends on apache2-mpm-worker (>= 2.2.9-10+lenny7) | apache2-mpm-prefork (>= 2.2.9-10+lenny7) | apache2-mpm-event (>= 2.2.9-10+lenny7); however:
Package apache2-mpm-worker is to be removed.
Package apache2-mpm-prefork is not installed.
Package apache2-mpm-event is not installed.
(Reading database ... 75990 files and directories currently installed.)
Removing apache2-mpm-worker ...
Stopping web server: apache2WARNING: MaxClients (10) must be at least as large
as ThreadsPerChild (25). Automatically
increasing MaxClients to 25.
... waiting .
Selecting previously deselected package apache2-mpm-prefork.
(Reading database ... 75984 files and directories currently installed.)
Unpacking apache2-mpm-prefork (from .../apache2-mpm-prefork_2.2.9-10+lenny7_amd64.deb) ...
Selecting previously deselected package libapache2-mod-php5.
Unpacking libapache2-mod-php5 (from .../libapache2-mod-php5_5.2.6.dfsg.1-1+lenny8_amd64.deb) ...
Setting up apache2-mpm-prefork (2.2.9-10+lenny7) ...
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_CA.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_CA.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Starting web server: apache2.
Setting up libapache2-mod-php5 (5.2.6.dfsg.1-1+lenny8) ...
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_CA.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_CA.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_CA.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_CA.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Reloading web server config: apache2.
Log ended: 2010-05-08 14:31:25
Log started: 2010-05-08 15:55:15
(Reading database ... 75997 files and directories currently installed.)
Preparing to replace php5 5.2.6.dfsg.1-1+lenny8 (using .../php5_5.2.6.dfsg.1-1+lenny8_all.deb) ...
Unpacking replacement php5 ...
Setting up php5 (5.2.6.dfsg.1-1+lenny8) ...
Log ended: 2010-05-08 15:55:16
Log started: 2010-05-08 15:57:41
(Reading database ... 75997 files and directories currently installed.)
Preparing to replace apache2 2.2.9-10+lenny7 (using .../apache2_2.2.9-10+lenny7_all.deb) ...
Unpacking replacement apache2 ...
Setting up apache2 (2.2.9-10+lenny7) ...
Log ended: 2010-05-08 15:57:42
Log started: 2010-05-08 15:58:10
(Reading database ... 75997 files and directories currently installed.)
Preparing to replace libapache2-mod-php5 5.2.6.dfsg.1-1+lenny8 (using .../libapache2-mod-php5_5.2.6.dfsg.1-1+lenny8_amd64.deb) ...
Unpacking replacement libapache2-mod-php5 ...
Setting up libapache2-mod-php5 (5.2.6.dfsg.1-1+lenny8) ...
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_CA.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_CA.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_CA.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Reloading web server config: apache2Log ended: 2010-05-08 15:58:12
Log started: 2010-05-08 16:43:48
(Reading database ... 75994 files and directories currently installed.)
Removing libapache2-mod-php5 ...
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_CA.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Module php5 already disabled
dpkg: apache2-mpm-prefork: dependency problems, but removing anyway as you request:
apache2 depends on apache2-mpm-worker (>= 2.2.9-10+lenny7) | apache2-mpm-prefork (>= 2.2.9-10+lenny7) | apache2-mpm-event (>= 2.2.9-10+lenny7); however:
Package apache2-mpm-worker is not installed.
Package apache2-mpm-prefork is to be removed.
Package apache2-mpm-event is not installed.
Removing apache2-mpm-prefork ...
Stopping web server: apache2.
Selecting previously deselected package apache2-mpm-worker.
(Reading database ... 75984 files and directories currently installed.)
Unpacking apache2-mpm-worker (from .../apache2-mpm-worker_2.2.9-10+lenny7_amd64.deb) ...
Setting up apache2-mpm-worker (2.2.9-10+lenny7) ...
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_CA.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_CA.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Starting web server: apache2WARNING: MaxClients (10) must be at least as large
as ThreadsPerChild (25). Automatically
increasing MaxClients to 25.
.
Log ended: 2010-05-08 16:43:52
Log started: 2010-05-08 16:45:41
dpkg: apache2-mpm-worker: dependency problems, but removing anyway as you request:
apache2 depends on apache2-mpm-worker (>= 2.2.9-10+lenny7) | apache2-mpm-prefork (>= 2.2.9-10+lenny7) | apache2-mpm-event (>= 2.2.9-10+lenny7); however:
Package apache2-mpm-worker is to be removed.
Package apache2-mpm-prefork is not installed.
Package apache2-mpm-event is not installed.
(Reading database ... 75990 files and directories currently installed.)
Removing apache2-mpm-worker ...
Stopping web server: apache2WARNING: MaxClients (10) must be at least as large
as ThreadsPerChild (25). Automatically
increasing MaxClients to 25.
.
Selecting previously deselected package apache2-mpm-prefork.
(Reading database ... 75984 files and directories currently installed.)
Unpacking apache2-mpm-prefork (from .../apache2-mpm-prefork_2.2.9-10+lenny7_amd64.deb) ...
Selecting previously deselected package libapache2-mod-php5.
Unpacking libapache2-mod-php5 (from .../libapache2-mod-php5_5.2.6.dfsg.1-1+lenny8_amd64.deb) ...
Setting up apache2-mpm-prefork (2.2.9-10+lenny7) ...
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_CA.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_CA.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Starting web server: apache2.
Setting up libapache2-mod-php5 (5.2.6.dfsg.1-1+lenny8) ...
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_CA.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_CA.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_CA.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Log ended: 2010-05-08 16:45:47