mrh666 Posted January 3, 2014 Report Share Posted January 3, 2014 Hi there, After update to 3.0.2 when I log in or log out I've got a warning in the debug.log (6 similar warnings when log in and 2 same warnings when I logged out): Jan 03 01:56:56 +0200 OX-52c5fcc825650 [ warning] is_readable(): open_basedir restriction in effect. File(/usr/local/php54/lib/pear/MDB2/Driver/Extended/mysql.php) is not within the allowed path(s): (/tmp:/usr/local/lib/php:/home/username/revive-adserver/) If I understand correctly, Adserver should look for this mysql.php driver inside of /home/username/revive-adserver/ installation. When I make an upgrade I edit www.hostname.conf.php manually and I suppose I forgot to mention some path or write it wrong. Where should I look to fix it? Thank you! Quote Link to comment Share on other sites More sharing options...
Guest Posted January 3, 2014 Report Share Posted January 3, 2014 Hi mrh666, You can review [database] @ your conf file Quote Link to comment Share on other sites More sharing options...
mrh666 Posted January 3, 2014 Author Report Share Posted January 3, 2014 Hi Chinnu G, Finally I fixed it. Thank you! I rewrite old conf file with new edited default.conf.php and all warnings are disappered. Quote Link to comment Share on other sites More sharing options...
Guest Posted January 3, 2014 Report Share Posted January 3, 2014 Thats good Quote Link to comment Share on other sites More sharing options...
mrh666 Posted January 3, 2014 Author Report Share Posted January 3, 2014 Sorry, I totally disiform you! I uploaded new conf file with debug option is off. But when I turned it on, those warnings (is_readable(): open_basedir restriction in effect. File(/usr/local/php54/lib/pear/MDB2/Driver/Extended/mysql.php) is not within the allowed path) still there. "/usr/local/php54/" is a real path of my PHP installation. But "lib/pear/MDB2/Driver/Extended/mysql.php" it's something from within Adserver. There is folder: revive-adserver/lib/pear/MDB2/Driver/ which contains: drwxr-xr-x Datatype drwxr-xr-x Function drwxr-xr-x Manager drwxr-xr-x Native drwxr-xr-x Reverse -rw-r--r-- mysql.php -rw-r--r-- mysqli.php -rw-r--r-- pgsql.php But there is no folder called Extended/... This is my current DB section in config file: [database] type = mysql host = "hostname.info" <-- correct hostname socket = "path_to_socket" <-- correct path to socket port = 3306 username = username <-- correct username password = pass <-- correct password name = revive_adserver_302 persistent = true mysql4_compatibility = true protocol = unix compress = false ssl = false capath = ca = Where did I made a mistake? Quote Link to comment Share on other sites More sharing options...
mrh666 Posted January 4, 2014 Author Report Share Posted January 4, 2014 erikgeurts, thank you for your answer on Github. It was an issue with the configuration of the server. (Using wrong PHP path in php_admin_value open_basedir for this host in httpd.conf). After using correct path warnings are disappeared. Quote Link to comment Share on other sites More sharing options...
Hank Moody Posted February 4, 2015 Report Share Posted February 4, 2015 We got the same problem... Quote Link to comment Share on other sites More sharing options...
natiq Posted September 24, 2016 Report Share Posted September 24, 2016 We got the same problem in cpanel server. Solution: mkdir /usr/lib/php chmod 700 /usr/lib/php Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.