Jump to content

Extended/mysql.php Is Not Within The Allowed Path(S)


mrh666

Recommended Posts

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!

 

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

  • 1 year later...
  • 1 year later...

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...