LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > External Applications > PHP > Method not allowed with POST

Reply
 
Thread Tools Display Modes
  #1  
Old 12-06-2006, 07:44 PM
spectre73 spectre73 is offline
Member
 
Join Date: Dec 2006
Posts: 16
Talking Method not allowed with POST

I get "Method not allowed" when i try a POST method in a web form that is made with Coffeecup form builder 5.5

I compiled the PHP 4/5 Universal Module 2.3 with PHP 5.2.0 and everything is installed ok but i did not change anything in the litespeed configuration to handle php scripts or the POST method

Anyone can guide me to make it work ?

Thanks
Reply With Quote
  #2  
Old 12-06-2006, 08:04 PM
xing xing is offline
LiteSpeed Staff
 
Join Date: Oct 2003
Location: Los Angeles, California
Posts: 380
Are you getting this as an php error or litespeed error?

Most likely your form html is invalid. Please post your html form.
Reply With Quote
  #3  
Old 12-06-2006, 08:09 PM
spectre73 spectre73 is offline
Member
 
Join Date: Dec 2006
Posts: 16
A litespeed error....

Well if you can tell me how to enable the POST method in litespeed it would be appreciated....
Reply With Quote
  #4  
Old 12-06-2006, 10:23 PM
xing xing is offline
LiteSpeed Staff
 
Join Date: Oct 2003
Location: Los Angeles, California
Posts: 380
POST method is enabled. There is no way to disable it.

You need to enable "debug logging", via "Service Manager", test the broken url, and send us the relevant log entries.

I don't think it was a POST method that broke.
Reply With Quote
  #5  
Old 12-07-2006, 01:55 AM
xing xing is offline
LiteSpeed Staff
 
Join Date: Oct 2003
Location: Los Angeles, California
Posts: 380
Make sure your form html contains "action" attribute pointing to the php file.

From the error log, it looks like your have broken html causing the web browser to submit a POST request to a static file which for security reasons is not allowed in litespeed.
Reply With Quote
  #6  
Old 12-07-2006, 02:11 AM
spectre73 spectre73 is offline
Member
 
Join Date: Dec 2006
Posts: 16
Well the coffeecup software is rather odd on making forms....is there an email that i can send you the 4 files so you can check them ?

Thanks


Quote:
Originally Posted by xing View Post
Make sure your form html contains "action" attribute pointing to the php file.

From the error log, it looks like your have broken html causing the web browser to submit a POST request to a static file which for security reasons is not allowed in litespeed.
Reply With Quote
  #7  
Old 12-07-2006, 07:38 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
I think your PHP configuration is not right, *.php is treated as static file, so POST is not allowed, check your lsphp external app and script handler configuration, pay attention to the error/warning message when LSWS starts.
Reply With Quote
  #8  
Old 12-07-2006, 09:17 AM
spectre73 spectre73 is offline
Member
 
Join Date: Dec 2006
Posts: 16
Can you give me a step by step list that i can check with the most details possible ?

Thanks


Quote:
Originally Posted by mistwang View Post
I think your PHP configuration is not right, *.php is treated as static file, so POST is not allowed, check your lsphp external app and script handler configuration, pay attention to the error/warning message when LSWS starts.
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 05:48 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.