Ticket #25890 (closed defect: fixed)
php5, php5-devel fails when using -apache2
| Reported by: | ioweurwioe@… | Owned by: | ryandesign@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 1.9.1 |
| Keywords: | Cc: | jwa@… | |
| Port: | php5, php5-devel |
Description
I wanted to install PHP5 CGI, without Apache. It compiled successfully, but then tripped on lack of Apache:
sudo port install php5 -apache2 +cgi … If this is your first install, you need to activate PHP in your web server. To enable PHP in Apache, run Error: Target org.macports.activate returned: can't read "moduledir": no such variable Log for php5 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_php5/main.log Error: Status 1 encountered during processing.
Change History
comment:1 Changed 3 years ago by blb@…
- Cc jwa@… added
- Owner changed from macports-tickets@… to ryandesign@…
comment:2 Changed 3 years ago by ryandesign@…
- Status changed from new to assigned
- Port changed from php5 to php5, php5-devel
- Summary changed from php5 5.3.2_1 CGI install without Apache fails to php5, php5-devel fails when using -apache2
The php5 port has no variant called "+cgi". See "port variants php5". You want:
sudo port install php5 +fastcgi
So our error is that we don't prevent you from installing when you've explicitly unselected the apache2 variant and haven't selected the +fastcgi or +no_web variants. Perhaps the +no_web variant should just go away, now that we are using registry 2.0 which can remember deselected variants.
Note: See
TracTickets for help on using
tickets.

