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. Thanks. - dshap |
do a
ls -l /www/ | grep html look at the permissions. Does the user (you are using to ftp) have permissions to that folder ? |
Quote:
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. Thanks. |
That's because your title says /var/www (which I'd expect on centos) ..
|
Quote:
[root@localhost /]# ls -l /var/www/ | grep html drwxr-xr-x 4 root root 4096 Jun 2 01:18 html Does this output indicate that I wouldn't be able to view/edit files with the "root" FTP account? If so, how can I change that? Thanks. |
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 |
Quote:
Here is the output you asked for: Code:
[root@localhost /]# ls -la /var/www/html |
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. |
Quote:
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. I appreciate all of your help, as always. |
All times are GMT -5. The time now is 08:51 PM. |