php-cli extension - How to ?

Installing and maintaining the FreeBSD Ports Collection or FreeBSD Packages (i.e. third party software).

php-cli extension - How to ?

Postby Ronaldr » 23 Jul 2009, 20:50

Hello All,

Im trying to install the php5-cli extension, when I installed my other php5 extensions initially I went to /usr/ports/lang/php5-extensions and did a make install clean. It prompted me for which extensions that I wanted.

However now running the command simply reinstalls the extensions that I've already added.

What do you think I should do ?

-Thanks
Ronaldr
Junior Member
 
Posts: 37
Joined: 09 Jun 2009, 19:19

Postby ale » 23 Jul 2009, 20:53

Run make config in the port directory
User avatar
ale
Senior Member
 
Posts: 1064
Joined: 19 Nov 2008, 01:28
Location: Roma

Postby DutchDaemon » 23 Jul 2009, 20:55

Code: Select all
cd /usr/ports/lang/php5-extensions
make config
make install clean

If the last command causes trouble (because extensions are already installed), replace with
Code: Select all
make deinstall clean && make reinstall clean
User avatar
DutchDaemon
Old Fart
 
Posts: 10463
Joined: 16 Nov 2008, 20:17
Location: The Netherlands

Postby Ronaldr » 23 Jul 2009, 21:02

Thanks alot now Im on the right track,

That brought up the php extentions list however, I do not see the module CLI ?

I see other modules that say they require cli ?

Im confused
Ronaldr
Junior Member
 
Posts: 37
Joined: 09 Jun 2009, 19:19

Postby DutchDaemon » 23 Jul 2009, 21:13

I'm guessing (not a PHP expert) that modules that require 'CLI only' can only be run from the command line, not through a webserver. Just type 'man php' on the command line, and see what gets printed:

Code: Select all
NAME
       php - PHP Command Line Interface 'CLI'

[...]

FILES
       php-cli.ini    The configuration file for the CLI version of PHP.
User avatar
DutchDaemon
Old Fart
 
Posts: 10463
Joined: 16 Nov 2008, 20:17
Location: The Netherlands

Postby SirDice » 24 Jul 2009, 08:44

IIRC PHP installs the cli by default with the 'normal' PHP port.

[port]lang/php5[/port]

Code: Select all
===> The following configuration options are available for php5-5.2.10:
     CLI=on (default) "Build CLI version"
     CGI=on (default) "Build CGI version"
     APACHE=off (default) "Build Apache module"
     DEBUG=off (default) "Enable debug"
     SUHOSIN=on (default) "Enable Suhosin protection system (not for jails)"
     MULTIBYTE=off (default) "Enable zend multibyte support"
     IPV6=on (default) "Enable ipv6 support"
     MAILHEAD=off (default) "Enable mail header patch"
     REDIRECT=off (default) "Enable force-cgi-redirect support (CGI only)"
     DISCARD=off (default) "Enable discard-path support (CGI only)"
     FASTCGI=on (default) "Enable fastcgi support (CGI only)"
     PATHINFO=on (default) "Enable path-info-check support (CGI only)"
===> Use 'make config' to modify these settings
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
User avatar
SirDice
Old Fart
 
Posts: 16166
Joined: 17 Nov 2008, 16:50
Location: Rotterdam, Netherlands


Return to Installation and Maintenance of FreeBSD Ports or Packages

Who is online

Users browsing this forum: Bront_in_Hood, Google [Bot] and 1 guest