Gideon So Posted July 9, 2021 Share Posted July 9, 2021 I migrated a site to a hosting company which provides cPanel to manage the domain. I have some errors like the following: 2021-07-09 05:09:32.453548 [ERROR] [5674] [HTAccess] Failed to open [/home/misfmorg/public_html/site/.htaccess]: Permission denied 2021-07-09 05:09:28.141643 [ERROR] [5674] [HTAccess] Failed to open [/home/misfmorg/public_html/site/assets/files/1058/.htaccess]: Permission denied 2021-07-09 05:09:27.067796 [ERROR] [5674] [HTAccess] Failed to open [/home/misfmorg/public_html/site/assets/files/1093/.htaccess]: Permission denied 2021-07-09 05:09:26.775691 [ERROR] [5674] [HTAccess] Failed to open [/home/misfmorg/public_html/site/assets/files/1091/.htaccess]: Permission denied 2021-07-09 05:09:26.672877 [ERROR] [5674] [HTAccess] Failed to open [/home/misfmorg/public_html/site/assets/files/1099/.htaccess]: Permission denied 2021-07-09 05:09:26.471388 [ERROR] [5674] [HTAccess] Failed to open [/home/misfmorg/public_html/site/assets/files/1092/.htaccess]: Permission denied 2021-07-09 05:09:26.086949 [ERROR] [5674] [HTAccess] Failed to open [/home/misfmorg/public_html/site/assets/files/1053/.htaccess]: Permission denied I checked the permission if the .htaccess file is correct and I wonder why the web server keep searching .htaccess file in every folder in the site assets folder. Any hint is welcome. Gideon Link to comment Share on other sites More sharing options...
BillH Posted July 9, 2021 Share Posted July 9, 2021 I don't know the cause of the trouble, but it might be worth checking that your .htaccess file is being read by adding some random characters at the start; a server error when you go to a page of the site will mean that it is being read. My best guess about the /assets/files/ errors is that .htaccess is being read, and that the errors are a side effect arising from the rewrite rules involving that directory. Have you looked inside the PW .htaccess? It's well commented, so the next thing might be to read through it for any ideas. Link to comment Share on other sites More sharing options...
Gideon So Posted July 10, 2021 Author Share Posted July 10, 2021 Hi @BillH Thanks for you kind hint. It was the file permission of the assets and modules folder causes the error. It is fixed now. Gideon 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now