473,320 Members | 2,027 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

405 Post Method not allowed

I've searched the web for a solution but to no avail. I have just setup and
installed Apache 1.3.20 on windows, and php 4.0.5. Apache is up and
running, (In directory F:\programs\apache\apache\) and PHP has been copied
to both c:\php and F:\programs\apache\apache\php. I've put the php.ini file
in c:\windows and made the following changes:
doc_root = "f:\programs\apache\apache\htdocs"
extension_dir = "c:\php"

While in httpd I have added:
ScriptAlias /php/ "C:/php/"

(uncommented) AddType application/x-httpd-php .php

Action application/x-http-php "/php/php.exe"

Anytime I try to load a php script I get a 405 error stating that:

The requested method POST is not allowed for the URL /password.php.

Any help would be much appreciated. I know it is something simple, because
I've set it up on other computers. But on my home XP machine, I have never
had any success.
Jul 17 '05 #1
3 5009
On Sun, 04 Apr 2004 19:30:43 GMT, "Tim yOUNG" <ti********@yahoo.com> wrote:
I've searched the web for a solution but to no avail. I have just setup and
installed Apache 1.3.20
Old version...
on windows,
1.3 isn't recommended on Windows...
and php 4.0.5.
Very ancient version...
Apache is up and
running, (In directory F:\programs\apache\apache\) and PHP has been copied
to both c:\php and F:\programs\apache\apache\php. I've put the php.ini file
in c:\windows and made the following changes:
doc_root = "f:\programs\apache\apache\htdocs"
extension_dir = "c:\php"
Not c:\php\extensions?
While in httpd I have added:
ScriptAlias /php/ "C:/php/"
You don't want to be making the PHP directory accessible, you should put your
scripts somewhere else.
(uncommented) AddType application/x-httpd-php .php

Action application/x-http-php "/php/php.exe"
No drive letter?

You've got 'application/x-httpd-php' in the first line, but
'application-x-http/php' in the second?
Anytime I try to load a php script I get a 405 error stating that:

The requested method POST is not allowed for the URL /password.php.


Do you have a <Directory> entry in httpd.conf for the directory?

--
Andy Hassall <an**@andyh.co.uk> / Space: disk usage analysis tool
http://www.andyh.co.uk / http://www.andyhsoftware.co.uk/space
Jul 17 '05 #2
Hey Andy, thanks for the tips.

I've downloaded the latest Apache 2.0.49 and then tried the new php5 in
module mode.

Now it will run the php files, but wont read form data and will spit out any
error message asociated with not filling in an input box properly.

I've decided to try php 4.3.5 as it's supposed to be the most stable.

I'll keep you updated. 0 ?
\ __/

"Andy Hassall" <an**@andyh.co.uk> wrote in message
news:nv********************************@4ax.com...
On Sun, 04 Apr 2004 19:30:43 GMT, "Tim yOUNG" <ti********@yahoo.com> wrote:
I've searched the web for a solution but to no avail. I have just setup andinstalled Apache 1.3.20
Old version...
on windows,


1.3 isn't recommended on Windows...
and php 4.0.5.


Very ancient version...
Apache is up and
running, (In directory F:\programs\apache\apache\) and PHP has been copiedto both c:\php and F:\programs\apache\apache\php. I've put the php.ini filein c:\windows and made the following changes:
doc_root = "f:\programs\apache\apache\htdocs"
extension_dir = "c:\php"


Not c:\php\extensions?
While in httpd I have added:
ScriptAlias /php/ "C:/php/"


You don't want to be making the PHP directory accessible, you should put

your scripts somewhere else.
(uncommented) AddType application/x-httpd-php .php

Action application/x-http-php "/php/php.exe"


No drive letter?

You've got 'application/x-httpd-php' in the first line, but
'application-x-http/php' in the second?
Anytime I try to load a php script I get a 405 error stating that:

The requested method POST is not allowed for the URL /password.php.


Do you have a <Directory> entry in httpd.conf for the directory?

--
Andy Hassall <an**@andyh.co.uk> / Space: disk usage analysis tool
http://www.andyh.co.uk / http://www.andyhsoftware.co.uk/space

Jul 17 '05 #3
OK, I've got it now.

The newer versions of php default to having "register_globals = Off" and my
php files had been written as if they were turned on.

Simple solution, change globals back to on. Better solution, start writing
and re-writing code allowing for globals to be off.

Cheers!
register_globals = Off
Jul 17 '05 #4

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

Similar topics

2
by: Rob | last post by:
THis is my code. What im trying to accomplish is the user fills out the form then when they hit submit it displays what the entered on the samne page but i get this error message when I hit submit...
4
by: mickbw | last post by:
I am unable to display PHP pages generated by a submission of a form using a POST method. To illustrate this, I created a very simple form called TestForm.php . <!DOCTYPE html PUBLIC...
1
by: qwejohn | last post by:
Hello, I had posted this question in the twisted mailing list but did not got a solution ; I hope that the python Gurus of this forum can help me a bit. I am trying the exmaple in the python...
2
by: Alex Vinokur | last post by:
========================================= Windows 2000 CYGWIN_NT-5.0 1.3.22(0.78/3/2) GNU gcc version 3.2 20020927 (prerelease) ========================================= Here is some program...
5
by: mammothman42 | last post by:
Hi Sorry to be posting slabs of code, but i simply can't get this code to work. I continue to get error 405, method not allowed at req.GetRequestStream(). Can't for the life of me figure out...
2
by: Matt | last post by:
When we submit the form data to another page, we usually do the following: <form action="display.aspx" method="post"> will submit the form data and open display.asp in the current browser ...
2
by: GlennLanier | last post by:
Hello, I've searched the forums and can't find an answer -- if it i there, kindly point me in that direction. I would like to simulate a browser POSTing a FORM and be able to pars the response....
8
by: burut | last post by:
Hi, I have index.php page (attached). The flow is when I put username/password on the page, it will submit to be processed by connection.php where in connection.php, it require koneksi_db.php to...
3
by: Eric | last post by:
I'm trying to test code to post xml to a web page in anticipation of a new project. I wanted to try a simple test first, but I get a (405) Method Not Allowed error no matter what I try. I have...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.