Mobile app version of vmapp.org
Login or Join
Turnbaugh106

: CSS files not updating on FTP transfer overwrite I have a weird issue: I have made changes to a CSS document but when I upload it and overwrite the existing file nothing changes - the old

@Turnbaugh106

Posted in: #Chmod #Css #Ftp #WebHosting #Webserver

I have a weird issue: I have made changes to a CSS document but when I upload it and overwrite the existing file nothing changes - the old file remains.

I have tried this on several FTP clients to the same effect. It appears to be only one web server affected. I can upload and download files fine - just not overwrite existing files.

Does anyone know what could be causing this? (permissions are 644).

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Turnbaugh106

2 Comments

Sorted by latest first Latest Oldest Best

 

@Radia820

Are you sure that nothing changes ? It might be due to your browser cache.

To check this upload the file to the server then download it and see if it's the new or the old one.

You should also delete your browser cache.

10% popularity Vote Up Vote Down


 

@Turnbaugh106

There are three possibilities why this is happening that I can think off:


WWW-DATA Ownership
ROOT Ownership
FTP Server Settings


WWW-DATA Ownership

The file on the server may belong to another usergroup that the FTP user is not a part of. Assuming that your web server uses the standard www-data group, you should ensure that the FTP user has permission to write changes to this group. Alternatively you could try changing the chmod of this file to 777 meaning that anyone can write to it regardless of group. If this fails you may need to login on the SSH level to do the chmod rather than the FTP side.

ROOT Ownership

Ensure that the file that you're writing to is not owned by root, at some point you may have used something like SSH to transfer though the file and this may be one of the reasons why some of your files are root.

FTP Server Settings

Finally you should ensure that the FTP server is not blocking you making an overwrite command. FTP server applications such as ProFTPD have settings that can block this, for example: AllowOverwrite off check the config file to rule this out or alternatively a work around could be to download the file locally and make your changes as required and rather than overwriting the file, simply delete it.. and then make a new file.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme