how to read files outside ispconfig client sites

Discussion in 'Programming/Scripts' started by pannet1, Jul 16, 2024.

  1. pannet1

    pannet1 Member

    i have one python script that is constantly writing log files. they are console based programs and there is no scope to read them as web page from python. they are located somewhere like this in my debian ispconfig setup.

    Code:
    ~/no_env/project_name/data/log.txt
    with this general consideration, i have a subdomain created for each of this ssh clients something like ... https://company.my-ispconfig-site.com

    i want read the log file from a php script as and when it is getting appended to the log file. what permissions should the following have

    1) my php script
    Code:
    index.php
    2) for the entire directories in the traverse path .i.e.
    Code:
     ../no_env/project_name/data/
    and the log.txt file it contains.

    short question
    what should i do to make ISPCONFIG client website read file outside the webroot.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    If it's a PHP web script, you must add that path to the PHP open_basedir; see the options tab of the website.
     
    ahrasis and pannet1 like this.
  3. pannet1

    pannet1 Member

    @till thanks it worked.
     

Share This Page