Article ID: 127624, created on Nov 30, 2015, last review on Sep 5, 2016

  • Applies to:
  • Plesk 12.5 for Linux
  • Plesk 12.0 for Linux
  • Plesk 12.5 for Windows


How to set open_basedir parameter to none for all domains?


  1. Create a list of domains:

    For Windows

    "%plesk_dir%\mysql\bin\mysql.exe" -uadmin -p1qazXSW@ -P8306 psa -Ne"select name from domains"  > C:\list.txt

    For Linux

    # mysql -uadmin -p`cat /etc/psa/.psa.shadow` psa -Ne"select name from domains"  > list.txt
  2. Create a file, for example php.txt, with:

    open_basedir = none
  3. Run the following command to set open_basedir to none for all domains:

    For Windows

    for /f "skip=1 tokens=1" %a in (C:\list.txt) do @"%plesk_cli%\site.exe" --update-php-settings %a -settings C:\php.txt

    For Linux

    # cat /root/list.txt | while read dom; do /usr/local/psa/bin/site --update-php-settings $dom -settings /root/php.txt;done

For all new domains set up open_basedir to none in Service Plans > plan_name > PHP Settings.

Search Words

change open_basedir

How to set open_basedir to none for all domains

open_basedir to disabled

php settings via command line

8b661cab116c79dbe6c4ac5bbdf1c8cb 56797cefb1efc9130f7c48a7d1db0f0c a914db3fdc7a53ddcfd1b2db8f5a1b9c 85a92ca67f2200d36506862eaa6ed6b8 a766cea0c28e23e978fa78ef81918ab8 29d1e90fd304f01e6420fbe60f66f838 742559b1631652fadd74764ae8be475e e335d9adf7edffca6a8af8039031a4c7 2a5151f57629129e26ff206d171fbb5f

Email subscription for changes to this article
Save as PDF