ispCP - Board - Support
Remove open_basedir restriction per domain configuraton - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: System Setup & Installation (/forum-32.html)
+--- Thread: Remove open_basedir restriction per domain configuraton (/thread-3449.html)



Remove open_basedir restriction per domain configuraton - tassoman - 06-04-2008 07:38 PM

Hi to all, I'm trying to develop a magento commerce installation. But it found an open_basedir restriction.

I've looked at apache2 config and that shouldn't be: tmp dir is within, session dir also. Magento just seeks files into /tmp/magento/var:

Quote:Warning: file_exists(): open_basedir restriction in effect. File(/tmp/magento/var) is not within the allowed path(s)

t1/htdocs/app/code/core/Mage/Core/functions.php on line 244

anyone got some kind of problem? I'm investingating.


RE: Remove open_basedir restriction per domain configuraton - tassoman - 06-04-2008 10:06 PM

Ok i've figured out: it was an error owner's files permission.

Now the problem with open_basedir is the following:

I've edited /etc/ispcp/parts/apache/(dmn|als|sub)_entry.tpl files. Then I've manually requested regeneration management to gui engine by following wiki page: http://www.isp-control.net/documentation/howto/ispcp/regenerate_config

Now i would get /var/www/apps into open_basedir, foreach domain/subdomain/alias

the only value i get is this:

Quote: string(43) "/var/www/virtual/sub.domain.tld/:/usr/share/php/"

why that list is so different from configured virtualhost?

Code:
php_admin_value open_basedir "/var/www/apps/:{WWW_DIR}/{SUB_NAME_PHP2}:{WWW_DIR}/{SUB_NAME_PHP2}/phptmp:{PEAR_DIR}"



RE: Remove open_basedir restriction per domain configuraton - gOOvER - 06-04-2008 10:22 PM

Every vhost has it own php.ini. Also ispcp, it have also an own php.ini.


RE: Remove open_basedir restriction per domain configuraton - tassoman - 06-05-2008 02:56 AM

Are you meaning I should manage to edit /var/www/fcgi/domain.tld/php[45]/php.ini and for future domain registrations /etc/ispcp/fcgi/parts/php[45].ini ?