Folks,
I have a server and have upgraded it to apache2.2 via easyapache now any attempt to access the ./cgi-bin/ directory as in
<form action=".cgibin/test.php"> causes a 500 http error. If the php script runs out of another directory works fine. So there must be a problem with how apache is handling the /cgi-bin/ directory. Where do I change that? now my cgi_bin is set to 755 and test.php is set to 644. If you need more info just ask and I'll gladly send it. Note this is in a vhosts situation
Thanks.
You are not suppose to put php scripts in the CGI-BIN. Those are for CGI applications like Perl CGI or C++ CGI. Also, your form action is incorrect. You have ".cgibin/test.php" and it should not have that leading .
"cgibin/test.php" should be how it is executed.
Tor:
Thanks it was actually ./cgi-bin/test.php ( I'M not noted for my typing skills: actual line:
<form method="post" action="./cgi-bin/test.php">) and if the path was wrong then the error would have been a 404 error. I'm sill trying to get the two servers to match and learn about setting up apache 2. There is too much third party stuff (easyapache, etc,) that I don't understand. Any futher help from anyone is welcomed w/ open arms and warm thoughts. Thanks again Tor, nice to know that the world is listening.
Any reason you want to place php files in the cgi-bin though?
Tor:
other than option -Index etc no, I'll come up with some other place to put them, Thanks for your effort: (note: I'm a stubborn old fart, so I like to do things my way)
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks