|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
1200+ fellow developers rate and compare features of the top IDEs, like Visual Studio, Eclipse, RAD, Delphi and others, across 13 categories. Enjoy this FREE Download of the IDE User Satisfaction Study by Evans Data Corporation. Download Now!
|
|
#1
|
|||
|
|||
|
IIS 5.1, PHP 4.3.9, Getting Error 400
Hi,
Despite reading all the other messages people have posted with similar problems, and having tried damn near every suggestion out there, I still cannot get PHP scripts to execute. I installed an configured IIS 5.1, PHP 4.3.9 on WinXP Pro SP2. Despite doing all of these steps, I'm still getting HTTP error 400: - I have installed PHP to C:\PHP\ - PHP.INI file is in C:\PHP\, not C:\Windows. - php4ts.dll is in the PHP directory as well as System32. - Application Mappings for .php set to C:\PHP\pxp.exe - IUSR_ Account given read/execute permissions to C:\PHP as well as C:\Inetpub\wwwroot I'm trying to use CGI mode. I can't get ISAPI filters to load properly. (Nothing works) I've googled this problem to death, followed instructions to a "T" on the PHP site, as well as some third party instructions, and I'm still at a loss. Help? ![]() |
|
#2
|
|||
|
|||
|
I found the prblem, the INI file got overwritten and cig force redirect was commented out and set to '1', so I set it to '0' and it seems to work now.
But i have a new question -- I use _SERVER['DOCUMENT_ROOT'] in a lot of my programs I build for the web (mostly Apache Servers), and there is no _SERVER['DOCUMENT_ROOT'] variable. I tried setting it up in PHP.INI, but it didn't show up. I setup a few virutal directories in IIS to point to directories on other drives, where I store the website files (I prefer not to use C . Is there a way for me to use _SERVER['DOCUMENT_ROOT'], and have aliases show up properly? Ex:F:\Websites\Foo would be set up as http://localhost/foo/ I would like to get _SERVER['DOCUMENT_ROOT'] on that site to point to f:\Websites\Foo, to minimize the amount of re-programming I would have to do when uploading the PHP files to an Apache envirenment where the _SERVER['DOCUMENT_ROOT'] is /home/sites/foo.com/htdocs/ or whatever. ANy suggestions? |
![]() |
| Viewing: Dev Shed Forums > System Administration > IIS > IIS 5.1, PHP 4.3.9, Getting Error 400 |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|