.htaccess permissions

Hi guys,

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.

Any ideas?

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

Hey sim79,

In NodeWorx -> System Services -> Web Server what PHP Mode are you running?

Thanks,
Nathan

Hi Nathan,

“PHP Scripts run as SiteWorx User”.

(If it is relevant, the machine is running PHP 5.4.33 from the Webtatic repository.)

Thanks John/Nathan.

Hi sim79

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.

I hope that helps

Many thanks

John

We are also having this issue … any estimate delay on a fix ?