Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

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 Dev Shed Forums Sponsor:
  #1  
Old November 4th, 2001, 06:47 PM
ericparker ericparker is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Posts: 27 ericparker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
can't get php to work with apache

I am running RedHat Linux 7.2 with PHP/4.0.6
from the shell I can use php fine. but when browsing to a php file I get a blank screen.
Does anyone have any ideas??

attached is my httpd.conf file

Thank you...for any help I can get

Reply With Quote
  #2  
Old November 4th, 2001, 11:20 PM
mezz mezz is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2001
Posts: 310 mezz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Did you add this (below) in your httpd.conf?


AddType application/x-httpd-php .php .php3 .php4 .phtml

Reply With Quote
  #3  
Old November 4th, 2001, 11:35 PM
ericparker ericparker is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Posts: 27 ericparker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Is this what your talking about?

here is a snip from my /etc/httpd/conf/httpd.conf file :

# AddType allows you to tweak mime.types without actually editing it, or to
# make certain files to be certain types.
#
# For example, the PHP 3.x module (not part of the Apache distribution - see
# http://www.php.net) will typically use:
#
<IfModule mod_php3.c>
AddType application/x-httpd-php3 .php3
AddType application/x-httpd-php3-source .phps
</IfModule>
#
# And for PHP 4.x, use:
#
<IfModule mod_php4.c>
AddType application/x-httpd-php .php .php4 .php3 .phtml
AddType application/x-httpd-php-source .phps
</IfModule>

#
# For PHP/FI (PHP2), use:
#
<IfModule mod_php.c>
AddType application/x-httpd-php .phtml
</IfModule>

Reply With Quote
  #4  
Old November 5th, 2001, 01:11 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
If php3 + php4 coexists, don't put .php3 to:

AddType application/x-httpd-php .php .php4 .php3 .phtml
....

The IfModule directive is the worst directive ever used in Apache. It assumes everything to be true at all time. However, it's a safe way to make sure Apache startup properly when certain module is malfunctioning.
That said, to make sure mod_php4 really compiled to Apache statically or dynamically, remove or uncomment the <IfModule> and </IfModule> line. Upon startup, you can tell whether or not mod_php4 is complied properly.

Reply With Quote
  #5  
Old November 5th, 2001, 07:56 PM
ericparker ericparker is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Posts: 27 ericparker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I had to add the follow lines :

Action application/x-httpd-php3 /usr/bin/php
Action application/x-httpd-php /usr/bin/php

as well as taking your advice and it's working great.

thank you again...

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > can't get php to work with 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 6 hosted by Hostway
Stay green...Green IT