Lijin Posted March 5, 2007 Share Posted March 5, 2007 Dear Sir, I had installed php5 and apache 2 in our linux machine. Then i started apache and test for a php page. but it showing the code of that page. I think just opening the code in the browser. Why it is happening ? can you help me plz... its urgent Thanxs in advance Lijin Quote Link to comment https://forums.phpfreaks.com/topic/41212-configuring-php-and-apache/ Share on other sites More sharing options...
rlee923 Posted March 31, 2007 Share Posted March 31, 2007 I am not sure how you configured apache and php, but I don't think they are working together at the moment. Search google and follow the steps for LAMP setup. Quote Link to comment https://forums.phpfreaks.com/topic/41212-configuring-php-and-apache/#findComment-218645 Share on other sites More sharing options...
eddedwards Posted May 4, 2007 Share Posted May 4, 2007 check for these lines in your apache2.conf or http.conf files. if there not there put them in. AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps or check for this, i think its just an error handled version of the above though. (could be libphp5.so) <IfModule mod_php5.c> AddType application/x-httpd-php .php .phtml .php3 AddType application/x-httpd-php-source .phps </IfModule> Quote Link to comment https://forums.phpfreaks.com/topic/41212-configuring-php-and-apache/#findComment-245720 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.