Trouble installing php on linux
Trouble installing php on linux
So I got apache working, and then I installed php (./configure, make, make install), but when I save a php doc in htdocs and view it w/ mozilla I get nothing. Anyone know a site that explains it step by step? Or can anyone think what I'm doing wrong? Red Hat 9.
Thanks
Thanks
Also verify that you have the following in you httpd.conf:
LoadModule php4_module libexec/libphp4.so
AddModule mod_php4.c
In addition to what wipe0ut suggested:
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
Next, look for:
DirectoryIndex index.html
Change it to:
DirectoryIndex index.html index.php default.php index.htm
LoadModule php4_module libexec/libphp4.so
AddModule mod_php4.c
In addition to what wipe0ut suggested:
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
Next, look for:
DirectoryIndex index.html
Change it to:
DirectoryIndex index.html index.php default.php index.htm
Trending Topics
I just thought of something. VijaySinghisKing said he gets nothing when trying to view the php file. Usually if php isn't configured correctly and you try to view a php file, it downloads the file...or displays the actual php code in the browser. Might be something else going on.
It's because of their instructions, they are missing a step. I had a hell of a time too, but found out it was a simple placement of two files that were causing me problems.
Where you using php with apache or IIS on XP? I'm using apache 2 and it's been working fine for over a year.
Where you using php with apache or IIS on XP? I'm using apache 2 and it's been working fine for over a year.
Thread
Thread Starter
Forum
Replies
Last Post
bshotts
1G RDX Performance Parts & Modifications
0
Aug 30, 2015 02:08 PM


