Click here to Skip to main content
15,905,781 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Referring to the procedure in Configuring FastCGI to Host PHP Applications (IIS 7)[^], I tried to install and configure PHP. I followed the procedure step-by-step, and also created the php.ini file. Then I tested the PHP installation by command propmpt:
PHP
C:\PHP>php –info

Then I got Access is denied. The I checked the C:\PHP folder's properties. From the General Tab, the folder is Read-only. In the Security setup, all of the uses have at lease Read permission. What else should I check / setup to eliminate the Access problem? Thanks.
Posted
Comments
Afzaal Ahmad Zeeshan 7-Jan-16 15:30pm    
Give them write permissions too. For installation, deletion, updating and other similar procedures where the data is to be altered, write permissions are required.

Otherwise, you can execute a trusted program for this folder.I don't work in PHP environment but if PHP comes with an installer you should make sure it is from a trusted partner or so.
s yu 7-Jan-16 15:39pm    
AAZ: Thanks. Added Write permission. Some info returns. But also got a System Error: The program can't start because the fbclient.dll is missing from your computer. Try reinstalling the program to fix this problem.

1 solution

As in the comments to your question the problem was the permissions to your folder access. Once you provided the write permissions the execution continued.

However, the problem is with a library (dll) not found. This cannot be solved by tinkering the machine. You need to download the library and make sure it is available. My conclusion is that when you ran the installer last time, it tried to save that library but was not able to. That is why the library is not found (where it is being expected).

Solution would be, to remove the PHP components and then re-install them. Make sure write permissions are provided and then re-install it using the installer. You may want to run uninstaller first.
 
Share this answer
 
Comments
s yu 8-Jan-16 8:09am    
AAZ: Thanks for your advisory.
1) Could you detail how to Remove the PHP components? Do you mean remove them from my IIS?
2) After I revised the permission w/ 'Write', I got system error: "The program can't start because the fbclient.dll is missing from your computer. Try reinstalling the program to fix this problem" When I used command prompt C:\php>php -info . Then I - Download fbclient.dll from http://sourceforge.net/projects/firebird/files/firebird-win64/
Firebird-2.5.5.26952_0_x64.exe (my OS is 64-bit OS) and run the setup. The problem still exists.
Any additional advisory? Thanks.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900