Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-18-2007, 02:49 PM   #1
Registered: Mar 2007
Posts: 46

Rep: Reputation: 16
Updating Apache & PHP on Debian

I'm new to the package updating business. I have used apt-get once to update a package.

Is it possible to upgrade Apache & PHP this way? If not, what is the best way? If so, what is the package name I upgrade?

Thanks for any help,
Old 06-19-2007, 10:23 AM   #2
Senior Member
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
Stable (etch) is using apache2 and php4 and 5 which are both the latest versions. If you have installed both 2 and 1.X versions of apache then you need to apt-get remove --purge apache 1.X and decide which php version you want to use. Suggest using a very good help site;
Old 06-19-2007, 04:43 PM   #3
Registered: Mar 2007
Posts: 46

Original Poster
Rep: Reputation: 16
Thanks a lot for your help. I'm running Debian kernel version 2.4.27-2-386. I executed the command:

apt-get -y install apache2-mpm-prefork apache2-doc lynx php4 libapache2-mod-php4

Using -y, the only prompt I received was near the bottom of the output (see excerpt below), to which I answered 'No' when it asked whether I wanted to remove the kernel =:0

I haven't yet killed the apache2 processes, but do you know if the msgs below indicate a real problem?

Thanks again,

Removing kernel-image-2.4.27-2-386 ...

You are running a kernel (version 2.4.27-2-386) and
attempting to remove the same version. This is a potentially
disastrous action. Not only will /boot/vmlinuz-2.4.27-2-386
be removed, making it impossible to boot it,
(you will have to take action to change your boot loader
to boot a new kernel), it will also remove all modules
under the directory /lib/modules/2.4.27-2-386.
Just having a copy of the kernel image is not enough, you
will have to replace the modules too.

I repeat, this is very dangerous. If at all in doubt,
answer no. If you know exactly what you are doing, and
are prepared to hose your system, then answer Yes.

Remove the running kernel image (not recommended) [No]? No

dpkg: error processing kernel-image-2.4.27-2-386 (--remove):
subprocess pre-removal script returned error exit status 1
dpkg: initrd-tools: dependency problems, but removing anyway as you request:
kernel-image-2.4.27-2-386 depends on initrd-tools (>= 0.1.48).
Removing initrd-tools ...
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)
Old 06-20-2007, 01:24 AM   #4
Senior Member
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
I don't think that this is related to the latest apt-get. It is trying to remove your running kernel. i.e. at the next boot you won't have a kernel and therefore won't have an os. Fortunately for you the process failed. Most of the debian kernel packages use initrd images to boot from a virtual kernel first. Install initrd-tools using apt.
It is not wise to use the -y switch with apt-get unless you know exactly what is going to be asked and you are going to accept the default option.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP & Apache - php files not processing aolong Linux - General 1 12-17-2006 03:09 AM
Slackware guide for AMP Apache MySQL & PHP xushi Slackware 35 05-11-2006 11:18 AM
Updating Php & mysql dutchkillers Red Hat 1 07-12-2004 12:37 AM
Updating PHP on apache Daredevil Programming 3 05-25-2004 08:40 AM
Updating Apache & PHP (RH9) herc Linux - Software 3 08-21-2003 01:10 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:20 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration