Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Change Files/Directories permission.  (Read 3005 times)

0 Members and 1 Guest are viewing this topic.

Chetan Singh

  • Full Member
  • ***
  • Posts: 123
  • Karma: +2/-0
  • Bienvenido a las Tecnologías de la Admin-Ahead.
    • Admin-Ahead Server Technologies.
Change Files/Directories permission.
« on: November 16, 2013, 08:52:26 am »
Hello,

After you switch to suPHP/FastCGI for a website, please run the following commands from his Document root (for cPanel):

1. find ! -user username
2. find ! -user username -exec chown
        username:username {} \;
3. find -type d ! -perm 755 -exec ls  -ald {} \;
4. find -type d ! -perm 755 -exec   chmod 755 {} \;

5. find -type f ! -perm 644 -exec ls  -al {} \;
6. find -type f ! -perm 644 -exec   chmod 644 {} \;

Thank you,
Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!