LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 03-07-2005, 05:51 PM   #1
paul_dundee
Member
 
Registered: Mar 2005
Location: Scotland
Distribution: FC3
Posts: 39

Rep: Reputation: 15
405 Method Not Allowed (PHP Problem)


I have developed a simple script for testing pop3 servers. I know the script works as I have tested it on apache on OSX, XP and FC3. However when placed on a server with the apache version below I get this error message:
--
Method Not Allowed
The requested method POST is not allowed for the URL /dundee/test.php.

Apache/1.3.26 Server at severname.com Port 80
--

I have changed the action in the html file to use test.php, a script which simply returns the post vars.

I have created a .htaccess file with "AddType application/x-httpd-php .php .htm .html"

Any other ideas?
 
Old 03-07-2005, 07:26 PM   #2
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,617

Rep: Reputation: 136Reputation: 136
You may have to put your scripts in a cgi-bin directory, see your server or
hosting settings
 
Old 03-08-2005, 08:07 AM   #3
paul_dundee
Member
 
Registered: Mar 2005
Location: Scotland
Distribution: FC3
Posts: 39

Original Poster
Rep: Reputation: 15
Update

I have noticed a difference in php.ini between the systems that work and the systems that don't. The obvious difference is 'register_globals Off' on the systems that work, but "On" on the systems that don't.

However, changing to 'register_globals On' does not replicate the fault.

Any ideas?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Method Not Allowed: The requested method POST is not allowed for the URL /writedhcp.p WiWa Linux - Networking 15 01-06-2011 02:20 PM
'method not allowed' when running any php script... :( _MD_ Linux - Software 3 04-17-2004 09:13 PM
Apache: Method Not Allowed Gerardoj Linux - General 2 03-21-2004 05:43 PM
Apache/Webdav/Dreamweaver MX MKCOL 405 Method not allowed swenz Linux - Software 0 03-31-2003 04:47 AM
405 Method Not Allowed - Help 360 Linux - Networking 1 03-25-2002 07:22 AM


All times are GMT -5. The time now is 01:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration