[MacPorts] #21871: php52 - depends on non-standard apache2 config
#21871: php52 - depends on non-standard apache2 config -------------------------------+-------------------------------------------- Reporter: apinstein@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: | Port: -------------------------------+-------------------------------------------- I have installed apache2 + php52 / php53 a few times from scratch lately, and there is a slight problem that's very tricky to track down. The default httpd.conf from the apache install no longer includes: Include conf/extras-conf/* Thus the conf file that the php5* ports install in that directory are never loaded, and php is not available by default on machines "ootb". I am not sure the most appropriate way to fix this, whether this is an apache bug or a php bug, but it seemed more appropriate to report to you first since you are relying on an assumption about apache configs. I look forward to your response. Regards, Alan -- Ticket URL: <http://trac.macports.org/ticket/21871> MacPorts <http://www.macports.org/> Ports system for Mac OS
#21871: php52 - depends on non-standard apache2 config -------------------------------+-------------------------------------------- Reporter: apinstein@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: | Port: php52 -------------------------------+-------------------------------------------- Changes (by jmr@…): * cc: jwa@… (added) * owner: macports-tickets@… => ryandesign@… * port: => php52 -- Ticket URL: <http://trac.macports.org/ticket/21871#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#21871: php52 - depends on non-standard apache2 config -------------------------------+-------------------------------------------- Reporter: apinstein@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: | Port: php52 -------------------------------+-------------------------------------------- Description changed by macsforever2000@…: Old description:
I have installed apache2 + php52 / php53 a few times from scratch lately, and there is a slight problem that's very tricky to track down.
The default httpd.conf from the apache install no longer includes:
Include conf/extras-conf/*
Thus the conf file that the php5* ports install in that directory are never loaded, and php is not available by default on machines "ootb".
I am not sure the most appropriate way to fix this, whether this is an apache bug or a php bug, but it seemed more appropriate to report to you first since you are relying on an assumption about apache configs.
I look forward to your response.
Regards, Alan
New description: I have installed apache2 + php52 / php53 a few times from scratch lately, and there is a slight problem that's very tricky to track down. The default httpd.conf from the apache install no longer includes: {{{ Include conf/extras-conf/* }}} Thus the conf file that the php5* ports install in that directory are never loaded, and php is not available by default on machines "ootb". I am not sure the most appropriate way to fix this, whether this is an apache bug or a php bug, but it seemed more appropriate to report to you first since you are relying on an assumption about apache configs. I look forward to your response. Regards, Alan -- -- Ticket URL: <http://trac.macports.org/ticket/21871#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#21871: php52 - depends on non-standard apache2 config -------------------------------+-------------------------------------------- Reporter: apinstein@… | Owner: ryandesign@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: | Port: php52 -------------------------------+-------------------------------------------- Changes (by ryandesign@…): * status: new => assigned Comment: You are meant to add the following line to your httpd.conf to make php5 +apache2 work: {{{ Include conf/extra/mod_php.conf }}} See the [wiki:howto/MAMP MAMP how-to]. Note that php5's conf file is in "extra" now and no longer in "extras- conf". php52 will be changed as well. See #21217. -- Ticket URL: <http://trac.macports.org/ticket/21871#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#21871: php52 - depends on non-standard apache2 config -------------------------------+-------------------------------------------- Reporter: apinstein@… | Owner: ryandesign@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: | Port: php52 -------------------------------+-------------------------------------------- Comment(by ryandesign@…): Alan sent the following reply by email:
From: Alan Pinstein <apinstein@mac.com> [[BR]] Date: October 5, 2009 23:22:50 CDT [[BR]] To: macports-dev@lists.macosforge.org [[BR]] Cc: ryandesign@macports.org, macports-tickets@lists.macosforge.org, jwa@macports.org [[BR]] Subject: Re: [MacPorts] #21871: php52 - depends on non-standard apache2 config [[BR]] [[BR]] Thanks for the quick update. [[BR]] [[BR]] I read the other ticket, that's good info. [[BR]] [[BR]] However, that Wiki/MAMP article is not referenced anywhere so I had no idea it existed. [[BR]] [[BR]] Plus, I use Postgres so I tend not to search for MAMP stuff (that's on me of course). [[BR]] [[BR]] But I've gotten to the point where to bootstrap a new machine I need only do: [[BR]] [[BR]] port install apache2 postgresql83 postgresql83-server php52 +apache2+postgresql83+pear+readline php5-syck php5-xdebug [[BR]] [[BR]] And then add to the bottom of httpd.conf: [[BR]] [[BR]] Include conf/extras-conf/* [[BR]] NameVirtualHost 10.0.1.201:8080 [[BR]] Include /Users/alanpinstein/dev/sandbox/project1/conf/httpd.conf [[BR]] Include /Users/alanpinstein/dev/sandbox/project2/conf/httpd.conf [[BR]] [[BR]] The only thing that isn't "mine" is the php-conf setup. [[BR]] [[BR]] It's unexpected that the port sets up the loadmodule and installs the php-conf but doesn't "include" the conf file. [[BR]] [[BR]] Is there no apache-recommended way to automate module installs the same way that the LoadModule stuff is automated? [[BR]] [[BR]] If it can't be totally automated at least the ui_msg output should indicate to add: [[BR]] [[BR]] Include conf/extra/mod_php.conf [[BR]] [[BR]] to the conf file. [[BR]] [[BR]] Regards, [[BR]] Alan
-- Ticket URL: <http://trac.macports.org/ticket/21871#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts