php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #48942 open_basedir no working with [PATH=] in php.ini
Submitted: 2009-07-16 12:16 UTC Modified: 2013-02-18 00:33 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: marcos dot neves at gmail dot com Assigned: pajoye (profile)
Status: No Feedback Package: PHP options/info functions
PHP Version: 5.3.0 OS: debian
Private report: No CVE-ID: None
 [2009-07-16 12:16 UTC] 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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-07-16 13:35 UTC] jani@php.net
And exactly how is everything else configured? Like the path to the script you're accessing?
 [2009-07-16 18:51 UTC] 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-17 04:17 UTC] 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-17 09:04 UTC] 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.
 [2011-07-23 06:19 UTC] pajoye@php.net
-Status: Assigned +Status: Feedback
 [2011-07-23 06:19 UTC] pajoye@php.net
Please try using this snapshot:

  http://snaps.php.net/php5.3-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/


 [2013-02-18 00:33 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 06:01:30 2024 UTC