Skip to content

Instantly share code, notes, and snippets.

Revisions

  1. ahmedash95 revised this gist Aug 1, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion phalconphp_php7_ubuntu_16_04.sh
    Original file line number Diff line number Diff line change
    @@ -34,7 +34,7 @@ sudo ln -s /usr/local/bin/vendor/phalcon/devtools/phalcon.php /usr/bin/phalcon


    # Install phalconphp with php7
    sudo git clone https://github.com/phalcon/cphalcon.git -b 2.1.x --single-branch
    sudo git clone https://github.com/phalcon/cphalcon.git -b master --single-branch
    cd cphalcon/
    sudo ~/.composer/vendor/bin/zephir build --backend=ZendEngine3
    sudo echo "extension=phalcon.so" >> /etc/php/7.0/fpm/conf.d/20-phalcon.ini
  2. @Tosyn Tosyn revised this gist Jul 6, 2016. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions phalconphp_php7_ubuntu_16_04.sh
    Original file line number Diff line number Diff line change
    @@ -11,6 +11,7 @@ sudo apt-get install -y php7.0-fpm \
    php7.0-intl \
    php7.0-pgsql \
    php7.0-mbstring \
    php7.0-xml \
    php-msgpack \
    curl \
    vim \
  3. @Tosyn Tosyn revised this gist Jun 30, 2016. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions phalconphp_php7_ubuntu_16_04.sh
    Original file line number Diff line number Diff line change
    @@ -11,6 +11,7 @@ sudo apt-get install -y php7.0-fpm \
    php7.0-intl \
    php7.0-pgsql \
    php7.0-mbstring \
    php-msgpack \
    curl \
    vim \
    wget \
  4. @Tosyn Tosyn revised this gist Jun 30, 2016. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions phalconphp_php7_ubuntu_16_04.sh
    Original file line number Diff line number Diff line change
    @@ -10,6 +10,7 @@ sudo apt-get install -y php7.0-fpm \
    php7.0-gd \
    php7.0-intl \
    php7.0-pgsql \
    php7.0-mbstring \
    curl \
    vim \
    wget \
  5. @Tosyn Tosyn revised this gist May 9, 2016. 1 changed file with 0 additions and 4 deletions.
    4 changes: 0 additions & 4 deletions phalconphp_php7_ubuntu_16_04.sh
    Original file line number Diff line number Diff line change
    @@ -3,10 +3,6 @@
    # PhalconPhp with PHP7 installation on ubuntu:16.04

    sudo apt-get update
    sudo apt-get install -y software-properties-common
    sudo LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php

    sudo apt-get update

    sudo apt-get install -y php7.0-fpm \
    php7.0-cli \
  6. @Tosyn Tosyn revised this gist May 8, 2016. 1 changed file with 4 additions and 5 deletions.
    9 changes: 4 additions & 5 deletions phalconphp_php7_ubuntu_16_04.sh
    Original file line number Diff line number Diff line change
    @@ -3,13 +3,12 @@
    # PhalconPhp with PHP7 installation on ubuntu:16.04

    sudo apt-get update
    sudo apt-get install -y software-properties-common LC_ALL=en_US.UTF-8
    sudo add-apt-repository ppa:ondrej/php
    sudo apt-get install -y software-properties-common
    sudo LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php

    sudo apt-get update

    sudo apt-get install -y --allow-unauthenticated \
    php7.0-fpm \
    sudo apt-get install -y php7.0-fpm \
    php7.0-cli \
    php7.0-curl \
    php7.0-gd \
    @@ -21,7 +20,7 @@ sudo apt-get install -y --allow-unauthenticated \
    git

    # For zephir installtion; the following packages are needed in Ubuntu:
    sudo apt-get install -y --allow-unauthenticated gcc make re2c libpcre3-dev php7.0-dev build-essential php7.0-zip
    sudo apt-get install -y gcc make re2c libpcre3-dev php7.0-dev build-essential php7.0-zip

    # Install composer
    sudo curl -sS http://getcomposer.org/installer | php
  7. @Tosyn Tosyn revised this gist Apr 19, 2016. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions phalconphp_php7_ubuntu_16_04.sh
    Original file line number Diff line number Diff line change
    @@ -18,10 +18,10 @@ sudo apt-get install -y --allow-unauthenticated \
    curl \
    vim \
    wget \
    git
    git

    # For zephir installtion; the following packages are needed in Ubuntu:
    sudo apt-get install -y --allow-unauthenticated gcc make re2c libpcre3-dev php7.0-dev
    sudo apt-get install -y --allow-unauthenticated gcc make re2c libpcre3-dev php7.0-dev build-essential php7.0-zip

    # Install composer
    sudo curl -sS http://getcomposer.org/installer | php
  8. @Tosyn Tosyn revised this gist Apr 19, 2016. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion phalconphp_php7_ubuntu_16_04.sh
    Original file line number Diff line number Diff line change
    @@ -17,7 +17,8 @@ sudo apt-get install -y --allow-unauthenticated \
    php7.0-pgsql \
    curl \
    vim \
    wget
    wget \
    git

    # For zephir installtion; the following packages are needed in Ubuntu:
    sudo apt-get install -y --allow-unauthenticated gcc make re2c libpcre3-dev php7.0-dev
  9. @Tosyn Tosyn revised this gist Apr 19, 2016. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion phalconphp_php7_ubuntu_16_04.sh
    Original file line number Diff line number Diff line change
    @@ -14,7 +14,10 @@ sudo apt-get install -y --allow-unauthenticated \
    php7.0-curl \
    php7.0-gd \
    php7.0-intl \
    php7.0-pgsql
    php7.0-pgsql \
    curl \
    vim \
    wget

    # For zephir installtion; the following packages are needed in Ubuntu:
    sudo apt-get install -y --allow-unauthenticated gcc make re2c libpcre3-dev php7.0-dev
  10. @Tosyn Tosyn revised this gist Apr 19, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion phalconphp_php7_ubuntu_16_04.sh
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    #!/bin/bash

    # PhalconPhp with PHP7 Installtion on ubuntu:16.04
    # PhalconPhp with PHP7 installation on ubuntu:16.04

    sudo apt-get update
    sudo apt-get install -y software-properties-common LC_ALL=en_US.UTF-8
  11. @Tosyn Tosyn created this gist Apr 19, 2016.
    47 changes: 47 additions & 0 deletions phalconphp_php7_ubuntu_16_04.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,47 @@
    #!/bin/bash

    # PhalconPhp with PHP7 Installtion on ubuntu:16.04

    sudo apt-get update
    sudo apt-get install -y software-properties-common LC_ALL=en_US.UTF-8
    sudo add-apt-repository ppa:ondrej/php

    sudo apt-get update

    sudo apt-get install -y --allow-unauthenticated \
    php7.0-fpm \
    php7.0-cli \
    php7.0-curl \
    php7.0-gd \
    php7.0-intl \
    php7.0-pgsql

    # For zephir installtion; the following packages are needed in Ubuntu:
    sudo apt-get install -y --allow-unauthenticated gcc make re2c libpcre3-dev php7.0-dev

    # Install composer
    sudo curl -sS http://getcomposer.org/installer | php
    sudo mv composer.phar /usr/local/bin/composer

    # Install zephir
    sudo composer global require "phalcon/zephir:dev-master"

    # Install phalcon dev tool
    sudo composer require "phalcon/devtools" -d /usr/local/bin/
    sudo ln -s /usr/local/bin/vendor/phalcon/devtools/phalcon.php /usr/bin/phalcon


    # Install phalconphp with php7
    sudo git clone https://github.com/phalcon/cphalcon.git -b 2.1.x --single-branch
    cd cphalcon/
    sudo ~/.composer/vendor/bin/zephir build --backend=ZendEngine3
    sudo echo "extension=phalcon.so" >> /etc/php/7.0/fpm/conf.d/20-phalcon.ini
    sudo echo "extension=phalcon.so" >> /etc/php/7.0/cli/conf.d/20-phalcon.ini

    # some additional php settings if you care
    sudo sed -i "s/;cgi.fix_pathinfo=1/cgi.fix_pathinfo=0/g" /etc/php/7.0/cli/php.ini
    sudo sed -i "s/;cgi.fix_pathinfo=1/cgi.fix_pathinfo=0/g" /etc/php/7.0/fpm/php.ini
    sudo sed -i "s/memory_limit = 128M/memory_limit = 256M /g" /etc/php/7.0/fpm/php.ini

    # restart php-fpm
    sudo service php7.0-fpm restart