Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0001281 [SysCP] Cron Apache major always 2009-12-15 13:51 2009-12-15 13:51
Reporter mreiche View Status public  
Assigned To
Priority normal Resolution open  
Status new   Product Version 1.4.2.1
Summary 0001281: Wrong open_basedir directive
Description If PHP is configured as FCGI (other not tested) and the Open Basedir restriction is set to off, the cron_tasks.php script writes out:

open_basedir = "none"

to the php.ini.

But this results in a permanent server error.

Browser
-------
No input file specified.


Command line
------------
root@ty11:/var/www/php-fcgi-scripts/xxx/syscp.ty11# ./php-fcgi-starter < /var/customers/webs/xxx/syscp/index.php
PHP Warning: require(): open_basedir restriction in effect. File(./lib/init.php) is not within the allowed path(s): (none) in /var/www/php-fcgi-scripts/xxx/syscp.ty11/- on line 24
PHP Warning: require(./lib/init.php): failed to open stream: Operation not permitted in /var/www/php-fcgi-scripts/xxx/syscp.ty11/- on line 24
PHP Fatal error: require(): Failed opening required './lib/init.php' (include_path='.:/usr/share/php/:/usr/share/php5/') in /var/www/php-fcgi-scripts/xxx/syscp.ty11/- on line 24
Content-type: text/html

[..] more error following


I wrote a patch that removes the open_basedir directive COMPLETLY from the php.ini-settings output string if the option has been set to "off".
Additional Information The server system was (unsupported):

Ubuntu 9.10 Karmic Koala with Apache2 and PHP 5.2.10 (all packages from distribution).
Tags No tags attached.
Attached Files ? file icon cron_tasks.inc.http.15.apache_fcgid.php_open_basedir_hotfix [^] (391 bytes) 2009-12-15 13:51

- Relationships

There are no notes attached to this issue.

No SVN - commits yet

- Issue History
Date Modified Username Field Change
2009-12-15 13:51 mreiche New Issue
2009-12-15 13:51 mreiche File Added: cron_tasks.inc.http.15.apache_fcgid.php_open_basedir_hotfix
2009-12-15 13:57 mreiche Issue Monitored: mreiche
Footer