strawbilly84 Posted January 4, 2007 Share Posted January 4, 2007 I hav been trying to configure apache with php5. When I go to view a php page it asks me where I want to dwnload the page to and what program t open it with. PLEEESSSSSEEE help here is my httpd file. I think this is where the problem lies.Thanks Bill[attachment deleted by admin] Link to comment https://forums.phpfreaks.com/topic/32880-solved-config-php-and-apache/ Share on other sites More sharing options...
wildteen88 Posted January 4, 2007 Share Posted January 4, 2007 That is fine. However this is wrong:[tt]Addtype PHPIniDir "C:/Program Files/php/"[/tt]It should just be:[tt]PHPIniDir "C:/php"[/tt]Place the php.ini in the C:/php where you have PHP installed or in the WINDOWS folder. Link to comment https://forums.phpfreaks.com/topic/32880-solved-config-php-and-apache/#findComment-153076 Share on other sites More sharing options...
strawbilly84 Posted January 4, 2007 Author Share Posted January 4, 2007 I added the changes you suggested but still when i go to a php page it won't open the browser wants to download it? Link to comment https://forums.phpfreaks.com/topic/32880-solved-config-php-and-apache/#findComment-153083 Share on other sites More sharing options...
wildteen88 Posted January 4, 2007 Share Posted January 4, 2007 I forgot to mention this earlier - make sure you are restarting Apache when you make the changes. If you dont restart Apache the changes will not take affect until you do. Link to comment https://forums.phpfreaks.com/topic/32880-solved-config-php-and-apache/#findComment-153086 Share on other sites More sharing options...
strawbilly84 Posted January 4, 2007 Author Share Posted January 4, 2007 I have php installed in program files should it be directly in the c: directory? Link to comment https://forums.phpfreaks.com/topic/32880-solved-config-php-and-apache/#findComment-153087 Share on other sites More sharing options...
wildteen88 Posted January 4, 2007 Share Posted January 4, 2007 You dont need it in program files. I prefer to install everything in the root of the hard drive in a folder called server. SO my server directory will be like this:C:/server+-- Apache2+-- PHP+-- MySQLI assumed you had PHP installed in C:/PHP looking at this line[tt]#LoadModule php5_module C:/php/php5apache2.dll[/tt]Umm, hangon youb have that commented out. You need to uncomment that line and change it to this@[tt]LoadModule php5_module C:/Program Files/php/php5apache2.dll[/tt] Link to comment https://forums.phpfreaks.com/topic/32880-solved-config-php-and-apache/#findComment-153091 Share on other sites More sharing options...
strawbilly84 Posted January 4, 2007 Author Share Posted January 4, 2007 Thanks alot for your help. I uninstalled and reinstalled everything in the c:/ directory everything is working fine now. Again thanks abunch.Bill Link to comment https://forums.phpfreaks.com/topic/32880-solved-config-php-and-apache/#findComment-153100 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.