Announcement

Collapse
No announcement yet.

.htaccess permissions

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • .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?

  • #2
    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

    Comment


    • #3
      Hey sim79,

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

      Thanks,
      Nathan

      Comment


      • #4
        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.

        Comment


        • #5
          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

          Comment


          • #6
            We are also having this issue .... any estimate delay on a fix ?
            http://www.domaineplus.com/ - Over 10 years in the business
            Domain names - Web hosting - Website Design and Programming
            Phone support and sales : 1-877-990-2047
            Email support : support@domaineplus.com

            Comment

            Working...
            X