php and 'client denied problems' with macports apache2

Bradley Giesbrecht pixilla at
Tue Feb 11 16:15:52 PST 2014

On Feb 11, 2014, at 3:44 PM, Tim Johnson <tim at> wrote:

> I'm on OSX 10.7
> This is a followup to subject 
> "Howto enable gd for PHP 5.3.28"
> I have installed the following :
> php55, php55-intl, php55-memcache, php55-gd, php55-mysql,
> php55-sqlite, php55-gd, php55-opcache, apache2 and
> php55-apache2handler.
> php55 was set as the php binary by
>    sudo port select php php55
> To enable php55-apache2handler, I ran:
>  cd /opt/local/apache2/modules
>    sudo /opt/local/apache2/bin/apxs -a -e -n php5

You probably need to add this line somewhere near the bottom of prefix/apache2/conf/httpd.conf:
Include conf/extra/mod_php55.conf

> apache2 was started as follows 
>  sudo port load apache2
> I see the following processes
>  /opt/local/apache2/conf/httpd.conf
>  /opt/local/apache2/conf/httpd.conf
> Modifications to httpd.conf included changes to
> User, Group, ServerAdmin, ScriptAlias, DocumentRoot consistent with
> the prior configuration for the "Apple" apache2.
> DocumentRoot and ScriptAlias settings seemed to be interpolated
> properly by the browser. cgi-bin appears to be working as normal.

You might want to make fewer change at a time and verify results as you go.

Bradley Giesbrecht (pixilla)

More information about the macports-users mailing list