php open_basedir bug

Scott Haneda talklists at newgeo.com
Thu Oct 1 14:09:07 PDT 2009


Something not right with upgrade:
$sudo port upgrade php5

$sudo /opt/local/apache2/bin/apachectl graceful
httpd: Syntax error on line 497 of /opt/local/apache2/conf/httpd.conf:  
Could not open configuration file /opt/local/apache2/conf/extras-conf/ 
mod_php.conf: No such file or directory

$grep extras-conf /opt/local/apache2/conf/httpd.conf
Include conf/extras-conf/mod_php.conf

* Was my httpd.conf replaced in the upgrade?
-rw-r--r--   1 root  admin  17239 Sep 30 15:09 httpd.conf
-rw-r--r--   1 root  admin  16757 Sep 16 22:51 httpd.conf.bak

The 16th is too old for that to be a .bk made today.  Actually,  
httpd.conf is fine, I see some customizations I made in there.

"extras-conf" is gone, which is where that mod_php.conf used to live.

It is now in:
/opt/local/apache2/conf/extra

-rw-r--r--  1 root  admin   2845 Sep 16 22:11 httpd-autoindex.conf
-rw-r--r--  1 root  admin   1718 Sep 16 22:11 httpd-dav.conf
-rw-r--r--  1 root  admin   2344 Sep 16 22:11 httpd-default.conf
-rw-r--r--  1 root  admin   1103 Sep 16 22:11 httpd-info.conf
-rw-r--r--  1 root  admin   5078 Sep 16 22:11 httpd-languages.conf
-rw-r--r--  1 root  admin    918 Sep 16 22:11 httpd-manual.conf
-rw-r--r--  1 root  admin   3789 Sep 16 22:11 httpd-mpm.conf
-rw-r--r--  1 root  admin   2186 Sep 16 22:11 httpd-multilang- 
errordoc.conf
-rw-r--r--  1 root  admin  10283 Sep 16 22:11 httpd-ssl.conf
-rw-r--r--  1 root  admin    806 Sep 16 22:11 httpd-userdir.conf
-rw-r--r--  1 root  admin    398 Sep 18 17:40 httpd-vhosts.conf
-rwxr-xr-x  2 root  admin    129 Oct  1 13:52 mod_php.conf

Why is the +x bit set on it?

I think I know how to fix this, but I also think that this update  
process went awry.  Suggestions on what happened?
-- 
Scott * If you contact me off list replace talklists@ with scott@ *

On Oct 1, 2009, at 6:10 AM, Ryan Schmidt wrote:

> php5 @5.3.0_3 contains this fix. I decided to just apply the  
> upstream patch without testing it, since upstream has already put it  
> in 5.3.1RC1 and the suhosin guys have already put it in their  
> 5.3.0-0.9.8 patch too.



More information about the macports-dev mailing list