Jump to content

[SOLVED] Apache Server Problems


DJ1017

Recommended Posts

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....

 

Link to comment
https://forums.phpfreaks.com/topic/64567-solved-apache-server-problems/
Share on other sites

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)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.