Opened 11 years ago

Closed 9 years ago

#25890 closed defect (fixed)

php5, php5-devel fails when using -apache2

Reported by: ioweurwioe@… Owned by: ryandesign (Ryan Schmidt)
Priority: Normal Milestone:
Component: ports Version: 1.9.1
Keywords: Cc: jyrkiwahlstedt
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 (3)

comment:1 Changed 11 years ago by blb@…

Cc: jwa@… added
Owner: changed from macports-tickets@… to ryandesign@…

comment:2 Changed 11 years ago by ryandesign (Ryan Schmidt)

Port: php5-devel added
Status: newassigned
Summary: php5 5.3.2_1 CGI install without Apache failsphp5, 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.

comment:3 Changed 9 years ago by ryandesign (Ryan Schmidt)

Resolution: fixed
Status: assignedclosed

This is solved in the new php port which has subports instead of variants for each SAPI.

Note: See TracTickets for help on using tickets.