|  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
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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: marcos dot neves at gmail dot com
New email:
PHP Version: OS:


 [2009-07-16 12:16 UTC] marcos dot neves at gmail dot com
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:


restart fcgi and check if it all works fine. (it should)

Now add this like above open_basedir:


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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2009-07-16 13:35 UTC]
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 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:

 [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]
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]
-Status: Assigned +Status: Feedback
 [2011-07-23 06:19 UTC]
Please try using this snapshot:
For Windows:

 [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-2023 The PHP Group
All rights reserved.
Last updated: Fri Dec 01 23:01:26 2023 UTC