start problem

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
cyberman

start problem

Post by cyberman »

Hey, I'm new to working with CMS'. Just installed the 0.10. After successful installation when i clicked the link to view the site i got the following errors:

Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/srv/www/web2/html/modules/..) is not within the allowed path(s): (/srv/www/web2/html/) in /srv/www/web2/html/lib/classes/class.module.inc.php on line 1906

Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/srv/www/web2/html/modules/..) is not within the allowed path(s): (/srv/www/web2/html/) in /srv/www/web2/html/lib/classes/class.module.inc.php on line 1906

Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/srv/www/web2/html/modules/..) is not within the allowed path(s): (/srv/www/web2/html/) in /srv/www/web2/html/lib/classes/class.module.inc.php on line 1906

Warning: is_file() [function.is-file]: open_basedir restriction in effect. File(/srv/www/web2/html/plugins/..) is not within the allowed path(s): (/srv/www/web2/html/) in /srv/www/web2/html/lib/content.functions.php on line 398

In the bottom I can see the content, but the menu shows also many errors. The content.functions.php and the class.module.inc.php exists in the path. Also a file update changed nothing :-( ...

I'm using php 4 and apache. Any Ideas?

Thanks
martin42
Forum Members
Forum Members
Posts: 126
Joined: Sat Aug 20, 2005 11:35 pm

Re: start problem

Post by martin42 »

Your PHP.INI file has an "open_basedir" directive, set to prevent PHP scripts from accessing files outside the specified directory.

Best to tweak PHP.INI (maybe you can use a specific PHP.INI for your new CMS app).
cyberman

Re: start problem

Post by cyberman »

Thx ...

The site runs on a vserver and i'm learning to adminstrate him :-). Its my own server and there are no other users.

In the confixx_vhost.conf are some thing I don't understand. Please make a look at the important (and anonymized ;-) ) parts:

Code: Select all

NameVirtualHost xx.xx.xx.xxx:80
UseCanonicalName Off
php_admin_flag safe_mode On
php_admin_value safe_mode_exec_dir /srv/www/empty/
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  /var/log/apache2/confixx/stdlog_access confixx2

<Directory "/srv/www">
  <Files ~ "^\.ht">
    deny from all
  </Files>
  AllowOverride None
  AllowOverride Indexes  AuthConfig Limit  FileInfo
  Options None
  Options +FollowSymLinks +Includes
</Directory>

...

<Directory "/srv/www/web2/html">
  Options -FollowSymLinks -SymLinksIfOwnerMatch
  <IfModule mod_access.c>
    Allow from all
  </IfModule>
</Directory>


<VirtualHost 62.67.247.207:80>
  DocumentRoot /srv/www/confixx/html/gesperrt
</VirtualHost>

...

<VirtualHost 62.67.247.207:80>
  ServerName xxx.de
  ServerAlias www.xxx.de web2.vz0000.xxx-server.de 

  DocumentRoot /srv/www/web2/html
  SuexecUserGroup web2 web2
  ScriptAlias /cgi-bin/ /srv/www/web2/html/cgi-bin/
  CustomLog /srv/www/web2/log/access_log confixx2
  php_admin_value open_basedir /srv/www/web2/html/:/srv/www/web2/phptmp/:/srv/www/web2/files/:/srv/www/web2/atd/
  php_admin_value file_uploads 1
  php_admin_value upload_tmp_dir /srv/www/web2/phptmp/
</VirtualHost>
I've read somewhere, that I must only delete the last slashes to get no errors:

Code: Select all

php_admin_value open_basedir /srv/www/web2/html/:/srv/www/web2/phptmp/:/srv/www/web2/files/:/srv/www/web2/atd/
Other one said, I should change this

Code: Select all

Options -FollowSymLinks -SymLinksIfOwnerMatch
to this

Code: Select all

Options -Indexes +FollowSymLinks +Includes 
How should this .conf looks like to run CMS in optimum? Can you make a suggestion?
Locked

Return to “[locked] Installation, Setup and Upgrade”