Fixing scriptcase permission on your host

Some users have problems regarding permissions. When they are uploading files you can a message likes this "500 Internal Server Error" or when trying to creating the connection on scriptcase deploy environment you get an error like this "failed to open stream: Permission denied in...".

The first thing that some people say its to give 0777 permission. The first "7" is the total permission for the owner, the second one is for the group and the third "7" is for everyone. Here is the trick, for hosts company, a permission 0777 is a security issue for php files. "Everyone" can't have total permission. So you cant an internal server error.

The correct permissions are:

Folders: 0755
Files: 0644


So, how to fix?


Step-by-step:

Open a shell (or putty on windows) and log in into your SSH account;
Execute this command at the prompt for folders: find /home/YOURUSER/public_html/ -type d -exec chmod 755 {} \;
Execute this command at the prompt for files: find /home/YOURUSER/public_html/ -type f -exec chmod 644 {} \;
Execute this command at the prompt for fix owner (only if the files aren't if your username): chown YOURUSER.YOURUSER /home/YOURUSER/public_html/ -R


Remember to change YOURUSER with your username login at http://hoo.st and its all finished

Was this answer helpful?

 Print this Article

Also Read

Consertando permissões do scriptcase no seu host

Alguns usuários têm problemas relacionados com permissões. Quando estiver fazendo upload de...

How to Install Ghost via Softaculous in cPanel?

1. Log into your cPanel account. 2. In the "Software and Services" section, click on...

How to Install Nucleus via Softaculous in cPanel?

1. Log into your cPanel account. 2. In the "Software and Services" section, click on...

Configurando E-mail no google apps

1. Faça login na sua conta cPanel em http://seu_dominio/cpanel . 2. Clique em E-mail.3. Clique...

How to Install FlatPress via Softaculous in cPanel?

1. Log into your cPanel account. 2. In the "Software and Services" section, click on...