Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PHP4 Installation Fails

Status
Not open for further replies.

gwinn7

Programmer
Feb 10, 2001
1,004
US
This problem dove-tails with my other post:

"PHP and Postgresql: pg_connect problem".

My problem is that after installing PHP4 from source, none of the PHP code seems to process. When I view the page in a browser from another machine, the page is blank. When I view source, the PHP code is there, but no content when displayed.

Here is how I installed Linux up to PHP4.

1. Installed Red Hat 7.2 (no apache, postgres, php)
2. Installed PostgreSQL 7.2.1, from RPM
3. Installed Apache 1.3.24, from Source
4. Installed PHP4, from Source
5. Restarted Apache.

Apache runs fine, except for processing PHP code. I thought I had been careful to follow the instructions of several guides (1) "Linux Apache Web Server Administration" (2) "Web Database Step-by-Step" -- Ying Zhang (3) other Tek-Tip posts.

I used the suggested switches for installing Apache and PHP, but that did not seem to help. Therefore, I have two questions.

1. Could you provide a list of steps of items to check and cross check to get PHP to function? I obviously missed something.

2. How do I uninstall programs installed through source, and not RPM?

If you have solved something like this before, feel free to post a message. I will continue to pursue a solution on my own and post it if I figure it out first.

Thanks,
Gary
gwinn7
 
Issue resolved. Solution was the syntax of the AddType directive.

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

was..

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


That's it!

Gary
gwinn7
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top