Gday everyone! Im new here... but used ubuntu for nearly ayear now!
I've been uploading files to a folder using an FTP user within my web directory : httpdocs/files...
But when my php script goes to move these files to a new directory it fails, the files are uploaded with permissions 'rwx rw- rw- '...
I am using centos 5.7 with cPanel WHM running fastcgi/suEXEC
I am trying to make a particular folder writable to allow a script to upload files but seem to be having problems.
The folder (and all recursive folders) I want to be writable is:
/home/mydomain/public_html/uploads
And I want only scripts run by the user "songbanc" to be able to write to this directory.
I have tried the following:
I've got a webserver which hosts a website. The website is located in /home/website.
I am trying to upload files to my /var/www folder, but it won't let me, via Filezilla. I logged in with my root user account. If I am logged in as root via FTP, shouldn't I be able to do anything (like upload files to a directory, in this case)? Anyway, I know this is not the best way to solve this, but I did a "sudo chmod 777 www" to the directory so I could put the files.
I have a CentOS 6.3 installed with httpd running and vsftpd but I am unable to balance permission between the user able to upload over ftp and their website working.
What I do:
I create a user with their home directory as `/home/username`
I create a sub folder called `html` for their website
I chown their directory `chown -R username:apache /home/username`
I chmod their directory `chmod -R 750
I have set up a FTP server using vsftpd and enabled anonymous upload and download. The problem I have is that when I upload a directory it will be uploaded successfully (I can see it in server), but the next time I want to check that directory, FTP client shows an empty directory!!
There is no error logged in /var/log/vsftpd.log.
I currently am running an Apache2 server. I have an FTP client (vsftpd).
I have a user for the FTP using Dreamweaver. This user is added to the groups sudo and www-data.
When I connect to the server I can see the files.
I have a CentOS 6.3 installed with httpd running and vsftpd but I am unable to balance permission between the user able to upload over ftp and their website working.
What I do:
I create a user with their home directory as `/home/username`
I create a sub folder called `html` for their website
I chown their directory `chown -R username:apache /home/username`
I chmod their directory `chmod -R 750
If I upload files to the webserver from any user OTHER than www-data, then I get a 403 error when I try to access the uploaded files from the browser. I can run "chmod 777" on the file and it works fine then, but it's very tedious to have to do this to every file I upload. Is there a way to make it so any of my users in the www-data group can upload files (via FTP) without issue?