To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
PHPBuilder.com  
 

 

Go Back   PHPBuilder.com > PHP Help > Install

Install Conversation regarding installation and upgrade of PHP

Reply
 
Thread Tools Rate Thread Display Modes
Old 06-28-2000, 04:36 PM   #1
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
PHP4/Apache Install not parsing .php

Hello,

Basically, I've done the install, and everything looks fine to my untrained eye, yet .php files are not passed to the interpreter, and I receive plain text rather than satisfaction. If anyone can give me some clues, I'd appreciate it.

Here are the details of my install:

This is obviously a newbie problem, but I'm glad I've gotten this far in 24 hours of linux/apache/php experience. I've compiled the mod_php4.c module into Apache 1.3.12, following the Static module install instructions included in the INSTALL file in the php-4.0.0 distribution.

My httpd.conf file contains the necessary references to php as indicated:
LoadModule php4_module lib/apache/libphp4.so
AddModule modphp4.c

AddType application/x-httpd-php .php .php4
AddType application/x-httpd-php-source .phps

the referenced libphp4.so file is in the appropriate directory, and the php.ini file has been copied to the /usr/local/lib directory, and viewing it, I could find nothing that implicitly looked like it needed altering *yet*, so it is currently unmodified.

Apache has been restarted after modifications were made to the httpd.conf file.

Anyway, upon attempting to execute a test file containing phpinfo(), all I get is the plain text of my file.

I found a similar article describing this problem under netscape server, and checked the directory and file permissions to ensure that they were executable, to no further success.

TIA-
J!M
Anon is offline   Reply With Quote
Old 06-28-2000, 10:22 PM   #2
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
RE: PHP4/Apache Install not parsing .php

Part Two...

However I managed to install this, my modules were in several places. I collected them all in one directory and got the pointers right in httpd.conf.

The phpinfo() output screen is just about the most beautiful thing I've ever seen! ;-)

J!M
Anon is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 09:56 PM.






Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.