adrianc.grigoras Posted March 9, 2009 Share Posted March 9, 2009 Hi, I try to configure Apache to load Php. Everything works for Php4, but I upgrade to Php5. I compile Php5 with apxs2 path, and it configures me the file: LoadModule php4_module /usr/lib/apache2/libphp4.so LoadModule php5_module /usr/lib/apache2/libphp5.so AddType application/x-httpd-php .php .phtml AddType application/x-httpd-php-source .phps When I try to load html files, it works. When I hit in the console: php -f /path/to/file , it works. But no php files are load in .Apache I also restart it. Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted March 9, 2009 Share Posted March 9, 2009 You cannot load both php4 and php5 as an Apache module. They'll cause conflict with each other. Remove your php4_module line. Save your httpd.conf and restart Apache. Quote Link to comment 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.