Having installed EasyPHP 5.3.7, and enable cgi scripts, I found that on calling a particular script, I received the error message:
You don’t have permission to access the requested object. It is either read-protected or not readable by the server.
The solution was to change some of the Apache configuration options:
- Run EasyPHP as an administrator (right-click its icon, and in the pop-up menu, chose “Run as administrator”). Then from the EasyPHP tray icon, select Configuration | Apache.
- Scroll down to the bottom of the configuration file, where you will find a section:
# == !!! DO NOT REMOVE !!! =============================== ### Alias EasyPHP # ======================================================== #alias
- Look for the alias that you define in the EasyPHP Administration screen, and then add the “ExecCGI” directive as shown in bold below (note that your alias name and directories will be deferent):
Alias "/My developement folder" "C:/www/mywebdev" <Directory "C:/www/mywebdev"> Options FollowSymLinks Indexes ExecCGI AllowOverride All Order deny,allow Allow from 127.0.0.1 deny from all </Directory>
- There is no need to restart the server. Refreshing the call to your script should now work.