Author Topic: Open_BaseDir Revisited for Dolphin Users  (Read 901 times)

Johnk42

  • Newbie
  • *
  • Posts: 5
    • View Profile
Open_BaseDir Revisited for Dolphin Users
« on: April 03, 2018, 08:08:55 pm »
Dolphin users often come across open_basedir issues when trying to install the script. It's no different when you install Dolphin on EHCP, but I found an old thread that really helped. The forum software said the thread was very old and suggested I create a new one. Thanks to those who contributed previously. This is your work with a few additions from me:

1. Login as admin.
2. Select the domain you want to remove the restriction from in the EHCP panel.
3. Click on the Edit Apache Template icon.
4. Scroll down to (or do a search for) # this is pear compatible:
5: Use the Hash (#) symbol to isolate the next three (3) lines

# this is pear compatible:
   # php_admin_value open_basedir "{homedir}:/usr/share/php:/usr/share/pear"
   # php_admin_value upload_tmp_dir "{homedir}/phptmpdir"
   # php_admin_value session.save_path "{homedir}/phptmpdir"

   php_admin_value disable_functions "exec,passthru,shell_exec,system,proc_open,popen

Save the template.  The restriction should no longer apply to this domain after the EHCP daemon runs the domain sync.  If that doesn't happen within a minute, restart the ehcp daemon by running this command:

sudo service ehcp restart

I I used Putty (or your mac terminal) to restart the server until I found it can be dome from the Server Status menu option.

Here's the old thread: http://ehcpforce.tk/forums/index.php?topic=32.msg90#msg90

« Last Edit: April 03, 2018, 08:50:13 pm by Johnk42 »