Configure Nginx - PHP 5.6.x on Mac OS Sierra...

Install homebrew :

    Run this command to install homebrew at system level

$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

    Run bellow command and check if have any thing need to be fixed.

$ sudo chown -R $(whoami) /usr/local
$ brew doctor

Install nginx :

    Command to install nginx via brew.

$ brew install nginx

Install PHP 5.6 :

     To install PHP v 5.6.x (script is from http://php-osx.liip.ch)

$ curl -s http://php-osx.liip.ch/install.sh | bash -s 5.6 

Enable new PHP 5.6 at system :

$ nano ~/.bash_profile

       Enter:

             export PATH="/usr/local/php5/bin:/usr/local/bin:$PATH"

Disable apple builtin old php-fpm version :

        sudo mv /usr/sbin/php-fpm /usr/sbin/php-fpm.old

Create symlink for new version of php-fpm:

        sudo ln -s /usr/local/php5/sbin/php-fpm /usr/local/bin/







Comments

Popular posts from this blog

Datastax Error : Cannot start node if snitch's data center (dc1) differs from previous data center (dc2)

Datastax Error : Cassandra - Saved cluster name Test Cluster != configured name

Configure Nagios plugin " check_logfiles " for scanning log file

Popular posts from this blog

Datastax Error : Cannot start node if snitch's data center (dc1) differs from previous data center (dc2)

Datastax Error : Cassandra - Saved cluster name Test Cluster != configured name

Configure Nagios plugin " check_logfiles " for scanning log file