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! Quote 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" Quote 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? Quote 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? Quote Link to comment https://forums.phpfreaks.com/topic/50046-problems-compiling-php/#findComment-247020 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.