help creating a new directory

Discussion in 'Installation/Configuration' started by momo1240, Sep 15, 2014.

  1. momo1240

    momo1240 Member

    Hello friends,
    Hope someone can help me, I'm using ispconfig3.
    Here is my situation :
    I have an ecommerce website and I have some files to be hibben
    so I have to put them out of web directory :

    so on FTP, I created a new directory on /var/www/clients/clientX/mynewdirectory

    Instead of having these files like :
    I created the directory and have this

    but when I'm trying to use these files, I have a message said that I don't have right to write on this directory

    can someone help me
    thank you
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Which ispconfig version do you use? Did you add the path of your private directory to the open_basedir path of the website (options tab) and is this directory owned by the website user and client group of this website?
  3. momo1240

    momo1240 Member

    Hello till
    thanks for your reply

    about my ispconfig I have ISPConfig Version:

    so I have my web directory like that


    and what I want is to put "atos" directory outside "web" but keeping the same rights that it have on web directory (writable etc ...)

    SO I want to have

    thanks a lot for your help

    Hi it's me again

    I created the directory on ssh like that

    so I change the groupe and the owner like that

    -chgrp -Rc client1 atos
    -chown -Rc web64 atos

    but what I have to do in order to have the same rights to write etc in web directory

    because after that when I try to use files on /var/www/clients/client1/web64/atos
    I have this message
    !!Unable to write to file /var/www/clients/client1/web64/atos/param/pathfile
    Warning: file_put_contents(): open_basedir restriction in effect. File(/var/www/clients/client1/web64/atos/param/pathfile) is not within the allowed path(s):

    many thanks
    Last edited: Sep 15, 2014
  4. momo1240

    momo1240 Member

    My problem is just I have some files that needs to be outside web directory :
    for example there is on of them=
    "Logs location is the default location which should be moved for security reason. Put it outside of HTTP document root and any public access folder if you can. Make sure no one who shouldn't has access to it."

    But if we can't put another directory outside "web" directory how can we secure these files

    thank you
    Last edited: Sep 15, 2014
  5. momo1240

    momo1240 Member


    thank you

Share This Page