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
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
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
-
- Debian Developer, Site Admin
- Posts: 483
- Joined: 2004-04-06 18:19
- Location: Utrecht, NL
- Contact:
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.
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.