[Bug 701765] [NEW] Unknown: Failed opening required '/usr/share/phpmyadmin/index.php' (include_path='.') in Unknown on line 0

James Roe roejames12 at hotmail.com
Wed Jan 12 02:48:30 UTC 2011


Public bug reported:

Binary package hint: php5

In package php5 (5.3.2-1ubuntu4.6) for Ubuntu Server 10.04.1 LTS, I have
a bug regarding open_basedir setting in php.ini (using libapache2-mod-
php5). phpmyadmin is within the allowed open_basedir resrictions, yet
there is an error anyways saying it's not. It worked great using the
configuration below with php5 (5.3.2-1ubuntu4.5)

My configuration::
open_basedir = /home/:/tmp/:/usr/lib/php5/:/usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/

What is expected to happen::
No error, it should work seamlessly.

What happens::
I receive an error message (below)::
PHP Warning:  Unknown: open_basedir restriction in effect. File(/usr/share/phpmyadmin/index.php) is not within the allowed path(s): (/home/:/tmp/:/usr/lib/php5/:/usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/) in Unknown on line 0
PHP Warning:  Unknown: failed to open stream: Operation not permitted in Unknown on line 0
PHP Fatal error:  Unknown: Failed opening required '/usr/share/phpmyadmin/index.php' (include_path='.') in Unknown on line 0

Current workaround::
Add . to the open_basedir restrictions.
open_basedir = /home/:/tmp/:.:/usr/lib/php5/:/usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/

** Affects: php5 (Ubuntu)
     Importance: Undecided
         Status: New

** Description changed:

  Binary package hint: php5
  
  In package php5 (5.3.2-1ubuntu4.6) for Ubuntu Server 10.04.1 LTS, I have
  a bug regarding open_basedir setting in php.ini (using libapache2-mod-
- php5).
+ php5). phpmyadmin is within the allowed open_basedir resrictions, yet
+ there is an error anyways saying it's not. It worked great using the
+ configuration below with php5 (5.3.2-1ubuntu4.5)
  
  My configuration::
  open_basedir = /home/:/tmp/:/usr/lib/php5/:/usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/
  
  What is expected to happen::
- No error, it should work seamlessly. It worked great using the configuration above with php5 (5.3.2-1ubuntu4.5)
+ No error, it should work seamlessly.
  
  What happens::
  I receive an error message (below)::
  PHP Warning:  Unknown: open_basedir restriction in effect. File(/usr/share/phpmyadmin/index.php) is not within the allowed path(s): (/home/:/tmp/:/usr/lib/php5/:/usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/) in Unknown on line 0
  PHP Warning:  Unknown: failed to open stream: Operation not permitted in Unknown on line 0
  PHP Fatal error:  Unknown: Failed opening required '/usr/share/phpmyadmin/index.php' (include_path='.') in Unknown on line 0
  
  Current workaround::
  Add . to the open_basedir restrictions.
  open_basedir = /home/:/tmp/:.:/usr/lib/php5/:/usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in ubuntu.
https://bugs.launchpad.net/bugs/701765

Title:
  Unknown: Failed opening required '/usr/share/phpmyadmin/index.php'
  (include_path='.') in Unknown on line 0



More information about the Ubuntu-server-bugs mailing list