LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Apache: Method Not Allowed (https://www.linuxquestions.org/questions/linux-general-1/apache-method-not-allowed-160674/)

Gerardoj 03-21-2004 04:15 PM

Apache: Method Not Allowed
 
Im trying to save data into mySQL database, I made a simple code, and when I will submit the info, I get


Method Not Allowed
The requested method POST is not allowed for the URL /prueba/sign.php.

Apache/1.3.28 Server at server.host.com Port 80


I saved all files on /var/www/htdocs/prueba:

-->index.html
-->dbconnect.php
-->sign.php

What could be the problem?

Thanks a lot.

AutOPSY 03-21-2004 04:36 PM

the directory /var/log/httpd contains all log files, including access logs, ssl logs, and error logs, review these error log files and post a more specific error.

This error is sometimes caused by incorrect configuration of Apache and several other things.
Your most recent errors in the log should be at the bottom, as the files are usually appended to when wrote.

Gerardoj 03-21-2004 04:43 PM

Thanks for your reply, here are the logs:

Quote:

[Sun Mar 21 14:57:54 2004] [notice] Apache/1.3.28 (Unix) configured -- resuming normal operations
[Sun Mar 21 14:57:54 2004] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Sun Mar 21 15:41:15 2004] [error] [client 127.0.0.1] File does not exist: /var/www/htdocs/prueba/entrada_datos.php
[Sun Mar 21 15:41:57 2004] [error] [client 127.0.0.1] File does not exist: /var/www/htdocs/prueba/entrada_datos.php
[Sun Mar 21 16:08:23 2004] [notice] caught SIGTERM, shutting down
[Sun Mar 21 16:10:04 2004] [error] Cannot remove module mod_php4.c: not found in module list
[Sun Mar 21 16:10:05 2004] [notice] Apache/1.3.28 (Unix) configured -- resuming normal operations
[Sun Mar 21 16:10:05 2004] [notice] Accept mutex: sysvsem (Default: sysvsem)

Quote:

127.0.0.1 - - [21/Mar/2004:15:48:09 -0600] "GET /prueba HTTP/1.1" 301 314
127.0.0.1 - - [21/Mar/2004:15:48:09 -0600] "GET /prueba/ HTTP/1.1" 200 492
127.0.0.1 - - [21/Mar/2004:15:53:29 -0600] "POST /prueba/sign.php HTTP/1.1" 405 315
127.0.0.1 - - [21/Mar/2004:15:59:00 -0600] "GET /prueba/ HTTP/1.1" 200 508
127.0.0.1 - - [21/Mar/2004:15:59:01 -0600] "GET /prueba/ HTTP/1.1" 304 -
127.0.0.1 - - [21/Mar/2004:15:59:12 -0600] "GET /prueba/index.html HTTP/1.1" 200 508
127.0.0.1 - - [21/Mar/2004:15:59:21 -0600] "POST /prueba/sign.php HTTP/1.1" 405 315
127.0.0.1 - - [21/Mar/2004:15:59:46 -0600] "POST /prueba/sign.php HTTP/1.1" 405 315
127.0.0.1 - - [21/Mar/2004:16:00:47 -0600] "POST /prueba/sign.php HTTP/1.1" 405 315
127.0.0.1 - - [21/Mar/2004:16:00:49 -0600] "POST /prueba/sign.php HTTP/1.1" 405 315
127.0.0.1 - - [21/Mar/2004:16:10:15 -0600] "GET /prueba/index.html HTTP/1.1" 200 492
127.0.0.1 - - [21/Mar/2004:16:10:16 -0600] "POST /prueba/sign.php HTTP/1.1" 405 315


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