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
https://forums.phpfreaks.com/topic/205757-php-5-not-loading-with-apache/
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.

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.