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).
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)
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/
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) .
My configuration:: /tmp/:/ usr/lib/ php5/:/ usr/share/ phpmyadmin/ :/etc/phpmyadmi n/:/var/ lib/phpmyadmin/
open_basedir = /home/:
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)
What happens:: share/phpmyadmi n/index. php) is not within the allowed path(s): (/home/ :/tmp/: /usr/lib/ php5/:/ usr/share/ phpmyadmin/ :/etc/phpmyadmi n/:/var/ lib/phpmyadmin/ ) in Unknown on line 0 phpmyadmin/ index.php' (include_path='.') in Unknown on line 0
I receive an error message (below)::
PHP Warning: Unknown: open_basedir restriction in effect. File(/usr/
PHP Warning: Unknown: failed to open stream: Operation not permitted in Unknown on line 0
PHP Fatal error: Unknown: Failed opening required '/usr/share/
Current workaround:: /tmp/:. :/usr/lib/ php5/:/ usr/share/ phpmyadmin/ :/etc/phpmyadmi n/:/var/ lib/phpmyadmin/
Add . to the open_basedir restrictions.
open_basedir = /home/: