Ticket #2750 (reopened defect)
BUG: php4 and php5 produce "garbled" mod_php for Apache
| Reported by: | lukhnos@… | Owned by: | bchesneau@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | Port Bugs |
| Component: | ports | Version: | |
| Keywords: | Cc: | markd@…, ryandesign@…, unknown@… | |
| Port: | php4 php5 |
Description (last modified by ryandesign@…) (diff)
Tried both the ports for php4 and php5, and both yielded mod_php files that Apache refused to load. Consulted http://www.php.net/manual/en/install.macosx.php and found there is a CFLAG env variable that seems to be missing in the existing portfile (ie. -DEAPI that produces Apache DSO)
Also, both the portfiles for php4 and php5, when variant +apache is set, seem to refer to /usr/sbin/ httpd instead of /opt/local/bin/httpd in one of its configuration settings (which are then used in the linking stage).
After adding the required CFLAG and modified the portfiles a bit, now both php4 and php5 ports work fine now.
Diff for the Portfile of www/php4:
82c82,85
< configure.args-append --with-apxs=/usr/sbin/apxs
---
> # configure.args-append --with-apxs=/usr/sbin/apxs
> configure.env CFLAGS="-DBIND_8_COMPAT=1 -DEAPI -O3"
> depends_lib-append path:${prefix}/sbin/apxs:apache
> configure.args-append --with-apxs=${prefix}/sbin/apxs
Whereas the diff for the Portfile of php5:
< configure.args-append --with-apxs=/usr/sbin/apxs
---
> # configure.args-append --with-apxs=/usr/sbin/apxs
> configure.env CFLAGS="-DBIND_8_COMPAT=1 -DEAPI -O3"
> depends_lib-append path:${prefix}/sbin/apxs:apache
> configure.args-append --with-apxs=${prefix}/sbin/apxs
Change History
Note: See
TracTickets for help on using
tickets.

