SunQuest
           PHP Installation
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Installation

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old July 17th, 2006, 03:40 PM
Sperlock Sperlock is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Reno, NV, USA
Posts: 25 Sperlock User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
PHP not Running in Apache

I've installed Apache 2.0.58 and PHP 5.1.4 in Gentoo. Apache works fine - I was able to bring up the default page without any problems. /var/log/apache2/access_log shows my accessing the page.

I've configured /etc/conf.d/apache2 to have -D PHP5 for running the PHP module. I've checked that httpd.conf includes the code for adding the module.

I've checked server-info and it does show mod_php5.c.

When I try to view a .php page that simply runs phpinfo(), but Firefox wants to download the file. I've tried Konquerer and Seamonkey as well (which I don't use, so cache shouldn't be an issue) and get the download message or an editor that opens up the page and shows the code.

I'm able to run PHP from the command line.

I've searched the Gentoo forums and haven't found anything yet that I haven't tried. What else can I try to get this running?

Reply With Quote
  #2  
Old July 17th, 2006, 05:37 PM
tkarkkainen's Avatar
tkarkkainen tkarkkainen is offline
Moderator
Click here for more information
 
Join Date: Apr 2007
Location: Finland
Posts: 2,320 tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)  Folding Points: 11979 Folding Title: Novice Folder
Time spent in forums: 6 Days 8 h 50 m 37 sec
Reputation Power: 4
RE: PHP not Running in Apache

Try

php Code:
Original - php Code
  1.  
  2. <?php
  3.   header( "Content-Type: text/html" );
  4.   phpinfo();
  5. ?>


If that works, you should change the default content type for .php files to text/html in your Apache config.

Reply With Quote
  #3  
Old July 17th, 2006, 05:46 PM
Sperlock Sperlock is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Reno, NV, USA
Posts: 25 Sperlock User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: PHP not Running in Apache

Thanks, I'll give that a try when I get home and update this thread as necessary.

Reply With Quote
  #4  
Old July 17th, 2006, 07:43 PM
OldManRiver OldManRiver is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 15 OldManRiver User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 52 m 23 sec
Reputation Power: 0
Send a message via AIM to OldManRiver Send a message via Yahoo to OldManRiver
RE: PHP not Running in Apache

All,

Having the same problem on w2k pro. Think this is an apache missing dll/lib or win registry problem.

Any ideas?

OMR

Reply With Quote
  #5  
Old July 17th, 2006, 09:49 PM
instigator instigator is offline
Contributing User
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Maryland
Posts: 1,158 instigator User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 20 m 13 sec
Reputation Power: 3
RE: PHP not Running in Apache

http://www.apachelounge.com/download/mods/php5apache2.dll-php5.1.x.zip

if you're having a problem with the dll, this will solve it. there are compatibility issues, and this module was released as a work-around. hope this helps someone...

Reply With Quote
  #6  
Old July 18th, 2006, 02:19 PM
Sperlock Sperlock is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Reno, NV, USA
Posts: 25 Sperlock User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: PHP not Running in Apache

tkarkkainen, the change did not work for me. I noticed nothing different.

Reply With Quote
  #7  
Old September 13th, 2006, 08:11 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: PHP not Running in Apache

I'm having the same problem on Ubuntu....

Reply With Quote
  #8  
Old September 16th, 2006, 07:07 AM
lone ranger lone ranger is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 5 lone ranger User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: PHP not Running in Apache

I had the same problem a while ago. Somebody advised me to start the whole installation of php again, this time followin the installation help from www.php.net. it worked 4 me. when installing there is a point after updating the PATH file u MUST restart the comp, that was my whole problem.

the php.net might be down at the moment bt u can try http://us3.php.net/manual/en/install.general.php

hope u get it right.

Reply With Quote
  #9  
Old September 18th, 2006, 05:04 PM
Sperlock Sperlock is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Reno, NV, USA
Posts: 25 Sperlock User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: PHP not Running in Apache

As I am running Gentoo, I used portage for the install, following the Apache install documentation they have. The computer has been restarted a number of times to no effect. Granted, I did have an upgrade this weekend, but haven't checked it yet. I'm not holding my breath on this one.

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Installation > PHP not Running in Apache


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway