argrafic Posted March 4, 2008 Share Posted March 4, 2008 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! 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! Quote Link to comment https://forums.phpfreaks.com/topic/94298-php-525-installation-for-windows-vista-not-working/ Share on other sites More sharing options...
wildteen88 Posted March 4, 2008 Share Posted March 4, 2008 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). Quote Link to comment https://forums.phpfreaks.com/topic/94298-php-525-installation-for-windows-vista-not-working/#findComment-483018 Share on other sites More sharing options...
argrafic Posted March 4, 2008 Author Share Posted March 4, 2008 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. EXCELLENT!!! It works!!! But, won't I need the extensions? Quote Link to comment https://forums.phpfreaks.com/topic/94298-php-525-installation-for-windows-vista-not-working/#findComment-483129 Share on other sites More sharing options...
wildteen88 Posted March 4, 2008 Share Posted March 4, 2008 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). Quote Link to comment https://forums.phpfreaks.com/topic/94298-php-525-installation-for-windows-vista-not-working/#findComment-483321 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.