#48942 [Opn->Asn]: open_basedir no working with [PATH=] in php.ini
| From: | pajoye@php.net | Date: | Fri, 17 Jul 2009 09:04:07 +0000 |
| Subject: | #48942 [Opn->Asn]: open_basedir no working with [PATH=] in php.ini | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-139856@lists.php.net to get a copy of this message | ||
ID: 48942
Updated by: pajoye@php.net
Reported By: marcos dot neves at gmail dot com
-Status: Open
+Status: Assigned
Bug Type: CGI related
Operating System: debian
PHP Version: 5.3.0
-Assigned To:
+Assigned To: pajoye
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[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 http://bugs.php.net/?id=48942&edit=1