Vincent,

Ryan is the maintainer of both apache and php.

He has expressed that he is no longer interested in putting in the effort to 
make apache 2.4 the default (some work is needed, as apache2.4-devel has a 
different directory structure than apache2 (2.2)).

Two questions:

1) why do you want to use php 5.6, rather than php 7.0?

2) why do you want to use apache2handler rather than php-fpm?

That having been said, until recently, I was using apache2.4-devel with php56 
and apache2handler. I patched apr-util to use db48, rather than db46. I think 
adding Berkeley db variants to apr-util would be a good idea.

Several years ago, I suggested a apache24handler to Ryan, and he waived of the 
thought. So I patched a local copy of the php Portfile:

https://github.com/Schamschula/macports/blob/master/lang/php/patch-apache24-devel.diff

to build against apache24-devel, rather than apache2. I have since switched my 
Macs to nginx with php70-fpm. However, I still use apache 2.4 and php 5.6 with 
apache2handler under FreeBSD...

On Nov 19, 2016, at 4:34 AM, Vincent Habchi <[email protected]> wrote:

> Folks,
> 
> I’ve a problem on a website I look after and I’m trying to replicate the 
> configuration locally on my Mac to ease debugging.
> 
> So I’ve installed apache24 and stumbled on the following roadblocks or 
> hitches:
> 
> 1. Why is apache24 still called “apache24-devel”?
> 
> 2. APR-UTIL should:
>       a. Be dependant on whatever db version is installed and not db46. I 
> wrote this:
>       —
>       # DB dependency 
>       set db_list [lsort [glob ${prefix}/lib/db??]]
>       set db_most_recent [lindex [split [lindex $db_list 0] /] end]
>       if {$db_most_recent == ""} { set db_most_recent "db60" }
> 
>       depends_lib port:apr port:expat port:libiconv port:$db_most_recent 
> port:sqlite3
>       —
> 
>       b. Have a mariadb10 variant
> 
> 3. PHP56-APACHE2HANDLER likewise cannot be used as is with Apache24. There 
> should be a +apache24 variant or some form of auto-detect. The correct 
> configuration for Apache24 is thus:
> 
>       depends_lib-append port:apache24-devel 
>       require_active_variants apache24 preforkmpm 
>       set apxs ${prefix}/bin/apxs 
>       set confdir ${prefix}/etc/apache2/conf 
>       set moduledir ${prefix}/lib/apache2/modules 
> 
> 
> Here we are. Thanks for listening to my rambling!
> 
> Cheers all.
> 

Marius
--
Marius Schamschula




Reply via email to