FTP client can't access files in /var/www/html (Apache )
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
FTP client can't access files in /var/www/html (Apache )
I'm running CentOS 5.3 and I have pure-ftpd as my FTP server. I'm using the FlashFXP FTP client on Windows and I'm trying to access files on my server. Every file I've tried to access has worked fine except the files in the Apache /www/html folder. FlashFXP just says "Unable to open specified file." My guess is that this is some kind of file permission issue or maybe an Apache configuration issue that I'm not aware of.
Obviously I'm very new to Linux/Apache and if anyone could shed some light on this issue I'd appreciate it very much.
look at the permissions.
Does the user (you are using to ftp) have permissions to that folder ?
Thanks for the reply. I'm not sure where I should enter this command. I've tried it in numerous directories and I always get "ls: /www/: No such file or directory".
The user I am using to FTP is "root" which I thought had permission to everything - is this not true?
Please let me know where I should enter that command so that I can see what the problem is.
The file permissions on html directory mean that the files can be edited by "root" user and everyone else can only read them. So in short, you should be able to edit them provided the individual files in this html directory are writable.
The file permissions on html directory mean that the files can be edited by "root" user and everyone else can only read them. So in short, you should be able to edit them provided the individual files in this html directory are writable.
Post output of:
Code:
ls -la /var/www/html
Okay your post got me thinking...I tried a different FTP client made by SSH Secure Shell and it let me edit the files. Why would this be? I'd like to use FlashFXP. FlashFXP can edit any files OTHER than the html directory files it seems.
Here is the output you asked for:
Code:
[root@localhost /]# ls -la /var/www/html
total 40
drwxr-xr-x 4 root root 4096 Jun 2 01:18 .
drwxr-xr-x 8 root root 4096 May 28 09:54 ..
-rwxr-xr-x 1 root root 5747 Dec 29 10:21 atomic-release-1.0-10.el5.art.noarch.rpm
-rwxr-xr-x 1 root root 35 May 29 22:51 index.php
drwxr-xr-x 10 root root 4096 Jun 2 01:19 phpMyAdmin
drwxr-xr-x 11 root root 4096 Jun 2 00:52 phpPgAdmin
-rwxr-xr-x 1 root root 1344 Nov 8 2004 RPM-GPG-KEY.art.txt
Doesn't make any sense to me - changing ftp clients shouldn't make any difference in basic get/put operations. Btw, what you mean exactly by "edit"? You are doing a "put" to /var/www/html?
It would be useful if you can cut/paste the output generated by your ftp client - that'll let us see exactly what your inputs are and the output from the session.
Doesn't make any sense to me - changing ftp clients shouldn't make any difference in basic get/put operations. Btw, what you mean exactly by "edit"? You are doing a "put" to /var/www/html?
It would be useful if you can cut/paste the output generated by your ftp client - that'll let us see exactly what your inputs are and the output from the session.
You know what? I'm an idiot.
I'm on a new computer and I just copied over all of my FlashFXP settings from my old computer and the client is configured to open .php files with an editor that doesn't exist on my new computer. That's what "FlashFXP cannot open this file" means. I should have tried more file types which is why, as I said before, I am an idiot.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.