s_ff_da_b_ff Posted April 21, 2008 Share Posted April 21, 2008 Hi Im a PHP newbie and Im sitting here trying to get Apache to recognize PHP but when I try to update my httpd.conf folder It wont let me save. Im trying to add these lines in: LoadModule php5_module "c:/PHP/php5apache2_2.dll" AddHandler application/x-httpd-php .php # configure the path to php.ini PHPIniDir "c:/Windows" SO that Apache will recognize PHP. However everytime I put that in and then go to save I get the error: "Cannot create the C:\Program Files\Apache Software Foundation\Apache2.2\conf\httpd.conf file Make sure the path and file name are correct" Then I make sure that it is right and I click save again and it asks me if I want to replace the httpd.conf file that already exists and I say YES and then it just shows me that error again. If you can help me it would be much appreciated im getting very frustrated Ive been trying to figure it out for a long time now THANKS Quote Link to comment Share on other sites More sharing options...
DarkWater Posted April 21, 2008 Share Posted April 21, 2008 Make sure that the httpd.conf isn't read-only, as that could cause an error. I'm not sure if it's read-only by default on a Windows install, because I don't use Windows. =) Quote Link to comment Share on other sites More sharing options...
s_ff_da_b_ff Posted April 21, 2008 Author Share Posted April 21, 2008 Well, it was inface marked as "read only" but even after I unchecked that Im still getting the same error. Any other thoughts? Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted April 21, 2008 Share Posted April 21, 2008 Interesting error. What version of Windows are you running? Try stopping Apache first then applying the modifications. Quote Link to comment Share on other sites More sharing options...
s_ff_da_b_ff Posted April 21, 2008 Author Share Posted April 21, 2008 It was a security setting. I fixed it. Thanks for the help on this one though 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.