Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 26th March 2007, 03:58
talwar_ talwar_ is offline
Junior Member
 
Join Date: Mar 2007
Location: Perth, Australia
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to talwar_ Send a message via MSN to talwar_ Send a message via Skype™ to talwar_
Question Trying to get PHP and PHP5 work with Apache2

Plz excuse the thread title.. i said "php and php5" instead of "php4 and php5"!

I recently followed the howtoforge article on setting up php4 and php5 on Sarge. (http://www.howtoforge.com/apache2_with_php5_and_php4)

Everything seemed to work during the setup except that i couldnt install all the packages - it could not find some (e.g. php5-pdo-mysql). anyway, i carried on with the instructions and this is my problem:

.php files are correctly being handled by the apache2 handler, i have verified this by using the phpinfo() function. However when i try to browse a .php4 extension i get "object not found" (HTTP 404)

it is as though apache2 doesnt know what to do with .php4 files, even though i have added the following lines to apache2.conf:

AddHandler php-script .php4
Action php-script /cgi-bin/php4

heres what i have currently installed for php4 and php5:

~# apt-show-versions | grep php
php4-cgi/sarge uptodate 4:4.4.6-0.dotdeb.2
php4-pgsql/sarge uptodate 4:4.4.6-0.dotdeb.2
php4-common/sarge uptodate 4:4.4.6-0.dotdeb.2
libapache-mod-php5/sarge uptodate 5.2.1-0.dotdeb.1
php5-common/sarge uptodate 5.2.1-0.dotdeb.1
php4/sarge uptodate 4:4.4.6-0.dotdeb.2
libapache2-mod-php5/sarge uptodate 5.2.1-0.dotdeb.1

any suggestions? thanks in advance!
Reply With Quote
Sponsored Links
 

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
php5 and php4 at the same time Hans Installation/Configuration 15 22nd October 2008 13:02
ubuntu ispconfig joomla .htaccess steve1084 General 8 6th January 2007 15:55
PHP & MsSQL just wont work. matthewjamesnewotn Server Operation 1 3rd January 2007 20:12
eaccelerator installation - can't find php5-config tom Programming/Scripts 9 15th May 2006 15:36
How to compile apache2 with PHP 5.x.x? tom Server Operation 1 5th May 2006 11:49


All times are GMT +2. The time now is 05:42.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.