cancel
Showing results for 
Search instead for 
Did you mean: 

Open_basedir disable for magento 2?

SOLVED

Open_basedir disable for magento 2?

friends,

 

Open_basedir disable for magento 2? Should there be ?open_basedir be open for shared servers.

Do I need to hire a server? for holding off open_basedir .

 

thanks.

6 REPLIES

Re: Open_basedir disable for magento 2?

To confirm, is open_basedir disabled for your current server? 

 

You may want to try contacting your hosting provider and see if they can have it disabled for you if they are enabled. 

James Lee | Moderator • Magento Master
See My Recommended Magento Hosting & Security Tips

Re: Open_basedir disable for magento 2?

Shall "open_basedir" be enable, or disabled for magento 2? 

What is importance of being enabled, of disabled?

Re: Open_basedir disable for magento 2?

Hi @OKNSYN

 

open_basedir limits the files that can be accessed by php in the specified directory tree.


Suppose you have following two paths on your hosting server

/var/www/vhosts/domainname/httpdocs

And  libraries and configuration directory are here:

/var/www/vhosts/domainname/zend

and you are having the open_basedir restriction set as following in httpd.conf file

<Directory /var/www/vhosts/domainname/httpdocs>
     php_admin_value open_basedir "/var/www/vhosts/domainname/httpdocs"
</Directory>

then your application will not be able to access files under /var/www/vhosts/domainname/zend path.


For more information please read http://php.net/manual/en/ini.core.php#ini.open-basedir

@JLHC should be able to explain in depth. I searched on internet and based on my understanding shared it.

 

For your question Shall "open_basedir" be enable, or disabled for magento 2?  I think @sherrie should be able to provide official answer,(or may be some one from Magento team, I searched on dev docs but did not find any information).

 

In last , are you facing any issue related to this setting?

---
Problem Solved Click Accept as Solution!:Magento Community India Forum

Re: Open_basedir disable for magento 2?

I now " open_basedir " command as "no value " I have set.

I guess this is the most appropriate.what do you think? @muk_t

 

I " open_basedir " I do not get the error .

One man said to me, should be closed .I wanted to ask you.

" Open_basedir " Value is open or closed ?What should it be?

Re: Open_basedir disable for magento 2?

@OKNSYN: It should be disabled if possible. 

James Lee | Moderator • Magento Master
See My Recommended Magento Hosting & Security Tips

Re: Open_basedir disable for magento 2?

I have the same problem with the open_basedir errors. They still occure even when I set open_basedir to none.
Composer install returns Unknown: open_basedir restriction in effect. File(/usr/lib64/plesk-9.0/composer.phar) is not within the allowed path.

Anyone that has been delt with the same problem before?

Thanks!