Koozali.org: home of the SME Server
Legacy Forums => General Discussion (Legacy) => Topic started by: gage on March 21, 2002, 04:43:23 AM
-
how do I chmod my cgi-bin scripts. I usually do it with ws-ftp but it won't work?
-
Chmod over ftp is disabled with e-smith, however you can do it via the command line like
chmod 664 filename
-
I was wondering the about the same thing, except i was wondering how to enable chmoding through an FTP client.
-
You must log into your server as 'Root' from the server console (Cannot use WS-FTP or any other FTP client with SME Server). If the command line window is not showing, hit the ALT-F2 key.
Place your cgi script in your cgi-bin directory and enter the following command:
chmod a+x /home/e-smith/files/primary/cgi-bin/your_script_name_here
Logout of the server and gateway (if installed) and this will make your script executable.
Added Note: The root directory of your server is /home/e-smith/files/primary.
In order to use the script you must reference it as follows:
FORM METHOD="POST" ACTION="/cgi-bin/your_script_name_here"