473,725 Members | 2,254 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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
Jul 17 '05 #1
11 10583
neur0maniak wrote:
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


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.
Jul 17 '05 #2
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
Jul 17 '05 #3
"neur0mania k" <us****@neur0ma niak.co.uk> wrote in message
news:40******** *************** @ptn-nntp-reader02.plus.n et...
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


yep - same problem here - 4.3.8 works perfect, cannot get 5 to display
anything - XP SP1 Pro
Jul 17 '05 #4

News wrote:
"neur0mania k" <us****@neur0ma niak.co.uk> wrote in message
news:40******** *************** @ptn-nntp-reader02.plus.n et...
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

yep - same problem here - 4.3.8 works perfect, cannot get 5 to display
anything - XP SP1 Pro


Same here ... tried IIS, KFWS, and Abyss WS. 4.3.8 works ... even with the PHP5
php.ini file settings.
Jul 17 '05 #5
RonS wrote:

News wrote:
"neur0mania k" <us****@neur0ma niak.co.uk> wrote in message
news:40******** *************** @ptn-nntp-reader02.plus.n et...
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


yep - same problem here - 4.3.8 works perfect, cannot get 5 to display
anything - XP SP1 Pro

Same here ... tried IIS, KFWS, and Abyss WS. 4.3.8 works ... even with
the PHP5 php.ini file settings.

Forgot another oddity ... I also ran PHP5.RC2 for a while successfully.
Jul 17 '05 #6
> >> yep - same problem here - 4.3.8 works perfect, cannot get 5 to display
anything - XP SP1 Pro
Same here ... tried IIS, KFWS, and Abyss WS. 4.3.8 works ... even with
the PHP5 php.ini file settings.

Forgot another oddity ... I also ran PHP5.RC2 for a while successfully.


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
Jul 17 '05 #7
ChrisN wrote:
yep - same problem here - 4.3.8 works perfect, cannot get 5 to display
anything - XP SP1 Pro
Same here ... tried IIS, KFWS, and Abyss WS. 4.3.8 works ... even with
the PHP5 php.ini file settings.


Forgot another oddity ... I also ran PHP5.RC2 for a while successfully.

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


My file system is FAT also

y'know, it could be that which is causing the problem... (?)
Jul 17 '05 #8
neur0maniak wrote:
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


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...
Jul 17 '05 #9
neur0maniak wrote:
neur0maniak wrote:
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

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...


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?
Jul 17 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
3112
by: Andrew Crowe | last post by:
Hi guys, As PHP5 is on its final beta, we decided to start writing a web application in it to take advantage of the much better object support it offered. We're running the php-5.0.0b3-Win32.zip installation on a Win2K server platform alongside PHP4. I have used a hex editor to change instances of php.ini to ph5.ini in php4ts.dll so that the existing PHP4 installation is not affected.
0
1554
by: Joe | last post by:
I have just upgrade to php5 and installed pear with gopear.bat on my windows installation. Problem: I get this error when i try to run my cli scripts: Fatal error: main(): Failed opening required 'DB.php' (include_path='.;C:\php5\p ear') in d:\web\cmd_drawings.php on line 5
1
2188
by: webguynow | last post by:
I'm hoping someone will give me the latest info here about PHP policy to enable extensions. I've installed PHP5 in C:\PHP Meaningful excerpts: from php.ini ; Directory in which the loadable extensions (modules) reside. extension_dir = "./" ..... ;extension=php_msql.dll
2
1379
by: Auddog | last post by:
Hello everyone, I have been trying for the past couple of days to get php5 installation on either my laptop or my test server. I'm not having much luck with either. I would like to get my test server running first (windows 2003 sp1), so I will discuss what I've done there. Downloaded the the latest version of php5 Extracted the files into a folder on the server c:\php5 Edited and saved the php.ini file to set cgi.force_redirect = 0
4
2757
by: Chuck Anderson | last post by:
I am trying to install Php5 on my WindowsXP machine (at home, not on the 'net). I downloaded the Php Windows binary at php.net, unzipped it to c:/Php5, changed my Apache config file to use Php5 with: LoadModule php5_module "c:/Php5/php5apache2.dll" .... and restarted apache (Apache/2.0.55 (Win32) mod_ssl/2.0.55 OpenSSL/0.9.8a) Php5 works fine, but when I execute phpinfo, the registered streams are:
9
5260
by: java | last post by:
Hey there, I just removed an elderly PHP4-Installation from my Windows-Box and installed PHP 5.2.1. I used the PHP4-Module as local batchfile- interpreter by E:\ersDHCP>php ./extractLog.php which was perfectly alright and worked well. But now PHP5 fails to run the same script without any modification!
5
1966
by: Ziggi | last post by:
Hi, I have been using PHP4 for a long time on my test personal web server on Windows XP Pro. Yesterday I decided to migrate to PHP5. I downloaded binary installation of PHP 5.2.3 as a zip archive. I have unpacked it to D:\PHP directory. I have created a "path" entry targeting this directory in system variables and rebooted the system. I have modified php.ini appropriately using 'php.ini-recommended' as a starting point. I have changed...
3
3299
by: xhe | last post by:
I have just upgraded my php version form php4 to php5. and I met this problem, and don't know if you know the solution. My site was written in PHP4, and most parts can be running smoothly in PHP5, only that in old version, I can use $row to access the data in database directly, no need to put double quote around fieldname. BUT in PHP5, this is wrong, I got error message "undefined constant". I know this is because PHP5 see the fieldname...
12
2590
by: Alan M Dunsmuir | last post by:
After having worked with Apache/MySQL/PHP for a year or so under Linux I need, purely for convenience, to set up a parallel platform under Windows. Unfortunately, since I last did this (using Windows XP Pro) I've moved on to Windows Vista (Home Premium). MySQL and Apache2 have both installed satisfactorily, but I'm having problems with PHP5. I downloaded the PHP5 Windows installer (the .msi file) for 32-bit Windows, which is supposed...
0
8889
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9401
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9257
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9116
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8099
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6702
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6011
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4519
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3228
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.