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:
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
  #1  
Old July 13th, 2005, 03:19 PM
phpnewguy phpnewguy is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: winnipeg, manitoba, canada
Posts: 2 phpnewguy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
php installation went fine but no php works

using redhat 9.0, apache 2.0.54, php-4.4.0 -----

I used these installation instructions here

http://codewalkers.com/phpdocs/install.apache2.html

I followed it to a "t" but now when testing simple php page the php script does not run. Simple php script i am using is
<html>
<head>
<title>php test</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
</head>
<body>
<h1> php test </h1>
<?php phpinfo();?>
</body>
</html>

Wondering if it has something to do with the 2 http.conf files and only one has the LoadModule php4_module libexec/libphp4.so and the AddType application/x-httpd-php .php .

I have one httpd.conf in /usr/local/apache2/conf and another one in /etc/httpd/conf .

Any suggestions on what else i could check or what may be the problem? Oh ya and when i load that web page only the html displays---it is saved as a .php file.

Reply With Quote
  #2  
Old July 14th, 2005, 12:06 PM
Milo Milo is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Italy
Posts: 192 Milo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: php installation went fine but no php works

The one to edit is the httpd.conf in /usr/local/apache2/conf
to test with phpinfo() the file has to contain only
php Code:
Original - php Code
  1.  
  2. <?
  3. ?>

You can avoid to write all the html tags.

Reply With Quote
  #3  
Old July 14th, 2005, 12:27 PM
Milo Milo is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Italy
Posts: 192 Milo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: php installation went fine but no php works

One more thing.

among php files you'll find install.txt with all you need to make it work.

However, did you set the php pages to be processed by Apache?

Reply With Quote
  #4  
Old July 14th, 2005, 06:54 PM
phpnewguy phpnewguy is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: winnipeg, manitoba, canada
Posts: 2 phpnewguy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: php installation went fine but no php works

I added the LoadModule and AddType lines to the /etc/httpd/httpd.conf file and then restarted apache and now i get this error when trying to start apache and it fails;

sapi_apache2.c is not compatible with this version of apache

i actually reinstalled the os and apache 2.0.40 and php 4.4.0 twice today trying to see if i messed something up. Still the same error. Any suggestions?

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Installation > php installation went fine but no php works


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 1 hosted by Hostway