Page 1 of 1

/public_html

Posted: 2023-03-22 20:24
by SYakoban
Hi,

I've used FileZilla for a million years. A year or so ago connecting to /public_html stopped working. It's finally annoyed me enough to get help.

/public_html is there on the server directory and I can manually click into it. I have it set on the advanced tab in the "Default remote directory:" field. The problem is that it is ignored at the time of connection and I am placed at the true root of the server.

Why?

How do I fix it?

Thanks!

Re: /public_html

Posted: 2023-03-22 21:09
by botg
FileZilla has not been around for a million years, and neither has my sense of humor. Only on monday mornings do I feel like a million years old :wink:
The problem is that it is ignored at the time of connection and I am placed at the true root of the server.
How exactly do you connect to the server, ie. where do you click with your mouse and which buttons do you press on your keyboard?

Re: /public_html

Posted: 2023-03-23 05:15
by SYakoban
It's been a staple tool for a long time. Thank you.

To connect, I first click the File menu option and choose Site Manager.

I choose the site I want from the left Select entry window.

I click Connect on the bottom right.

On the Advanced tab I have /public_html in the field in Default remote directory, but it just won't go there.

Re: /public_html

Posted: 2023-03-23 05:24
by boco
Does it attempt to CWD into /public_html and maybe gets an error (shown in red in the log pane)?
botg wrote:Only on monday mornings do I feel like a million years old :wink:
Just not enough coffee. :mrgreen:

Re: /public_html

Posted: 2023-03-23 18:22
by SYakoban
Status: Retrieving directory listing of "/public_html"...
Command: cd "/public_html"
Error: Directory /public_html: no such file or directory
Command: pwd
Response: Current directory is: "/home/fireplug"
Command: ls
Status: Listing directory /home/fireplug
Status: Directory listing of "/home/fireplug" successful


From the site:

logs
mail
perl5
public_ftp
public_html
ssl
tmp
www

Re: /public_html

Posted: 2023-03-23 22:49
by iam_sysop
Not to jump in on the help - but maybe either adding a . to the path: ./public_html (or removing the slash) --

-- or --

/home/fireplug/public_html

Reasoning:

It seems like your server is identifying / as the available root -- when most servers don't let you see directories above yours, it seems your server shows you the full path. In my experience for something like that - when you get logged in and PWD the current directory right at login -- yours shows "/home/fireplug" as your "login root". So you would most likely have make your setting "relative" by either adding a . in front ( ./public_html ), or removing the / and just have public_html

-- OR treat it as absolute and use the full path in your setting "/home/fireplug/public_html" --

One or both of those should work --

Re: /public_html

Posted: 2023-03-24 00:46
by boco
From what I know, only absolute paths are supported.

Code: Select all

/home/fireplug/public_html

So, the issue is that you are not starting in the root directory, but already in a subdirectory. The public_html is located below the subdirectory as well, and not below the server root. A directory /public_html does therefore not exist. Use the aforementioned true path for your case and it will work.

Re: /public_html

Posted: 2023-03-24 01:07
by SYakoban
SUPERCOOL!!!

/home/fireplug/public_html resolved it.

Thank you boco!

Thank you iam_sysop!