Jump to content

PHP 5 not loading with apache


Recommended Posts

When i type localhost in the url : Apache claims its working.

 

However, PHP wont load.

 

I have followed the instructions off this page :

http://www.reaper-x.com/2007/09/24/installing-and-setting-up-apache-22-series-with-php-5-on-windows/

 

to install PHP-5 with Apache 2.2

 

After numerous re-installs of Apache and even changed directories from program files (86) to program files thinking it may have been a windows 7 thing.

 

Added the Following code to the httpd.conf file

 

LoadModule php5_module "c:/php-5/php5apache2_2.dll"

 

AddType application/x-httpd-php .php

AddType application/x-httpd-php .phtml

 

PHPIniDir "c:/php-5"

 

I put the proper Dll files from the PHP 5 dir it asked me to into system32 dir

 

along with the php.ini into C:\Windows

 

Final Test :

 

All I get when I attempt to load the test page is :

 

<?php phpinfo();?> in text.

 

 

Can someone please help me ?

I'm completely worn out from this ..

 

thanks.

Link to comment
Share on other sites

A few questions:

 

1. Are you browsing through Localhost?

2. Is the file in question located in the htdocs folder?

3. Is the file extension .php or .phtml?

4. After modifying the httpd.conf did you restart the server?

 

From the sounds of it you are doing everything right but not knowing or having access to the server it is hard to say what you could be doing wrong.

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.