open_basedir restriction in effect

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
christian
Posts: 62
Joined: Sun Oct 18, 2009 7:03 pm

open_basedir restriction in effect

Post by christian »

Hallo...

ich kriege folgende Fehlermeldung bei einloggen in die Admin-Oberfläche:

Code: Select all

phpMyFAQ warning [2]: realpath() [function.realpath]: open_basedir restriction in effect. File(/var/lib/php5) is not within the allowed path(s): (/var/www/vhosts/domain.de/httpdocs:/tmp) in CurrentUser.php on line 298
Habe im Forum gelesen das es an den PHP-Einstellungen liegen soll, sieht bei mir im Dashboard aber richtig aus:

Code: Select all

phpMyFAQ Version phpMyFAQ 2.5.3 
Server Software Apache/2.2.8 (Ubuntu) mod_python/3.3.1 Python/2.5.2 PHP/5.2.4-2ubuntu5.7 with Suhosin-Patch mod_ssl/2.2.8 OpenSSL/0.9.8g mod_perl/2.0.3 Perl/v5.8.8 
PHP Version PHP 5.2.4-2ubuntu5.7 
Register Globals off 
Safe Mode off 
Open Basedir off 
Database Server Mysql 
Database Client Version 5.0.51a 
Database Server Version 5.0.51a-3ubuntu5.4 
Webserver Interface APACHE2HANDLER 
PHP Extensions zip, xmlwriter, libxml, xml, wddx, tokenizer, sysvshm, sysvsem, sysvmsg, session, SimpleXML, sockets, soap, SPL, shmop, standard, Reflection, posix, mime_magic, mbstring, json, iconv, hash, gettext, ftp, filter, exif, dom, dba, date, ctype, calendar, bz2, bcmath, zlib, pcre, openssl, xmlreader, apache2handler, imagick, imap, curl, gd, mysql, mysqli, PDO, pdo_mysql, xsl, ionCube Loader 
christian
Posts: 62
Joined: Sun Oct 18, 2009 7:03 pm

Re: open_basedir restriction in effect

Post by christian »

keiner ne idee????
Thorsten
Posts: 15808
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: open_basedir restriction in effect

Post by Thorsten »

Hi,

open_basedir ausschalten... oder den Pfad anpassen...

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
superdau
Posts: 26
Joined: Wed Nov 04, 2009 12:29 am

Re: open_basedir restriction in effect

Post by superdau »

moin moin

@christian

bist nicht alleine mit dem problem 8)

viewtopic.php?f=7&t=9835&p=28445#p28445

gruß vom niederrhein
openSUSE 10.2 | apache 2.2.11 | php 5.2.8 | mysql 5.0.67
Thorsten
Posts: 15808
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: open_basedir restriction in effect

Post by Thorsten »

Hi,

ich hab mir das als Release-Blocker für die 2.5.4 notiert, also kommt dafür ein Fix in der 2.5.4.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Thorsten
Posts: 15808
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: open_basedir restriction in effect

Post by Thorsten »

Hi,

künntest du mal die Zeile 298 in der inc/PMF_User/CurrentUser.php von

Code: Select all

            $sessionSavePath = session_save_path();
            $sessionPath     = realpath($sessionSavePath);
nach

Code: Select all

        	$sessionPath = session_save_path();
            if (strpos ($sessionPath, ';') !== false) {
                $sessionPath = substr ($sessionPath, strpos ($sessionPath, ';') + 1);
            }
ändern?

Danke!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
superdau
Posts: 26
Joined: Wed Nov 04, 2009 12:29 am

Re: open_basedir restriction in effect

Post by superdau »

hi thorsten

das hat funktioniert, die meldung taucht nicht mehr auf.

thx a lot :D

vielleicht hast du ja für den wysiwyg auch noch so eine schicke lösung an board :wink:
openSUSE 10.2 | apache 2.2.11 | php 5.2.8 | mysql 5.0.67
christian
Posts: 62
Joined: Sun Oct 18, 2009 7:03 pm

Re: open_basedir restriction in effect

Post by christian »

jup! jetzt klappts! :-)
Thorsten
Posts: 15808
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: open_basedir restriction in effect

Post by Thorsten »

Hi,

okay, dann checke ich es für die 2.5.4 und 2.6.0-alpha ein. :-)

DANKE!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply