Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Apache and PHP installation

Ask for help with issues regarding the Installations of the Debian O/S.
Post Reply
Message
Author
neo
Posts: 8
Joined: 2005-09-03 04:11

Apache and PHP installation

#1 Post by neo »

I have been given access to a Debian system that has apache2 installed. I need to install PHP also there and configure Apache to use the PHP that I installed.
I have never used Debian before and would really appreciate it if anyone here could let me know how you have done this or how it should be done.
Any help would be great.
TIA :)

neo
Posts: 8
Joined: 2005-09-03 04:11

#2 Post by neo »

I get these errors when I try to do a

Code: Select all

dpkg -i libapache2-mod-php4_4.3.10-16_i386.deb

Code: Select all

 Selecting previously deselected package libapache2-mod-php4.
(Reading database ... 22741 files and directories currently installed.)
Unpacking libapache2-mod-php4 (from libapache2-mod-php4_4.3.10-16_i386.deb) ...
dpkg: dependency problems prevent configuration of libapache2-mod-php4:
 libapache2-mod-php4 depends on apache2-mpm-prefork (>> 2.0.52); however:
  Package apache2-mpm-prefork is not installed.
dpkg: error processing libapache2-mod-php4 (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 libapache2-mod-php4

neo
Posts: 8
Joined: 2005-09-03 04:11

#3 Post by neo »

I also see that I have Apache 1.3 as well as Apache2 installed on my Debian box. How do I remove the 1.3 from it?

Jeroen
Debian Developer, Site Admin
Debian Developer, Site Admin
Posts: 483
Joined: 2004-04-06 18:19
Location: Utrecht, NL
Contact:

#4 Post by Jeroen »

Do not use dpkg for package installations, its the most low-level tool for that, it won't resolve your dependency issues.

Use aptitude install <pkgname> instead if you must go commandline, or even better, go graphical via synaptic or something.

You can aptitude remove apache to get rid of apache 1.3. Note that for PHP, the prefork flavour of apache2 works best/is needed. You can aptitude install apache2-mpm-prefork to replace your current apache2 flavour with the prefork flavour.

neo
Posts: 8
Joined: 2005-09-03 04:11

#5 Post by neo »

I have switched to the prefork model now and everything seems to be working fine.

Post Reply