Questions tagged [chmod]
8 questions
5
votes
2 answers
Cannot change file permission via FTP: '500 - command not understood'
I have an old site that is in danger of being compromised as many of the directories and files have permissions set to 777. However, when I try to change them to 555 via FileZilla I get the error
500 'SITE CHMOD 555 filename': command not…
MeltingDog
- 1,373
- 3
- 21
- 36
5
votes
2 answers
What measures should I take after I find one of my scripts being vulnerable?
I maintain a few PHP-based websites for a small company on a LAMP server. The scripts include CMS such as Joomla or Wordpress, as well as SilverStripe and Drupal installations.
A week ago, I found the sites to have been compromised. The only actual…
slhck
- 165
- 6
5
votes
1 answer
Is it safe to use 777 for my public html folder?
Running a Linode and I want to install Nextcloud, but it needs permissions to write to the directory (/var/www/html). Doing a chmod 777 will clear things up but I wonder if it's safe to use that open of a permission scheme on the public html…
liminalFrog
- 51
- 2
3
votes
2 answers
Question about my public_HTML folder permissions
I have a shared hosting account that uses cPanel and I think su_php. By default, the permissions for my public_HTML directory are set to 750, which allows my site and all folders/files inside public_HTML to be viewable by anyone who visits the site.…
Joe
- 227
- 1
- 9
3
votes
2 answers
Can .htaccess be used to set file permissions?
Is it possible to define file type permissions through .htaccess? I have a site that uses .pl and .cgi scripts which require 0755 CHMOD. The shared server setting is apparently geared for WordPress which require 0644 CHMOD as it is php-driven, so…
Cruz
- 31
- 1
- 3
2
votes
1 answer
Getting 403 Forbidden after changing webroot
I am running Ubuntu with Apache (LAMP stack). When I changed the webroot from /var/www to /media/data/www, I keep getting 403 Forbidden even after chmod-ing the directory + files to 777. What did I do wrong? Also referencing /var/www, I noticed that…
JM at Work
- 145
- 1
- 5
1
vote
3 answers
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 file remains.
I have tried this on several FTP clients to the same effect. It appears to be only one web…
MeltingDog
- 1,373
- 3
- 21
- 36
0
votes
2 answers
After changing web host, I get a 'file does not exist' error
I run a WordPress blog, and have recently changed web hosts.
When changing web hosts, I copied all files and exported/imported the database etc as explained by lots of tutorials found easily on Google. The blog home page works fine.
What goes…
Jordan Smith
- 101
- 4