Jump to content

[Confused]With Litespeed server chmod 755 for dir and 644 for files won't work


Recommended Posts

I recently install a prestashop on a Litespeed server and it didn't pass the configuration check (during installation process) until I chmod the directory of img, download, upload, translation, sitemap.xml, etc to 777. Basically it only works if I chmod almost all directories and files to 777. If I chmod 644 for settings.inc.php it won't be editable if I want to change the themes. So I chmod it to 777.

The other case, I move a prestashop from a non-Litespeed server to a Litespeed server via cpanel cpmove. And again, it shows blank screen until I chmod almost all dir to 777.

My question is, is it safe to do this way? Will it harm my sites from hacker attack?

I hope someone could give some clue for this issue.

Link to comment
Share on other sites

Using chmod 777 permissions makes your files writable to everyone, so hackers can modify your code and inject malware. You should change to another host that does work with chmod 755 for directories and chmod 644 for files.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...