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.

eZ debug

Timing: Jan 18 2025 22:23:26
Script start
Timing: Jan 18 2025 22:23:26
Module start 'layout'
Timing: Jan 18 2025 22:23:26
Module start 'content'
Timing: Jan 18 2025 22:23:26
Module end 'content'
Timing: Jan 18 2025 22:23:26
Script end

Main resources:

Total runtime0.6976 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 588.1641152.6563
Module start 'layout' 0.00620.0026 740.820339.5234
Module start 'content' 0.00880.6875 780.3438534.2188
Module end 'content' 0.69630.0012 1,314.562512.0938
Script end 0.6975  1,326.6563 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4559160.0002
Check MTime0.00130.1931160.0001
Mysql Total
Database connection0.00080.111110.0008
Mysqli_queries0.637391.3665620.0103
Looping result0.00060.0885600.0000
Template Total0.669395.920.3346
Template load0.00230.336720.0012
Template processing0.666995.609220.3335
Template load and register function0.00020.024510.0002
states
state_id_array0.00070.107410.0007
state_identifier_array0.00060.081720.0003
Override
Cache load0.00200.2928650.0000
Sytem overhead
Fetch class attribute can translate value0.00070.100530.0002
Fetch class attribute name0.00120.178940.0003
XML
Image XML parsing0.00040.059230.0001
class_abstraction
Instantiating content class attribute0.00000.001240.0000
General
dbfile0.00060.0860100.0001
String conversion0.00000.001140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
12content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
9content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 27
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs