Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: PHP 5 not loading. |
|
Author |
|
bmw57
Joined: 24 Jun 2010 Posts: 1
|
Posted: Thu 24 Jun '10 14:52 Post subject: PHP 5 not loading. |
|
|
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. |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Thu 24 Jun '10 22:51 Post subject: |
|
|
It IS a Windows Vista/7 thing, but not in how you are thinking.
First, get those files out of system32 and back in the php folder where they belong (php-5 I guess for you). Never do that again! System folders are for system files and nothing more. Supporting php dlls are not system files. This person writing the article you followed should be ... well chastised.
I had an entirely different post I was about to post when it dawned on me what was happening.
I've seen the problem enough now to simply write this and be done writing it again. You will quickly get the picture of what is going on.
http://www.apachehaus.com/index.php?option=com_content&view=article&id=134:apache-why-no-work-vista-win7&catid=31:general&Itemid=41 |
|
Back to top |
|
|
|
|
|
|