Jump to content

Problem's compiling PHP


Recommended Posts

So I compiled php from source on my Mac OS X 10.4.9 and I recieved no errors.  I added this to httpd.conf

AddType application/x-httpd-php .php

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

DirectoryIndex index.html index.php

and restarted apache2.  Whenever I visit a php page on my site, my broswer (safari) downloads the page as text.  Where did I go wrong?

Thanks!

Link to comment
https://forums.phpfreaks.com/topic/50046-problems-compiling-php/
Share on other sites

Did you add it as an Apache Module or CGI? You must either load it as an Apache module or CGI in order for your PHP code to be parsed, adding the lines you have added wont do anything untill you have loaded it into Apache. I find it easier to add it as an Apache Module just add a line like this to the httpd.conf:

LoadModule php5_module "/path/to/php/php5_apache2.so"

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.