Fix FileZilla Not Showing var www Folder
In this article
If you're using FileZilla to manage files on a Linux server and the /var/www folder is missing or not showing up, it's usually because of permission restrictions, a misconfigured SFTP/SSH connection, or a hidden directory setting. This guide walks you through the most common fixes, from checking your user permissions to adjusting FileZilla's display options, so you can access your web root and upload files without hassle.
What You'll Need
- FileZilla Client installed (free from the official site)
- Your server's hostname or IP address, username, and password
- If using SSH keys, the private key file (e.g.,
id_rsa) - Command-line access to the server (via SSH) to check permissions—optional but helpful
Step-by-Step
- Check your connection type. In FileZilla, open Site Manager (Ctrl+S). Ensure the Protocol is set to SFTP - SSH File Transfer Protocol if you're using SSH keys or port 22. If you're using plain FTP, the
/var/wwwfolder might not be accessible due to chroot restrictions. Switch to SFTP if possible. - Log in as a user with sufficient permissions. If you're logging in as a non-root user (like
www-dataor a limited user), you may not have read access to/var/www. Try logging in asrootor a user with sudo privileges. If you only have a sudo user, you can't directly use sudo in FileZilla—you'll need to either change the folder's permissions or use an SFTP connection that maps to a user with access. - Check the remote directory path. In FileZilla's remote pane (right side), look at the top path bar. If it shows
/or/home/username, navigate to the root by typing/in the path bar and pressing Enter. Then look forvarand thenwww. If the folder isn't there, it might be named differently (e.g.,htmlorpublic_html). - Enable hidden files. Click the Server menu and ensure Force showing hidden files is checked. If it's already checked, uncheck and recheck it to refresh. Hidden files (starting with a dot) are not shown by default, but
varandwwware not hidden—so this is rarely the issue, but worth trying. - Refresh the directory listing. Press F5 or right-click in the remote pane and select Refresh. Sometimes the folder list is cached and doesn't update.
- Check server-side permissions. If you have SSH access, run
ls -ld /var/wwwto see the permissions. If the output shows something likedrwxr-x---and your user is not in the owning group, you won't see it. You can fix this by runningsudo chmod 755 /var/www(orsudo chown -R username:username /var/wwwif you want your user to own it). Be careful with permissions—755is usually safe for a web root. - Try a different port. If you're using SFTP on a non-standard port (not 22), make sure the port is correctly set in FileZilla. A wrong port can cause the connection to succeed but show a different directory structure.
- Use the quickconnect bar. Instead of Site Manager, try typing
sftp://username@serverin the Host field at the top. This forces SFTP and sometimes resolves issues with default FTP settings. - Check for chroot jail. If your hosting provider uses a chroot environment (common in shared hosting), you might be confined to your home directory. In that case,
/var/wwwis not accessible at all. You'll need to ask your host to grant access or use a different method (like SSH with a shell). - Reinstall or update FileZilla. Rarely, a bug in FileZilla can cause directory listing issues. Update to the latest version or reinstall the client.
Common Mistakes
- Using FTP instead of SFTP. Plain FTP often runs in a chroot jail that limits you to your home directory. Always use SFTP (port 22) for full server access.
- Logging in as a non-privileged user. If you log in as
www-dataor a user without read permissions, the folder won't appear even if it exists. - Assuming
/var/wwwis the only web root. On some systems (like Ubuntu with Apache), the web root is/var/www/html. On others, it might be/srv/wwwor/home/username/public_html. - Not refreshing the view. FileZilla sometimes caches the directory listing. Always refresh after changing permissions or connecting.
- Typing the path incorrectly. The path is case-sensitive.
/var/wwwis not the same as/Var/WWW.
Tips
- Set default remote directory. In Site Manager, under the Advanced tab, you can set a default remote directory. If you have access, set it to
/var/wwwto jump straight there on connect. - Use bookmarks. Once you navigate to
/var/www, right-click and select Add to Bookmarks for quick access next time. - Check with a different client. If FileZilla still doesn't show the folder, try another SFTP client like WinSCP or the command line
sftpto confirm whether it's a server or client issue. - Learn basic Linux permissions. Understanding
chmodandchownwill help you diagnose access issues quickly.
Troubleshooting
If you've followed all the steps and still can't see /var/www, try these additional checks:
- Test with a direct SSH command. Open a terminal and run
ssh username@server, then typels /var/www. If you get a permission denied error, it's definitely a server-side permission issue. If you see the folder, the problem is with FileZilla's connection settings. - Check the server's SSH configuration. If the server has
ChrootDirectoryset in/etc/ssh/sshd_config, you might be jailed. Contact your system administrator to adjust it. - Look at FileZilla's log. At the top of the screen, the message log shows the server's response. If you see
550 Permission deniedwhen trying to list the directory, it's a permissions issue. If you seeNo such file or directory, the folder doesn't exist at that path. - Try a different user. If you have multiple accounts, log in with one that has higher privileges (like root) to see if the folder appears. This isolates whether the issue is user-specific.
- Restart FileZilla. Occasionally, the client gets stuck. Close and reopen it, then reconnect.
Frequently Asked Questions
Why can't I see /var/www even though I'm logged in as root?
If you're root, you should have access. Check that the folder actually exists on the server. Run ls -la / to see if var is present. If not, your system might use a different layout (e.g., /srv).
What does "550 Permission denied" mean in FileZilla?
This error means the server refused to list the directory because your user account lacks read permission. You need to either change the folder permissions or use an account with access.
Is /var/www the same as /var/www/html?
No. /var/www is often the parent directory, and /var/www/html is the actual web root on Debian/Ubuntu systems. Check both paths.
Can I use FileZilla to edit files in /var/www directly?
Yes, once you have access, you can right-click a file and choose View/Edit to edit it locally and upload automatically. However, be careful with file permissions—files should be writable by your user.
Why does FileZilla show an empty folder when I connect?
This could be because you're in a chroot jail that starts you in an empty directory, or because the server is misconfigured. Try navigating to / manually, or check with another client.
Do I need to change my server's firewall to see /var/www?
No, firewalls don't affect folder visibility. If you can connect to the server at all, the firewall is fine. The issue is purely permissions or path.