delphi programming forums mysql charset mget recursive synonimos
free ventrilo servers hosting cs javascript delay python find in list
Back Forum New
abstract:

cgi script that is called, either appears as text or the browser asks if we want to save it in the disk; if we call a script within CGI-BIN - from a webpage - it tell us that the "Method is not allowed" (error 405, I think ); as for the C/C++ compiled files, I didn't test them yet, but I have the feeling the problem will be the same.
Any clues? - I think the technical support doesn't know what's happening...
Another thing: almost everything is chmoded 700 - I find it a bit unusual in a Linux OS.
This is urgent, so please give me an hand.
Kind regards,
Kepler


Hi,
I've just signed up for a hosting plan, here in Portugal, in a Apache web Server with Red Hat Linux as OS.
Honestly, I think I might have made a mistake: my space was configured, but nothing runs in CGI-BIN; every .pl or .cgi script that is called, either appears as text or the browser asks if we want to save it in the disk; if we call a script within CGI-BIN - from a webpage - it tell us that the "Method is not allowed" (error 405, I think ); as for the C/C++ compiled files, I didn't test them yet, but I have the feeling the problem will be the same.
Any clues? - I think the technical support doesn't know what's happening...
Another thing: almost everything is chmoded 700 - I find it a bit unusual in a Linux OS.
This is urgent, so please give me an hand.
Kind regards,
Kepler

TOP

I think your on to something with the permissions, try to chmod some script 755.  The web server runs with diminished permissions, so you need to give other read and execute.  Also, some web servers use the execute bit to tell them when to run something as a script.
Otherwise, you need the admin to allow execute on your directory in the httpd.conf file.

TOP

chmod 755
Are your scripts outputting their own headers?
print "Content-Type: text/html\n";

TOP

No - the box for download appears before. But these scripts were in another host and they worked.
Kepler

TOP

abstract:

cgi script that is called, either appears as text or the browser asks if we want to save it in the disk; if we call a script within CGI-BIN - from a webpage - it tell us that the "Method is not allowed" (error 405, I think ); as for the C/C++ compiled files, I didn't test them yet, but I have the feeling the problem will be the same.
Any clues? - I think the technical support doesn't know what's happening...
Another thing: almost everything is chmoded 700 - I find it a bit unusual in a Linux OS.
This is urgent, so please give me an hand.
Kind regards,
Kepler


Here's what happens when you click on a link to get to the script.
1- Your browser sends a request to the server for `myperlscript.pl`
2- The server looks for myperlscript.pl, notices it's in cgi-bin and has a perl extension.
3- The server checks it's permitted to run the script
4- The server runs the script
5- The script outputs a content-type line to say it's an html page and the rest of the file follows
6- The browser outputs the html page.
Now you'll notice the 2 places for fault are 3 and 5.
3 - It's not permitted to run the script, your chmodding can help with that.
5 - Your perl script doesn't output a header or outputs an invalid header. Can you link us to the page so we can see the output?

TOP

Back Forum