Results 1 to 6 of 6
  1. #1
    Join Date
    Mar 2014
    Posts
    9
    Points
    1,410
    Level
    15

    .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. #2
    Join Date
    Apr 2012
    Posts
    2,179
    Points
    24,154
    Level
    67
    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

  3. #3
    Join Date
    Apr 2014
    Posts
    40
    Points
    1,585
    Level
    16
    Hey sim79,

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

    Thanks,
    Nathan

  4. The Following User Says Thank You to IWorx-Nathan For This Useful Post:


  5. #4
    Join Date
    Mar 2014
    Posts
    9
    Points
    1,410
    Level
    15
    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.

  6. #5
    Join Date
    Apr 2012
    Posts
    2,179
    Points
    24,154
    Level
    67
    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

  7. #6
    Join Date
    Oct 2010
    Posts
    28
    Points
    3,649
    Level
    25
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •