Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PHP location of files and POST not allowed.

Status
Not open for further replies.

stla

IS-IT--Management
Mar 12, 2003
190
DE
(Beginner with PHP) I have just installed PHP on our server. It contains the plug-in to Apache. After installing it created a new httpd.conf file.

I have been given 2 php files which I placed in a web folder. From a browser I can access the page fine but when I enter any data in the field and submit it, the server says: Method Not Allowed. The requested method POST is not allowed for the URL /PHPTEST/create.php.

Can anyone advise what I 'm doing wrong?

Best regards.
 
httpd.conf can be configured to disallow certain operations. For example, the basic httpd.conf that came with my Apache installation has a set of lines:

Code:
#<Directory /home/*/public_html>
#    AllowOverride FileInfo AuthConfig Limit
#    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
#    <Limit GET POST OPTIONS PROPFIND>
#        Order allow,deny
#        Allow from all
#    </Limit>
#    <LimitExcept GET POST OPTIONS PROPFIND>
#        Order deny,allow
#        Deny from all
#    </LimitExcept>
#</Directory>

In my configuration, you have probably noticed, this section is commented out.

Want the best answers? Ask the best questions: TANSTAAFL!!
 
try moving create.php into the root ie the one above PHPTEST. Also capitals should only be used for accessing php’s global vars this will prevent confusion later.


To err is human, to completely mess up takes a computer. [morning]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top