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/