<p>I solved this problem. In /home/User/conf/web/example.com.httpd.conf in string </p>

<pre><code>php_admin_value open_basedir/home/User/web/example.com/public_html:/home/Userl/tmp
</code></pre>

<p>replace on </p>

<pre><code>php_admin_value open_basedir /home/User/web/example.com:/home/Userl/tmp
</code></pre>

CC BY-SA 4.0
2018-07-30T23:34:26.550Z
2018-07-30T23:34:26.550Z
Vitaliy  Badalov
<p>I downloading craft with Composer, but when i move on example.com/index.php?p=admin nothing happens. In the logs:</p>

<pre><code>PHP Warning:  require_once(): open_basedir restriction in effect. File(/home/User/web/example.com/vendor/autoload.php) is not within the allowed path(s): (/home/User/web/example.com/public_html:/home/User/tmp) in /home/User/web/example.com/public_html/index.php on line 11
PHP Warning:  require_once(/home/User/web/example.com/vendor/autoload.php): failed to open stream: Operation not permitted in /home/User/web/example.com/public_html/index.php on line 11
PHP Fatal error:  require_once(): Failed opening required '/home/User/web/example.com/vendor/autoload.php' (include_path='.:/opt/remi/php70/root/usr/share/pear:/opt/remi/php70/root/usr/share/php:/usr/share/pear:/usr/share/php') in /home/User/web/example.com/public_html/index.php on line 11
</code></pre>

CC BY-SA 4.0
2018-07-30T12:06:10.520Z
I solved this problem, but I do not know if it's safe. In /home/User/conf/web/example.com.httpd.conf in string php_admin_value open_basedir /home/User/web/example.com/public_html:/home/Userl/tmp replace on php_admin_value open_basedir /home/User/web/example.com:/home/Userl/tmp
Vitaliy  Badalov
CC BY-SA 4.0
2018-07-30T21:26:48.730Z
Seems like a perfectly valid solution to me... would you mind adding it as an official answer in case it helps someone in the future?
Brad Bell
<installation>
Install Craft on VPS with centos 7 and vestacp
# Install Craft on VPS with centos 7 and vestacp

(Asked by: username_0 on 2018-07-30)

I downloading craft with Composer, but when i move on example.com/index.php?p=admin nothing happens. In the logs:
PHP Warning:  require_once(): open_basedir restriction in effect. File(/home/User/web/example.com/vendor/autoload.php) is not within the allowed path(s): (/home/User/web/example.com/public_html:/home/User/tmp) in /home/User/web/example.com/public_html/index.php on line 11
PHP Warning:  require_once(/home/User/web/example.com/vendor/autoload.php): failed to open stream: Operation not permitted in /home/User/web/example.com/public_html/index.php on line 11
PHP Fatal error:  require_once(): Failed opening required '/home/User/web/example.com/vendor/autoload.php' (include_path='.:/opt/remi/php70/root/usr/share/pear:/opt/remi/php70/root/usr/share/php:/usr/share/pear:/usr/share/php') in /home/User/web/example.com/public_html/index.php on line 11

**Tags:** installation
> **Comments:**
> **username_0**: I solved this problem, but I do not know if it's safe. In /home/User/conf/web/example.com.httpd.conf in string php_admin_value open_basedir /home/User/web/example.com/public_html:/home/Userl/tmp replace on php_admin_value open_basedir /home/User/web/example.com:/home/Userl/tmp  
> **username_1**: Seems like a perfectly valid solution to me... would you mind adding it as an official answer in case it helps someone in the future?  

---

## 1 answers

### Answer by username_0 on 2018-07-30. Score: 2

I solved this problem. In /home/User/conf/web/example.com.httpd.conf in string 
php_admin_value open_basedir/home/User/web/example.com/public_html:/home/Userl/tmp

replace on 
php_admin_value open_basedir /home/User/web/example.com:/home/Userl/tmp


---

