Control Web Panel
WebPanel => Apache => Topic started by: changlee on June 23, 2018, 03:58:37 PM
-
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?
-
Folders have to be 0755 and files 0644. Instead of 0750 you can block direct access to folders with htaccess.
-
So what exactly have I to do with /public_html folder please?
-
What do you want to do with public_html exactly?
You can block access from web with .htaccess like this example stackoverflow (https://stackoverflow.com/questions/17611770/deny-from-all-in-subdirectory-htaccess-not-overriding-file-rules-in-root-htacces?answertab=votes#tab-top)
-
Have I to set for /public_html 750 or let it 755 as it is working now?
-
Just leave it as is (755). No need for changes in CWP.
-
So it is no problem, for security issues to leave /public_html to 755?
Is it OK?
-
You can leave it as-is. There shouldn't be any problems since it's default CWPs setup.
-
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