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

James78 roejames12 at hotmail.com
Wed Jan 12 04:53:33 UTC 2011


** 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). 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)
+ php5 5.3.2-1ubuntu4.6). 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) and
+ libapache2-mod-php5 (5.3.2-1ubuntu4.5). This did not seem to affect php
+ on fcgi for me, however this is unconfirmed as I haven't been able to
+ fully test it out.
  
  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/
  
  Additionally, using a configuration such as this also seems to work as a workaround:
  open_basedir = /home:/tmp:/usr/lib/php5:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin
  
  Note: Please read the "open_basedir string" section at
  http://php.net/manual/en/ini.core.php . Using slashes at the end of the
  open_basedir paths is perfectly valid. Using no slashes causes a regex
  wildcard type matching, where /etc/phpmyadmin would also match
  /etc/phpmyadminanythingelsehere, but /etc/phpmyadmin/ matches ONLY that
  directory.

** 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 5.3.2-1ubuntu4.6). 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) and
  libapache2-mod-php5 (5.3.2-1ubuntu4.5). This did not seem to affect php
  on fcgi for me, however this is unconfirmed as I haven't been able to
  fully test it out.
  
  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/
  
- Additionally, using a configuration such as this also seems to work as a workaround:
+ Alternatively, using a configuration such as this also works as a workaround (removed forward slashes at the end of the paths):
  open_basedir = /home:/tmp:/usr/lib/php5:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin
  
  Note: Please read the "open_basedir string" section at
  http://php.net/manual/en/ini.core.php . Using slashes at the end of the
  open_basedir paths is perfectly valid. Using no slashes causes a regex
  wildcard type matching, where /etc/phpmyadmin would also match
  /etc/phpmyadminanythingelsehere, but /etc/phpmyadmin/ matches ONLY that
  directory.

** 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 5.3.2-1ubuntu4.6). 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) and
  libapache2-mod-php5 (5.3.2-1ubuntu4.5). This did not seem to affect php
  on fcgi for me, however this is unconfirmed as I haven't been able to
  fully test it out.
  
  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/
  
  Alternatively, using a configuration such as this also works as a workaround (removed forward slashes at the end of the paths):
  open_basedir = /home:/tmp:/usr/lib/php5:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin
  
  Note: Please read the "open_basedir string" section at
  http://php.net/manual/en/ini.core.php . Using slashes at the end of the
  open_basedir paths is perfectly valid. Using no slashes causes a regex
  wildcard type matching, where /etc/phpmyadmin would also match
- /etc/phpmyadminanythingelsehere, but /etc/phpmyadmin/ matches ONLY that
- directory.
+ /etc/phpmyadminasdf, but /etc/phpmyadmin/ matches ONLY that directory.

** 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 5.3.2-1ubuntu4.6). 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) and
  libapache2-mod-php5 (5.3.2-1ubuntu4.5). This did not seem to affect php
  on fcgi for me, however this is unconfirmed as I haven't been able to
  fully test it out.
  
  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/
  
- Alternatively, using a configuration such as this also works as a workaround (removed forward slashes at the end of the paths):
+ Alternatively, removing the forward slashes at the end of the paths also works as a workaround:
  open_basedir = /home:/tmp:/usr/lib/php5:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin
  
  Note: Please read the "open_basedir string" section at
  http://php.net/manual/en/ini.core.php . Using slashes at the end of the
  open_basedir paths is perfectly valid. Using no slashes causes a regex
  wildcard type matching, where /etc/phpmyadmin would also match
  /etc/phpmyadminasdf, but /etc/phpmyadmin/ matches ONLY that directory.

-- 
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