Forums / Install & configuration / ezpublish 3.1 on redhat linux 7.3 - open_basedir problem

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

eZ debug

Timing: Jan 18 2025 19:10:16
Script start
Timing: Jan 18 2025 19:10:16
Module start 'content'
Timing: Jan 18 2025 19:10:16
Module end 'content'
Timing: Jan 18 2025 19:10:17
Script end

Main resources:

Total runtime0.8848 sec
Peak memory usage4,096.0000 KB
Database Queries199

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0071 587.9766180.8047
Module start 'content' 0.00710.6942 768.7813539.3281
Module end 'content' 0.70130.1834 1,308.1094338.0859
Script end 0.8847  1,646.1953 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00540.6080210.0003
Check MTime0.00150.1716210.0001
Mysql Total
Database connection0.00130.147010.0013
Mysqli_queries0.787589.00521990.0040
Looping result0.00210.24151970.0000
Template Total0.850196.120.4251
Template load0.00220.250120.0011
Template processing0.847995.828220.4239
Template load and register function0.00020.024510.0002
states
state_id_array0.00100.109210.0010
state_identifier_array0.00070.084520.0004
Override
Cache load0.00180.2064650.0000
Sytem overhead
Fetch class attribute can translate value0.00250.283940.0006
Fetch class attribute name0.00330.377240.0008
XML
Image XML parsing0.00060.069540.0002
class_abstraction
Instantiating content class attribute0.00000.001740.0000
General
dbfile0.00710.7996210.0003
String conversion0.00000.000730.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 27
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs