christo16 Posted May 4, 2007 Share Posted May 4, 2007 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 More sharing options...
wildteen88 Posted May 4, 2007 Share Posted May 4, 2007 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" Link to comment https://forums.phpfreaks.com/topic/50046-problems-compiling-php/#findComment-245677 Share on other sites More sharing options...
christo16 Posted May 4, 2007 Author Share Posted May 4, 2007 Is it bad that I cannot find the "php5_apache2.so" file? Link to comment https://forums.phpfreaks.com/topic/50046-problems-compiling-php/#findComment-245729 Share on other sites More sharing options...
christo16 Posted May 7, 2007 Author Share Posted May 7, 2007 any thoughts? Link to comment https://forums.phpfreaks.com/topic/50046-problems-compiling-php/#findComment-247020 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.