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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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