ezpublish 3.1 on redhat linux 7.3 - open_basedir problem

Author Message

Stefan van Zwoll

Friday 25 July 2003 6:49:03 am

dear developers,

i've installed on my webhost ezp 3.1 clean (no installer) with the browser setup. right from the beginning it said, it'll have problems with open_basedir. everything else is ok, the installer said.

my webhost includes in the standard httpd.config the following confixx_vhost.config:

#### CONFIXX APACHE VHOST FILE ####
### created Wed Jul 23 23:57:08 2003 ###

NameVirtualHost xx.xx.xxx.xxx:80
php_admin_flag safe_mode On
php_admin_value safe_mode_exec_dir /var/www/empty

UseCanonicalName Off
LogFormat "%V:#:%h %l %u %t \"%r\" %s %b \"%{Referer}i\" \"%{User-agent}i\"" confixx
LogFormat "%h %l %u %t \"%r\" %s %b \"%{Referer}i\" \"%{User-agent}i\"" confixx2
CustomLog |/root/confixx/pipelog.pl confixx
<Directory "/var/www">
<Files ~ "^\.ht">
deny from all
</Files>
AllowOverride None
AllowOverride Indexes AuthConfig Limit FileInfo
Options None
Options -FollowSymLinks -SymLinksIfOwnerMatch +Includes
</Directory>

<VirtualHost xx.xx.xxx.xxx:80>
DocumentRoot /var/www/confixx/html/gesperrt
</VirtualHost>
<VirtualHost xx.xx.xxx.xxx:80>
ServerName mydomain.de
ServerAlias www.mydomain.de web1.xxxxxx.hostdomain.de
DocumentRoot /var/www/web1/html
User web1
Group ftponly
ScriptAlias /cgi-bin/ /var/www/web1/html/cgi-bin/
php_admin_value open_basedir /var/www/web1/
php_admin_value upload_tmp_dir /var/www/web1/phptmp/
</VirtualHost>

on testing php, it says that globally the open_basedir is off, but locally it is /var/www/web1. where do i change the open_basedir status? in /etc/php.ini there is only the safe_mode described (or am i dumb?).
accessing my ezp-site everything works fine, just an error-message like "warning: open_basedir restriction in effect. File is in wrong directory in /var/www/web1/myezpfolder/lib/ezutils/classes/ezsession.php on line 77" is showing. whats wrong? what to change? i'm stuck.
and besides: to what directory do i have to install imagemagick with that configuration? i tried various setups, but it just doesn't show the imgs... :(

sorry for being "stupid", but i try to install and configure ezp3.1 for 3 weeks now and i just don't come up with a method to get it up and running...

thanks, stefan

Jeroen van Gorkum

Tuesday 29 July 2003 1:14:14 pm

you're not stupid. have you seen & tried the troubleshooting tips about this topic in the documentation? (http://ez.no/developer/ez_publish_3/
documentation/installation_and_configuration/
troubleshooting/open_basedir_restriction <- url on one line).

jeroen.

Stefan van Zwoll

Tuesday 26 August 2003 11:32:30 am

dear jeroen,

well i got it running on my own. but now i have the "common" problem of not getting imagemagick to work. but thanks for your help convincing me of not being stupid ;-)...
stefan

Bas Schwankhuizen

Tuesday 26 August 2003 2:54:48 pm

Hello EZ people,

My site is:
http://www.priveverhalen.nl/index.php

I had my ISP turn of the safemode, because during the setup it told me to do so...

Now it says:

Warning: ezsessionwrite() [function.ezsessionwrite]: open_basedir restriction in effect. File(./lib/ezdb/classes/ezdb.php) is not within the allowed path(s): (/usr/local/psa/home/vhosts/priveverhalen.nl/httpdocs) in /usr/local/psa/home/vhosts/priveverhalen.nl/httpdocs/lib/ezutils/classes/ezsession.php on line 77

Warning: ezsessionwrite(lib/ezdb/classes/ezdb.php) [function.ezsessionwrite]: failed to create stream: Operation not permitted in /usr/local/psa/home/vhosts/priveverhalen.nl/httpdocs/lib/ezutils/classes/ezsession.php on line 77

Warning: ezsessionwrite() [function.ezsessionwrite]: Failed opening 'lib/ezdb/classes/ezdb.php' for inclusion (include_path='.::/usr/local/psa/home/vhosts/priveverhalen.nl/httpdocs/') in /usr/local/psa/home/vhosts/priveverhalen.nl/httpdocs/lib/ezutils/classes/ezsession.php on line 77

Looks like I'm still having this problem, however I'm sure my ISP turned safe mode of.....

Please can sombody give me a few pointers??

Greetings,
Bas Schwankhuizen
The Netherlands

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.