Bug #48942 [Asn->Fbk]: open_basedir no working with [PATH=] in php.ini
Edit report at https://bugs.php.net/bug.php?id=48942&edit=1
ID: 48942
Updated by: pajoye@php.net
Reported by: marcos dot neves at gmail dot com
Summary: open_basedir no working with [PATH=] in php.ini
-Status: Assigned
+Status: Feedback
Type: Bug
Package: PHP options/info functions
Operating System: debian
PHP Version: 5.3.0
Assigned To: pajoye
Block user comment: N
Private report: N
New Comment:
Please try using this snapshot:
http://snaps.php.net/php5.3-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
Previous Comments:
------------------------------------------------------------------------
[2009-07-17 09:04:07] pajoye@php.net
It should work in the main php.ini and in some extend in the .user.ini (using the new restricted
open_basedir). I will take a look at it while fixing some other .user.ini issues.
------------------------------------------------------------------------
[2009-07-17 04:17:20] marcos dot neves at gmail dot com
playing more, I found that the same bug happens if I configure open_basedir on .user.ini file.
It look likes that open_basedir can't be configured in a context way, only in a global way. If
thats true, I would be very sad, cause that could be a great feature for hosting companies.
------------------------------------------------------------------------
[2009-07-16 18:51:23] marcos dot neves at gmail dot com
the bug happens using both spawn-fcgi or php-fpm.
The php is different for each other.
For example, with spawn-fcgi, I am using dotdeb.org php5.3 version,
installed using apt-get.
With php-fpm, I am using php5.3 Build from source.
For webserver, I am using nginx.
I both ways, if I change to configuration to this one, every things
back to normal:
[PATH=/var/www/my.domain.com]
open_basedir=/var/www
------------------------------------------------------------------------
[2009-07-16 13:35:47] jani@php.net
And exactly how is everything else configured? Like the path to the script you're accessing?
------------------------------------------------------------------------
[2009-07-16 12:16:19] marcos dot neves at gmail dot com
Description:
------------
I got "No input file specified." from fcgi when used open_basedir
inside [PATH=] php.ini
Reproduce code:
---------------
create an entry on php.ini with open_basedir pointing to your domain root, example:
open_basedir=/var/www/my.domain.com
restart fcgi and check if it all works fine. (it should)
Now add this like above open_basedir:
[PATH=/var/www/my.domain.com]
open_basedir=/var/www/my.domain.com
restart fcgi and now you will get "No input file specified."
Expected result:
----------------
should work as before.
Actual result:
--------------
got "No input file specified." fcgi response.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=48942&edit=1
Thread (7 messages)