When I try to create a .htaccess file via SiteWorx, it creates it with the following permissions:
-rw------- 1 foobarxx foobarxx 1028 Oct 2 17:52 .htaccess
(chmod 600 owner read/write only)
This causes Apache to be unable to read the file, and the site to display “You don’t have permission to access / on this server.” when viewed via a browser.
I can log in via SSH and issue a chmod 644 to fix up the issue, but I’m not sure why the initial permissions are being set as they are by SiteWorx.
Hi Sim79
Yes, you are correct.
I will email IW with this post link so you have the credit for this.
Well spotted, and sorry, none of our clients had brought this to our attention.
Many thanks
John
Many thanks, and I don’t think it is connected with php version, as I tried on production and test server, ranging from php 5.3.8 to 5.6, and all create the htaccess file with perm 600.