Websites work only with 755 at public_html

Started by changlee, June 23, 2018, 03:58:37 PM

Previous topic - Next topic

changlee

Hello CWPers!
My website file work only with 755 folder permissions at /public_html

If I modify the /public_html to 750 then I get Forbidden to any /public_html/file.html or .php

What do you suggest?
You may use our FREE SMTP Newsletter APP at https://www.emailbat.com

Gogo

Folders have to be 0755 and files 0644. Instead of 0750 you can block direct access to folders with htaccess.

changlee

So what exactly have I to do with /public_html folder please?
You may use our FREE SMTP Newsletter APP at https://www.emailbat.com

Gogo

What do you want to do with public_html exactly?

You can block access from web with .htaccess like this example stackoverflow

changlee

Have I to set for /public_html 750 or let it 755 as it is working now?
You may use our FREE SMTP Newsletter APP at https://www.emailbat.com

Gogo

Just leave it as is (755). No need for changes in CWP.

changlee

So it is no problem, for security issues to leave /public_html to 755?

Is it OK?
You may use our FREE SMTP Newsletter APP at https://www.emailbat.com

Gogo

You can leave it as-is. There shouldn't be any problems since it's default CWPs setup.

changlee

I migrated a website to a new CWP installation and it works under 750

I can not understand why the previous installation works only with 755 at /public_html
You may use our FREE SMTP Newsletter APP at https://www.emailbat.com