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] Quote Link to comment 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. Quote Link to comment 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? Quote Link to comment 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. Quote Link to comment 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? Quote Link to comment 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] Quote Link to comment 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 Quote Link to comment 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.