|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Want to run PHP
I have inherited Windows box from a client and it has ASP applications on it, though I want to also be able to run some PHP aswell.
I have just taken over as the server admin and Im more familiar with PHP coding. So I still want to keep the legacy apps but new ones I develop will hopefully be in PHP... I have gone through the manual install, and when I try to access a .php resource I get asked for login details, and when the creds are provided the PHP executes as expected.. I have checked the permissions and IWAM_SERVER has Read&Excute / List Folder / Write permissions to the directory which propergate to the file.. Am I missing a permission or process I need to add? Any help with this would be excellent... |
|
#2
|
||||
|
||||
|
You can run PHP as either a CGI executable app or an ISAPI filter. If you just want to toy around on a NON PRODUCTION machine, download the latest php package from php.net WITH installer and it will automatically configure your server box for you. (You will also have to add your 'index.php' to the documents page under the properties tab of the server.) It will ask you for your IIS version. If you are running NT 4 it will be IIS 4, Windows 2000 server, it will be IIS 5. If you have Windows 2003 server, IIS 6.
To run php as an ISAPI filter, just search php.net for installing as an ISAPI filter. I run it as a CGI and have had no problems. (Although most hardcore sys admins would recommend the ISAPI road on a production machine)
__________________
PWD MCSE, MCSA, MCP, Security+ NEW Windows Administration Forum Admin Source ![]() Could REALLY, REALLY, REALLY use you and your issues! Last edited by PWD : February 4th, 2006 at 01:54 AM. |
|
#3
|
|||
|
|||
|
thanks for the quick reply man,
I have tried running as both CGI and ISAPI and both the same result.. I get asked to supply login credentials, after I supply the credentials, the php executes fine. So Im pretty sure the problem is with the file permissions but Im unsure where to start looking... Google is usually my friend but this one has me stumped |
|
#4
|
||||
|
||||
|
What OS are you running?
Probably right, file permissions are probablyto blame. Do you have administrator rights or did your client give you an administrator log on? If not, you'll have to do a clean Windows server install and start from scrarch. If your client did give you the admin username and password, right click on the php folder (c:\php I assume) and click on the security tab. (Sharing tab in win xp) from there you should be able to assign sharing rights. |
|
#5
|
|||
|
|||
|
Make sure the IUSR_computername user account has permissions to the php executables.
__________________
====== Doug G ====== I didn't attend the funeral, but I sent a nice letter saying I approved of it. --Mark Twain |
|
#6
|
|||
|
|||
|
I set the permissions to c:/php for
IUSR_SERVER Now is working excellent, thanks guys |
|
#7
|
|||
|
|||
|
One note is that I am an IIS admin in shared hosting, I actually prefer to run it in CGI mode for its great security benefits, it uses a bit more CPU, but it pays off in security.
|
|
#8
|
|||
|
|||
|
Quote:
Can you elaborate on some of the security differences between CGI and ISAPI php? |
|
#9
|
|||
|
|||
|
CGI runs as the user with user level permissions, CGI is more stable, and ini file changes won't take each customer down. Overall it is slightly slower, but much better in a shared enviroment.
|
|
#10
|
|||
|
|||
|
I just checked out the new installer of PHP5 for IIS. Really good job, it's working out of the box!
__________________
Andreas Kraus on .NET SEO-Forum.org - SEO News SEO-Trade.net - plattform for monitoring and exchanging Links sunlab.de |
![]() |
| Viewing: Dev Shed Forums > System Administration > IIS > Want to run PHP |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|