Jump to content

PHP 5.2.5 installation for Windows Vista not working!


Recommended Posts

Hello all.

 

I got a new PC with Vista on it, so the usual, all the apache, php, mysql, etc. installations have to be done.

 

I installed Apache using the msi installer. It works!  ;D

 

And I have tried several times to install PHP5 using also the msi.

 

The first times when trying to test the installation when loading the index.php page on the browser it printed <?php phpinfo(); ?>.

 

I double checked the php.ini and the httpd.conf and everything was fine, so I unistalled it and installed it again.

 

Now, index.php is showing a blank page.

 

I wanted to check what could be wrong so executed the php.exe file and I got several errors, that it couldn't find php_mbstring.dll, OCI.dll, sqlite.dll amd several other dlls in the directory C:\PHP5\ext, but those files do exist!

 

It's the first time I try to install PHP5, so I don't know if I'm doing something wrong or if I'm missing something.

 

PLEASE HEEEEELPPP!!!!

 

Thanks!

Link to comment
Share on other sites

Ok first of all disable all extensions you have enabled within the php.ini and re-save the php.ini. Restart Apache and test php again. If still doesn't work go to Apaches conf/ folder (Default path is something like C:/Program Files/Apache Foundation/Apache2/conf).

 

Open the default folder and copy a file called httpd.conf and paste it into the conf/ folder overwriting the existing configuration file. Open the new httpd.conf in Notepad.

 

Add the following lines at the very bottom

# PHP configuration
LoadModule php5_module "C:/Program Files/PHP/php5apache2_2.dll"
PHPIniDir "C:/Program Files/PHP"
AddType application/x-httpd-php .php

NOTE: Change C:/Program Files/PHP/ to your actual PHP Installation path.

 

Save the httpd.conf and restart Apache. Now test PHP again. Does PHP now function correctly?

 

Another step is to add PHP to the PATH Environment Variable. Windows will need to be restarted after changing the PATH Environment Variable. After windows has loaded enable the extensions you wish to use one by one (making sure you restart Apache each time and running phpinfo() to make sure your changes have taken place).

Link to comment
Share on other sites

Yes you can enable extensions. If you are going to use extensions then read the last couple of sentences from my post above, which quote here:

Another step is to add PHP to the PATH Environment Variable. Windows will need to be restarted after changing the PATH Environment Variable. After windows has loaded enable the extensions you wish to use one by one (making sure you restart Apache each time and running phpinfo() to make sure your changes have taken place).
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.