Current time: 11-18-2024, 02:26 AM Hello There, Guest! (LoginRegister)


Post Reply 
Remove open_basedir restriction per domain configuraton
Author Message
tassoman Offline
Junior Member
*

Posts: 15
Joined: May 2008
Reputation: 0
Post: #1
Remove open_basedir restriction per domain configuraton
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.
(This post was last modified: 06-04-2008 07:38 PM by tassoman.)
06-04-2008 07:38 PM
Find all posts by this user Quote this message in a reply
tassoman Offline
Junior Member
*

Posts: 15
Joined: May 2008
Reputation: 0
Post: #2
RE: Remove open_basedir restriction per domain configuraton
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...ate_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}"
06-04-2008 10:06 PM
Find all posts by this user Quote this message in a reply
gOOvER Offline
Banned

Posts: 3,561
Joined: Jul 2007
Post: #3
RE: Remove open_basedir restriction per domain configuraton
Every vhost has it own php.ini. Also ispcp, it have also an own php.ini.
06-04-2008 10:22 PM
Visit this user's website Find all posts by this user Quote this message in a reply
tassoman Offline
Junior Member
*

Posts: 15
Joined: May 2008
Reputation: 0
Post: #4
RE: Remove open_basedir restriction per domain configuraton
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 ?
06-05-2008 02:56 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 3 Guest(s)