DJ1017 Posted August 12, 2007 Share Posted August 12, 2007 Hey, I am fairly new to PHP and i have recently installed a Apache server along with MySQL and PHP. Although, there is a problem with the pages i make. When i type in "localhost/phpinfo.php" the page does not connect to the server. The "localhost" page works though ------------------------------- I have modified my httpd.conf with the following : LoadModule php5_module c:/php/php5apache2.dll AddType application/x-httpd-php .php .html PHPIniDir "C:/php/" ------------------------------- I use Mozilla Firefox I got my apache server, mySQL, and PHP from a CD that was included in a book called Sams Teach Yourself: PHP, MySQL, and Apache. someone please help me.... Quote Link to comment Share on other sites More sharing options...
uhmcastillo Posted August 12, 2007 Share Posted August 12, 2007 Can you give any additional information? What does the access_log and error_log read after you try to view the page? When you say it doesn't load, what does it show? A white page, or an error page? -m Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted August 13, 2007 Share Posted August 13, 2007 Apache's configuration for those three lines is fine. It should work. Just make sure you are restarting Apache whenever you make any changes to either the httpd.conf or the php.ini. Otherwise your new configuration wont take affect until you restart Apache. Apache loads configuration files only when the server gets started or restart, all configuration gets loaded into memory. It doesn't reload the configurations on every file request. Also this line: LoadModule php5_module c:/php/php5apache2.dll mainly the php5apache2.dll part. Is only compatible with Apache2.0.x and not Apache2.2.x. For Apache2.2.x you must use php5apache2_2.dll instead - this file comes with latest version of PHP5 (php5.2.x) Quote Link to comment Share on other sites More sharing options...
DJ1017 Posted August 14, 2007 Author Share Posted August 14, 2007 Yeah i got it working, i found my problem. Thanks for helping me out. 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.