LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 09-23-2003, 11:50 AM   #1
kudos
Member
 
Registered: Oct 2002
Location: UK
Distribution: Fedora 4
Posts: 90

Rep: Reputation: 15
apache problems with a Php script


I have a PHP scipt to take my form and turn it into an e-mail

called form 2 mail

when i go 2 submit the freom from the page i get this error from apache

Method Not Allowed
The requested method POST is not allowed for the URL /form-2-mail.php.


--------------------------------------------------------------------------------

Apache/1.3.27 Server at dual.network Port 80


any help would be grae thanks
kudos
 
Old 09-23-2003, 03:40 PM   #2
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86; Gentoo PPC; Gentoo Sparc64; FreeBSD; OS X; Solaris
Posts: 3,731
Blog Entries: 4

Rep: Reputation: 68
Sounds like you may have POST'ing disabled in your httpd.conf file.

Look for something like this:
Code:
<Limit POST>
        Order deny,allow
        Deny from all
</Limit>
Here is the relevant bit from the apache docs:
http://httpd.apache.org/docs/mod/core.html#limit
 
Old 09-23-2003, 04:54 PM   #3
kudos
Member
 
Registered: Oct 2002
Location: UK
Distribution: Fedora 4
Posts: 90

Original Poster
Rep: Reputation: 15
Hi thx for reply

edit:

i fixed it

How do I enable CGI execution in directories other than the ScriptAlias?
Apache recognizes all files in a directory named as a ScriptAlias as being eligible for execution rather than processing as normal documents. This applies regardless of the file name, so scripts in a ScriptAlias directory don't need to be named "*.cgi" or "*.pl" or whatever. In other words, all files in a ScriptAlias directory are scripts, as far as Apache is concerned.

To persuade Apache to execute scripts in other locations, such as in directories where normal documents may also live, you must tell it how to recognize them - and also that it's okay to execute them. For this, you need to use something like the AddHandler directive.

In an appropriate section of your server configuration files, add a line such as
AddHandler cgi-script .cgi
The server will then recognize that all files in that location (and its logical descendants) that end in ".cgi" are script files, not documents.

Make sure that the directory location is covered by an Options declaration that includes the ExecCGI option.



i added this in my config and i seems 2 be executing it im getting a new error now


Quote:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, robert@admin.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.



--------------------------------------------------------------------------------

Apache/1.3.27 Server at dual.network Port 80
am imissing somethink elce now for the post instuction for it to send the info off and get to a mail server or somethink?


thx kudos

Last edited by kudos; 09-23-2003 at 05:08 PM.
 
  


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
Apache 1.3.33 + PHP 5.02 problems... NuTBoMbS Linux - Software 1 11-09-2004 01:36 AM
slackware, apache and PHP from .tgz - problems with PHP szymon Slackware 2 09-06-2004 04:57 PM
Use PHP URL processor script with Apache remi Linux - Networking 0 07-18-2004 01:44 PM
Apache/PHP phpshell script ANU Linux - Software 0 12-03-2003 06:19 PM
problems running php script rhuser Linux - Software 5 02-14-2003 01:01 PM


All times are GMT -5. The time now is 03:54 AM.

Main Menu
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