Page 1 of 1
Access CGI-BIN
Posted: Sat Jul 06, 2024 11:04 am
by scotts
Since I am not allowed shell access, the only way I have to update web pages is using FTP.
I need to update a page in my CGI-BIN folder.
How do I access files in the CGI-BIN folder?
The file I am trying to locate is located at:
http://www.sonic.net/cgi-bin/scotts/pdj ... gorder.cgi
When I use FTP to navigate to:
/home2/03/28/scotts/
There is a folder called:
/home2/03/28/scotts/bin
When I click that I am taken to my root directory.
In my root there is also a folder called:
public_cgi
When I click that folder, I am taken back to my root directory.
How do I access the file called
http://www.sonic.net/cgi-bin/scotts/pdj ... gorder.cgi
How do I access the cgi folder using FTP?
Thanks,
Re: Access CGI-BIN
Posted: Sat Jul 06, 2024 3:41 pm
by apl
try
/home/WWW_pages/scotts/cgi-bin/
Re: Access CGI-BIN
Posted: Sat Jul 06, 2024 8:25 pm
by scotts
Thanks but this folder doesn't show any files.
When I copy and paste:
/home/WWW_pages/scotts/cgi-bin/
into the coffee cup FTP, all it shows is a single folder.
When I click the folder it takes me back to the root directory.
This directory path looks correct, but I can't access the /scotts/cgi-bin/ folder.
Any other suggestions.
Thanks,
Re: Access CGI-BIN
Posted: Mon Jul 08, 2024 10:57 am
by joemuller
EDIT: The CGI directory should now be viewable. (For the curious, this was due to
how proftpd handles symlinks inside of chroot.)
Most accounts should have a 'public_cgi' show up in the home folder when you connect to ftp.sonic.net. If you need to manually navigate to the CGI folder, you can use the following path: (where 'USERNAME' is your login)
/usr/local/lib/httpd/cgi-bin/USERNAME/
Re: Access CGI-BIN
Posted: Sun Mar 16, 2025 1:09 pm
by lorne
I don't see a cgi-bin in my home folder: /home/WWW_pages/lorne
I do see it in /usr/local/lib/httpd/cgi-bin/lorne
How do I get it in my /home/WWW_pages/lorne or what do I need to do so my html page finds it?
Thanks...
-Lorne
Re: Access CGI-BIN
Posted: Tue Mar 18, 2025 3:56 pm
by joemuller
lorne wrote: ↑Sun Mar 16, 2025 1:09 pm
I don't see a cgi-bin in my home folder: /home/WWW_pages/lorne
I do see it in /usr/local/lib/httpd/cgi-bin/lorne
How do I get it in my /home/WWW_pages/lorne or what do I need to do so my html page finds it?
Under FTP, you should be able to navigate to your CGI directory either using the absolute path (/usr/local/lib/httpd/cgi-bin/lorne/) or following the special 'public_cgi' link in your home directory.
The web server automatically redirects requests to /cgi-bin/ to your CGI directory, so as long as the files exist in the right place, they should be treated correctly by the
mod_cgi plugin in the web server.
-- Joe M
Re: Access CGI-BIN
Posted: Tue Mar 18, 2025 5:18 pm
by lorne
Thanks! It just started working again without me having to do anything. Must have been a temporary glitch.