php and 'client denied problems' with macports apache2

Tim Johnson tim at
Tue Feb 11 15:44:21 PST 2014

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 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

apache2 was started as follows 
  sudo port load apache2

I see the following processes

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.

I see the following line in httpd.conf
LoadModule php5_module        modules/

**And** I've got problems:
php does not appear to be running as a component of the server.
If point my browser to http://localhost//phpinfo.php, I see
the code for the file printed out, rather than the output of the
executing file.

If I point my browser to one of my local drupal sites - I get the
client denied by server configuration:
client denied by server configuration:
## as examples.
I have more than just a php problem however. .htaccess rewrite rules
in general are being denied. 
The rewrite module appears to be enabled. I see the following
in httpd.conf
LoadModule rewrite_module modules/

It's a bl**dy mess, but I'm sure that someone who knows a bit more
than I can show the quick fix.

tim at tee jay forty nine dot com or akwebsoft dot com,

More information about the macports-users mailing list