PHP5 - Installation Error - 400 Bad Request | | |
Hi,
I've been eager to try out PHP5, so I've dumped it on my little dev
machine. It's running WinXP with IIS5. I've put the php-cgi.exe in the
"mappings" page as I'm used to doing with PHP4. I've got my php.ini all
set in C:\Windows.
I created an index.php containing: <?php phpinfo(); ?>
When I try to view the page, I get "HTTP 400 - Bad Request".
Can anyone out there help me? Where am I going wrong?!
- neur0maniak | | | | re: PHP5 - Installation Error - 400 Bad Request
neur0maniak wrote:[color=blue]
> Hi,
>
> I've been eager to try out PHP5, so I've dumped it on my little dev
> machine. It's running WinXP with IIS5. I've put the php-cgi.exe in the
> "mappings" page as I'm used to doing with PHP4. I've got my php.ini
> all set in C:\Windows.
>
> I created an index.php containing: <?php phpinfo(); ?>
> When I try to view the page, I get "HTTP 400 - Bad Request".
>
> Can anyone out there help me? Where am I going wrong?!
>
> - neur0maniak[/color]
Have you defined the .php extension in IIS?
--
If the Internet is a Marx Brothers movie, and Web, e-mail, and IRC are
Groucho, Chico, and Harpo, then Usenet is Zeppo. | | | | re: PHP5 - Installation Error - 400 Bad Request
Berislav Lopac wrote:[color=blue]
> Have you defined the .php extension in IIS?[/color]
Yeah, I've done it the same way that I've used to get php4 working.
This is how I've done it: http://www.neur0maniak.co.uk/phpsetup.png | | | | re: PHP5 - Installation Error - 400 Bad Request
"neur0maniak" <usenet@neur0maniak.co.uk> wrote in message
news:40f65c8f$0$92639$ed2619ec@ptn-nntp-reader02.plus.net...[color=blue]
> Berislav Lopac wrote:[color=green]
> > Have you defined the .php extension in IIS?[/color]
>
> Yeah, I've done it the same way that I've used to get php4 working.
>
> This is how I've done it: http://www.neur0maniak.co.uk/phpsetup.png[/color]
yep - same problem here - 4.3.8 works perfect, cannot get 5 to display
anything - XP SP1 Pro | | | | re: PHP5 - Installation Error - 400 Bad Request
News wrote:[color=blue]
> "neur0maniak" <usenet@neur0maniak.co.uk> wrote in message
> news:40f65c8f$0$92639$ed2619ec@ptn-nntp-reader02.plus.net...
>[color=green]
>>Berislav Lopac wrote:
>>[color=darkred]
>>>Have you defined the .php extension in IIS?[/color]
>>
>>Yeah, I've done it the same way that I've used to get php4 working.
>>
>>This is how I've done it: http://www.neur0maniak.co.uk/phpsetup.png[/color]
>
>
> yep - same problem here - 4.3.8 works perfect, cannot get 5 to display
> anything - XP SP1 Pro[/color]
Same here ... tried IIS, KFWS, and Abyss WS. 4.3.8 works ... even with the PHP5
php.ini file settings. | | | | re: PHP5 - Installation Error - 400 Bad Request
RonS wrote:
[color=blue]
>
> News wrote:
>[color=green]
>> "neur0maniak" <usenet@neur0maniak.co.uk> wrote in message
>> news:40f65c8f$0$92639$ed2619ec@ptn-nntp-reader02.plus.net...
>>[color=darkred]
>>> Berislav Lopac wrote:
>>>
>>>> Have you defined the .php extension in IIS?
>>>
>>>
>>> Yeah, I've done it the same way that I've used to get php4 working.
>>>
>>> This is how I've done it: http://www.neur0maniak.co.uk/phpsetup.png[/color]
>>
>>
>>
>> yep - same problem here - 4.3.8 works perfect, cannot get 5 to display
>> anything - XP SP1 Pro[/color]
>
>
> Same here ... tried IIS, KFWS, and Abyss WS. 4.3.8 works ... even with
> the PHP5 php.ini file settings.[/color]
Forgot another oddity ... I also ran PHP5.RC2 for a while successfully. | | | | re: PHP5 - Installation Error - 400 Bad Request
> >> yep - same problem here - 4.3.8 works perfect, cannot get 5 to display[color=blue][color=green][color=darkred]
> >> anything - XP SP1 Pro[/color][/color][/color]
[color=blue][color=green]
> > Same here ... tried IIS, KFWS, and Abyss WS. 4.3.8 works ... even with
> > the PHP5 php.ini file settings.[/color]
> Forgot another oddity ... I also ran PHP5.RC2 for a while successfully.[/color]
I have roughly the same problem, but the error returned is 'CGI
timeout'. Tried it on XP Pro/IIS5 and Win2K server/IIS5. 4.3.8 runs
fine. When I substitute the v5 files it stops working. I wondered if
it was a file permissions issue. But the file system is FAT on the XP
Pro machine and I've checked the NTFS machine so I don't think it is.
Chris | | | | re: PHP5 - Installation Error - 400 Bad Request
ChrisN wrote:
[color=blue][color=green][color=darkred]
>>>>yep - same problem here - 4.3.8 works perfect, cannot get 5 to display
>>>>anything - XP SP1 Pro[/color][/color]
>
>[color=green][color=darkred]
>>>Same here ... tried IIS, KFWS, and Abyss WS. 4.3.8 works ... even with
>>>the PHP5 php.ini file settings.[/color]
>>
>>Forgot another oddity ... I also ran PHP5.RC2 for a while successfully.[/color]
>
>
> I have roughly the same problem, but the error returned is 'CGI
> timeout'. Tried it on XP Pro/IIS5 and Win2K server/IIS5. 4.3.8 runs
> fine. When I substitute the v5 files it stops working. I wondered if
> it was a file permissions issue. But the file system is FAT on the XP
> Pro machine and I've checked the NTFS machine so I don't think it is.
>
> Chris[/color]
My file system is FAT also
y'know, it could be that which is causing the problem... (?) | | | | re: PHP5 - Installation Error - 400 Bad Request
neur0maniak wrote:[color=blue]
> Hi,
>
> I've been eager to try out PHP5, so I've dumped it on my little dev
> machine. It's running WinXP with IIS5. I've put the php-cgi.exe in the
> "mappings" page as I'm used to doing with PHP4. I've got my php.ini all
> set in C:\Windows.
>
> I created an index.php containing: <?php phpinfo(); ?>
> When I try to view the page, I get "HTTP 400 - Bad Request".
>
> Can anyone out there help me? Where am I going wrong?!
>
> - neur0maniak[/color]
I just ran the php4.3.8 installer for windows (the 1Mb version), and set
up 4.3.8 replacing my PHP.ini
Then set up the mappings to point to PHP-CGI for php5, and all seems to
be working now. Though, I don't know why in php4, extension folder was
named "extensions" and in php5 it's called "ext".
Well, that's how I got PHP5 working... | | | | re: PHP5 - Installation Error - 400 Bad Request
neur0maniak wrote:[color=blue]
> neur0maniak wrote:
>[color=green]
>> Hi,
>>
>> I've been eager to try out PHP5, so I've dumped it on my little dev
>> machine. It's running WinXP with IIS5. I've put the php-cgi.exe in the
>> "mappings" page as I'm used to doing with PHP4. I've got my php.ini
>> all set in C:\Windows.
>>
>> I created an index.php containing: <?php phpinfo(); ?>
>> When I try to view the page, I get "HTTP 400 - Bad Request".
>>
>> Can anyone out there help me? Where am I going wrong?!
>>
>> - neur0maniak[/color]
>
>
> I just ran the php4.3.8 installer for windows (the 1Mb version), and set
> up 4.3.8 replacing my PHP.ini
>
> Then set up the mappings to point to PHP-CGI for php5, and all seems to
> be working now. Though, I don't know why in php4, extension folder was
> named "extensions" and in php5 it's called "ext".
>
> Well, that's how I got PHP5 working...[/color]
Can you explain this a bit more? I understand you're using the PHP.ini from PHP4
with PHP5. What directories do you have PHP4 and PHP5 in? | | | | re: PHP5 - Installation Error - 400 Bad Request
> Can you explain this a bit more? I understand you're using the PHP.ini[color=blue]
> from PHP4 with PHP5. What directories do you have PHP4 and PHP5 in?[/color]
I have PHP5 in C:\inetpub\php5
I have PHP4 in C:\inetpub\php4
I downloaded the 1Mb installer version of PHP4, and let it set up IIS
for me with PHP4. Overwriting any and all changes it needed/wanted to.
I ran my test page and it worked fine, so 4.3.8 was installed successfully.
The only thing for me to change then was to go back into the mappings,
and map .php back to c:\inetpub\php5\php-cgi.exe, the installer had put
it pointing to c:\inetpub\php4\php.exe
I refreshed the test page and it worked and reported PHP5. | | | | re: PHP5 - Installation Error - 400 Bad Request
neur0maniak wrote:
[color=blue][color=green]
>> Can you explain this a bit more? I understand you're using the PHP.ini
>> from PHP4 with PHP5. What directories do you have PHP4 and PHP5 in?[/color]
>
>
> I have PHP5 in C:\inetpub\php5
> I have PHP4 in C:\inetpub\php4
>
> I downloaded the 1Mb installer version of PHP4, and let it set up IIS
> for me with PHP4. Overwriting any and all changes it needed/wanted to.
> I ran my test page and it worked fine, so 4.3.8 was installed successfully.
>
> The only thing for me to change then was to go back into the mappings,
> and map .php back to c:\inetpub\php5\php-cgi.exe, the installer had put
> it pointing to c:\inetpub\php4\php.exe
>
> I refreshed the test page and it worked and reported PHP5.[/color]
PHP5 finally working! I didn't read your response closely enough. It took me a
while to figure out that I had to use php-cgi.exe instead of php.exe as in
previous versions, which is what you said above. Thanks |  | | | | /bytes/about
We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights.
Get the best answers to your questions from over 226,449 network members.
|