Monday, November 17, 2008

Access permission of test.php while installing PHP5 with Apache2.2

My goal was to install wordpress on a WAMP combination. I have MYSQL5 installed on my windows.
So started installing Apache2.2, it went very smoothly, see here to install Apache2.2

Then I installed php 5.2.6, with following steps

1. Downloaded php5 and Unzipped PHP5.2.6 to a directory c:\installs\php5
2. Installed php5 as per the instructions apacheguide, click here to check it out (Note: Step 5 and Step6 are not needed with php5.2.6 version)

When I ran the test.php file, it gave me the following error

You don't have permission to access /test.php on this server on windows

After lot of struggle, I found this blog which solved my problem , following are the changes
1. Followed Step 7 of blog,
Now move (don't just copy) the file c:\php\php5ts.dll to c:\windows\php5ts.dll.
2. Step 12 of Blog,
In the same httpd.conf file, change the Directory entry to: "C:/webs" ,
note that you should use forward slashes.


And My Problem was taken care of.