Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save samyranavela/afc6ef8ee32f5c624dfe825ce5c15ed8 to your computer and use it in GitHub Desktop.

Select an option

Save samyranavela/afc6ef8ee32f5c624dfe825ce5c15ed8 to your computer and use it in GitHub Desktop.

Revisions

  1. @alexandr-parkhomenko alexandr-parkhomenko revised this gist Feb 10, 2022. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions PHPBrew on Ubuntu
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,7 @@ sudo apt-get install libxml2-dev libbz2-dev libmcrypt-dev libreadline-dev libxsl
    # Extension package to add on Ubuntu 18.04
    sudo apt-get install libssl-dev
    # Extension package to add on Ubuntu 20.04
    sudo apt install -y pkg-config libssl-dev libsqlite3-dev libbz2-dev libxml2-dev libcurl4-openssl-dev libonig-dev libpq-dev libreadline-dev libxslt1-dev libzip-dev libsodium-dev
    sudo apt install -y pkg-config libssl-dev libsqlite3-dev libbz2-dev libxml2-dev libcurl4-openssl-dev libonig-dev libpq-dev libreadline-dev libxslt1-dev libzip-dev libsodium-dev libwebp-dev

    # +apxs2
    sudo apt-get install apache2-dev -y
    @@ -36,7 +36,7 @@ phpbrew use php-7.0.8
    # For Ubuntu (14.04) and (18.04)
    phpbrew ext install gd -- --with-jpeg-dir=/usr/lib --with-freetype-dir=/usr/lib --with-webp-dir=/usr/lib --with-xpm-dir=/usr/lib
    # For Ubuntu (20.04)
    phpbrew ext install gd -- --with-jpeg
    phpbrew ext install gd -- --with-jpeg --with-webp
    phpbrew ext install opcache
    phpbrew ext install xdebug
    phpbrew ext install soap
  2. @alexandr-parkhomenko alexandr-parkhomenko revised this gist Aug 19, 2021. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion PHPBrew on Ubuntu
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,7 @@ sudo apt-get install libxml2-dev libbz2-dev libmcrypt-dev libreadline-dev libxsl
    # Extension package to add on Ubuntu 18.04
    sudo apt-get install libssl-dev
    # Extension package to add on Ubuntu 20.04
    sudo apt install -y pkg-config libssl-dev libsqlite3-dev libbz2-dev libxml2-dev libcurl4-openssl-dev libonig-dev libpq-dev libreadline-dev libxslt1-dev libzip-dev
    sudo apt install -y pkg-config libssl-dev libsqlite3-dev libbz2-dev libxml2-dev libcurl4-openssl-dev libonig-dev libpq-dev libreadline-dev libxslt1-dev libzip-dev libsodium-dev

    # +apxs2
    sudo apt-get install apache2-dev -y
    @@ -43,6 +43,9 @@ phpbrew ext install soap
    phpbrew ext install iconv
    phpbrew ext install ldap
    phpbrew ext install mongodb
    # Libsodium for PHP8
    phpbrew ext install libsodium
    cp /home/alex/.phpbrew/php/php-8.0.9/lib/php/extensions/no-debug-non-zts-20200930/sodium.so /home/alex/.phpbrew/php/php-8.0.9/lib/php/extensions/no-debug-non-zts-20200930/libsodium.so

    # Restore permissions (14.04) and (20.04)
    sudo find /etc/apache2 /var/lib/apache2/module -type f -exec chmod 644 {} \;
  3. @alexandr-parkhomenko alexandr-parkhomenko revised this gist Aug 19, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion PHPBrew on Ubuntu
    Original file line number Diff line number Diff line change
    @@ -36,7 +36,7 @@ phpbrew use php-7.0.8
    # For Ubuntu (14.04) and (18.04)
    phpbrew ext install gd -- --with-jpeg-dir=/usr/lib --with-freetype-dir=/usr/lib --with-webp-dir=/usr/lib --with-xpm-dir=/usr/lib
    # For Ubuntu (20.04)
    phpbrew ext install gd -- --with-jpeg --with-freetype --with-webp --with-xpm
    phpbrew ext install gd -- --with-jpeg
    phpbrew ext install opcache
    phpbrew ext install xdebug
    phpbrew ext install soap
  4. @alexandr-parkhomenko alexandr-parkhomenko revised this gist Aug 19, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion PHPBrew on Ubuntu
    Original file line number Diff line number Diff line change
    @@ -36,7 +36,7 @@ phpbrew use php-7.0.8
    # For Ubuntu (14.04) and (18.04)
    phpbrew ext install gd -- --with-jpeg-dir=/usr/lib --with-freetype-dir=/usr/lib --with-webp-dir=/usr/lib --with-xpm-dir=/usr/lib
    # For Ubuntu (20.04)
    phpbrew ext install gd
    phpbrew ext install gd -- --with-jpeg --with-freetype --with-webp --with-xpm
    phpbrew ext install opcache
    phpbrew ext install xdebug
    phpbrew ext install soap
  5. @alexandr-parkhomenko alexandr-parkhomenko revised this gist Aug 19, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion PHPBrew on Ubuntu
    Original file line number Diff line number Diff line change
    @@ -13,7 +13,7 @@ sudo apt-get install -y libfreetype6 libfreetype6-dev libpng12-0 libpng12-dev li
    # +gd (18.04)
    sudo apt-get install -y libfreetype6 libfreetype6-dev libpng-dev libjpeg-dev libjpeg8-dev libjpeg8 libgd-dev libgd3 libwebp-dev
    # +gd (20.04)
    sudo aptt install -y libpng-dev
    sudo apt install -y libpng-dev libjpeg-dev

    # +opcache (14.04) and (18.04)
    sudo apt-get install libcurl3-openssl-dev -y
  6. @alexandr-parkhomenko alexandr-parkhomenko revised this gist Jan 18, 2021. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions PHPBrew on Ubuntu
    Original file line number Diff line number Diff line change
    @@ -42,6 +42,7 @@ phpbrew ext install xdebug
    phpbrew ext install soap
    phpbrew ext install iconv
    phpbrew ext install ldap
    phpbrew ext install mongodb

    # Restore permissions (14.04) and (20.04)
    sudo find /etc/apache2 /var/lib/apache2/module -type f -exec chmod 644 {} \;
  7. @alexandr-parkhomenko alexandr-parkhomenko revised this gist Jan 12, 2021. 1 changed file with 17 additions and 10 deletions.
    27 changes: 17 additions & 10 deletions PHPBrew on Ubuntu
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,9 @@
    # Default extension package
    # Extension package to add on Ubuntu 14.04
    sudo apt-get install libxml2-dev libbz2-dev libmcrypt-dev libreadline-dev libxslt1-dev autoconf -y
    # Default extension package (18.04)
    # Extension package to add on Ubuntu 18.04
    sudo apt-get install libssl-dev
    # Extension package to add on Ubuntu 20.04
    sudo apt install -y pkg-config libssl-dev libsqlite3-dev libbz2-dev libxml2-dev libcurl4-openssl-dev libonig-dev libpq-dev libreadline-dev libxslt1-dev libzip-dev

    # +apxs2
    sudo apt-get install apache2-dev -y
    @@ -10,14 +12,19 @@ sudo apt-get install apache2-dev -y
    sudo apt-get install -y libfreetype6 libfreetype6-dev libpng12-0 libpng12-dev libjpeg-dev libjpeg8-dev libjpeg8 libgd-dev libgd3 libwebp-dev
    # +gd (18.04)
    sudo apt-get install -y libfreetype6 libfreetype6-dev libpng-dev libjpeg-dev libjpeg8-dev libjpeg8 libgd-dev libgd3 libwebp-dev
    # +gd (20.04)
    sudo aptt install -y libpng-dev

    # +opcache
    # +opcache (14.04) and (18.04)
    sudo apt-get install libcurl3-openssl-dev -y

    # +intl
    # +intl (14.04) and (18.04)
    sudo apt-get install re2c libicu-dev -y

    # Reset permission (14.04)
    # LDAP (14.04)
    sudo ln -fs /usr/lib/x86_64-linux-gnu/libldap.so /usr/lib/

    # Reset permission (14.04) and (20.04)
    sudo chmod oga+rw -R /etc/apache2 /usr/sbin/a2enmod /var/lib/apache2/module/
    # Reset permission (18.04)
    sudo chmod oga+rw -R /etc/apache2 /usr/sbin/a2enmod /usr/lib/apache2/modules/
    @@ -26,24 +33,24 @@ sudo chmod oga+rw -R /etc/apache2 /usr/sbin/a2enmod /usr/lib/apache2/modules/
    # we use version 7.0.8 only as example, it can be any supported version
    phpbrew install 7.0.8 +default +apxs2 +intl +dbs +fpm
    phpbrew use php-7.0.8
    # For Ubuntu (14.04) and (18.04)
    phpbrew ext install gd -- --with-jpeg-dir=/usr/lib --with-freetype-dir=/usr/lib --with-webp-dir=/usr/lib --with-xpm-dir=/usr/lib
    # For Ubuntu (20.04)
    phpbrew ext install gd
    phpbrew ext install opcache
    phpbrew ext install xdebug
    phpbrew ext install soap
    phpbrew ext install iconv

    # LDAP (14.04)
    sudo ln -fs /usr/lib/x86_64-linux-gnu/libldap.so /usr/lib/
    phpbrew ext install ldap

    # Restore permissions (14.04)
    # Restore permissions (14.04) and (20.04)
    sudo find /etc/apache2 /var/lib/apache2/module -type f -exec chmod 644 {} \;
    sudo find /etc/apache2 /var/lib/apache2/module /usr/sbin/a2enmod -type d -exec chmod 755 {} \;
    # Restore permissions (18.04)
    sudo find /etc/apache2 /usr/lib/apache2/modules -type f -exec chmod 644 {} \;
    sudo find /etc/apache2 /usr/lib/apache2/modules /usr/sbin/a2enmod -type d -exec chmod 755 {} \;

    # Prepare apache module
    # Prepare apache module (14.04) and (18.04)
    sudo rm /etc/apache2/mods-enabled/php7.load
    sudo cp /etc/apache2/mods-available/php5.conf /etc/apache2/mods-available/php7.conf

  8. @alexandr-parkhomenko alexandr-parkhomenko renamed this gist May 19, 2018. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  9. @alexandr-parkhomenko alexandr-parkhomenko revised this gist May 19, 2018. 1 changed file with 13 additions and 4 deletions.
    17 changes: 13 additions & 4 deletions PHPBrew on Ubuntu 14.04
    Original file line number Diff line number Diff line change
    @@ -1,20 +1,26 @@
    # Default extension package
    sudo apt-get install libxml2-dev libbz2-dev libmcrypt-dev libreadline-dev libxslt1-dev autoconf -y
    # Default extension package (18.04)
    sudo apt-get install libssl-dev

    # +apxs2
    sudo apt-get install apache2-dev -y

    # +gd
    # +gd (14.04)
    sudo apt-get install -y libfreetype6 libfreetype6-dev libpng12-0 libpng12-dev libjpeg-dev libjpeg8-dev libjpeg8 libgd-dev libgd3 libwebp-dev
    # +gd (18.04)
    sudo apt-get install -y libfreetype6 libfreetype6-dev libpng-dev libjpeg-dev libjpeg8-dev libjpeg8 libgd-dev libgd3 libwebp-dev

    # +opcache
    sudo apt-get install libcurl3-openssl-dev -y

    # +intl
    sudo apt-get install re2c libicu-dev -y

    # Reset permission
    # Reset permission (14.04)
    sudo chmod oga+rw -R /etc/apache2 /usr/sbin/a2enmod /var/lib/apache2/module/
    # Reset permission (18.04)
    sudo chmod oga+rw -R /etc/apache2 /usr/sbin/a2enmod /usr/lib/apache2/modules/

    #install new php version
    # we use version 7.0.8 only as example, it can be any supported version
    @@ -26,13 +32,16 @@ phpbrew ext install xdebug
    phpbrew ext install soap
    phpbrew ext install iconv

    # LDAP
    # LDAP (14.04)
    sudo ln -fs /usr/lib/x86_64-linux-gnu/libldap.so /usr/lib/
    phpbrew ext install ldap

    # Restore permissions
    # Restore permissions (14.04)
    sudo find /etc/apache2 /var/lib/apache2/module -type f -exec chmod 644 {} \;
    sudo find /etc/apache2 /var/lib/apache2/module /usr/sbin/a2enmod -type d -exec chmod 755 {} \;
    # Restore permissions (18.04)
    sudo find /etc/apache2 /usr/lib/apache2/modules -type f -exec chmod 644 {} \;
    sudo find /etc/apache2 /usr/lib/apache2/modules /usr/sbin/a2enmod -type d -exec chmod 755 {} \;

    # Prepare apache module
    sudo rm /etc/apache2/mods-enabled/php7.load
  10. @alexandr-parkhomenko alexandr-parkhomenko revised this gist Aug 7, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion PHPBrew on Ubuntu 14.04
    Original file line number Diff line number Diff line change
    @@ -14,7 +14,7 @@ sudo apt-get install libcurl3-openssl-dev -y
    sudo apt-get install re2c libicu-dev -y

    # Reset permission
    sudo chmod o+rw -R /etc/apache2 /usr/sbin/a2enmod /var/lib/apache2/module/
    sudo chmod oga+rw -R /etc/apache2 /usr/sbin/a2enmod /var/lib/apache2/module/

    #install new php version
    # we use version 7.0.8 only as example, it can be any supported version
  11. @alexandr-parkhomenko alexandr-parkhomenko revised this gist May 11, 2017. 1 changed file with 28 additions and 5 deletions.
    33 changes: 28 additions & 5 deletions PHPBrew on Ubuntu 14.04
    Original file line number Diff line number Diff line change
    @@ -13,7 +13,7 @@ sudo apt-get install libcurl3-openssl-dev -y
    # +intl
    sudo apt-get install re2c libicu-dev -y

    #Reset permission
    # Reset permission
    sudo chmod o+rw -R /etc/apache2 /usr/sbin/a2enmod /var/lib/apache2/module/

    #install new php version
    @@ -26,17 +26,40 @@ phpbrew ext install xdebug
    phpbrew ext install soap
    phpbrew ext install iconv

    #LDAP
    # LDAP
    sudo ln -fs /usr/lib/x86_64-linux-gnu/libldap.so /usr/lib/
    phpbrew ext install ldap

    #Restore permissions
    # Restore permissions
    sudo find /etc/apache2 /var/lib/apache2/module -type f -exec chmod 644 {} \;
    sudo find /etc/apache2 /var/lib/apache2/module /usr/sbin/a2enmod -type d -exec chmod 755 {} \;

    #Prepare apache module
    # Prepare apache module
    sudo rm /etc/apache2/mods-enabled/php7.load
    sudo cp /etc/apache2/mods-available/php5.conf /etc/apache2/mods-available/php7.conf

    #Activate php7 apache module
    sudo a2enmod php7
    sudo a2enmod php7

    # NGINX virtual host sample
    server {
    listen 80;

    server_name security.oro-v2-0.loc;
    root /home/alex/public_html/oro/security/2.0/application/crm/web;

    error_log /var/log/nginx/orocrm_error.log;
    access_log /var/log/nginx/orocrm_access.log;

    location / {
    try_files $uri /app.php$is_args$args;
    }

    location ~ ^/(app|app_dev|config|install)\.php(/|$) {
    fastcgi_pass unix:/home/alex/.phpbrew/php/php-7.1.4/var/run/php-fpm.sock;
    fastcgi_split_path_info ^(.+\.php)(/.*)$;
    include fastcgi_params;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    fastcgi_param HTTPS off;
    }
    }
  12. @alexandr-parkhomenko alexandr-parkhomenko revised this gist Apr 21, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion PHPBrew on Ubuntu 14.04
    Original file line number Diff line number Diff line change
    @@ -17,7 +17,7 @@ sudo apt-get install re2c libicu-dev -y
    sudo chmod o+rw -R /etc/apache2 /usr/sbin/a2enmod /var/lib/apache2/module/

    #install new php version
    # we use vresion 7.0.8 only as example, it can be any supported version
    # we use version 7.0.8 only as example, it can be any supported version
    phpbrew install 7.0.8 +default +apxs2 +intl +dbs +fpm
    phpbrew use php-7.0.8
    phpbrew ext install gd -- --with-jpeg-dir=/usr/lib --with-freetype-dir=/usr/lib --with-webp-dir=/usr/lib --with-xpm-dir=/usr/lib
  13. @alexandr-parkhomenko alexandr-parkhomenko revised this gist Apr 21, 2017. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions PHPBrew on Ubuntu 14.04
    Original file line number Diff line number Diff line change
    @@ -17,6 +17,7 @@ sudo apt-get install re2c libicu-dev -y
    sudo chmod o+rw -R /etc/apache2 /usr/sbin/a2enmod /var/lib/apache2/module/

    #install new php version
    # we use vresion 7.0.8 only as example, it can be any supported version
    phpbrew install 7.0.8 +default +apxs2 +intl +dbs +fpm
    phpbrew use php-7.0.8
    phpbrew ext install gd -- --with-jpeg-dir=/usr/lib --with-freetype-dir=/usr/lib --with-webp-dir=/usr/lib --with-xpm-dir=/usr/lib
  14. @alexandr-parkhomenko alexandr-parkhomenko revised this gist Sep 21, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion PHPBrew on Ubuntu 14.04
    Original file line number Diff line number Diff line change
    @@ -17,7 +17,7 @@ sudo apt-get install re2c libicu-dev -y
    sudo chmod o+rw -R /etc/apache2 /usr/sbin/a2enmod /var/lib/apache2/module/

    #install new php version
    phpbrew install 7.0.8 +default +apxs2 +intl +dbs
    phpbrew install 7.0.8 +default +apxs2 +intl +dbs +fpm
    phpbrew use php-7.0.8
    phpbrew ext install gd -- --with-jpeg-dir=/usr/lib --with-freetype-dir=/usr/lib --with-webp-dir=/usr/lib --with-xpm-dir=/usr/lib
    phpbrew ext install opcache
  15. @alexandr-parkhomenko alexandr-parkhomenko revised this gist Jun 30, 2016. 1 changed file with 3 additions and 4 deletions.
    7 changes: 3 additions & 4 deletions PHPBrew on Ubuntu 14.04
    Original file line number Diff line number Diff line change
    @@ -14,7 +14,7 @@ sudo apt-get install libcurl3-openssl-dev -y
    sudo apt-get install re2c libicu-dev -y

    #Reset permission
    sudo chmod o+rw -R /etc/apache2 /usr/sbin/a2enmod
    sudo chmod o+rw -R /etc/apache2 /usr/sbin/a2enmod /var/lib/apache2/module/

    #install new php version
    phpbrew install 7.0.8 +default +apxs2 +intl +dbs
    @@ -30,9 +30,8 @@ sudo ln -fs /usr/lib/x86_64-linux-gnu/libldap.so /usr/lib/
    phpbrew ext install ldap

    #Restore permissions
    sudo find /etc/apache2 -type f -exec chmod 644 {} \;
    sudo find /etc/apache2 -type d -exec chmod 755 {} \;
    sudo chmod 755 /usr/sbin/a2enmod
    sudo find /etc/apache2 /var/lib/apache2/module -type f -exec chmod 644 {} \;
    sudo find /etc/apache2 /var/lib/apache2/module /usr/sbin/a2enmod -type d -exec chmod 755 {} \;

    #Prepare apache module
    sudo rm /etc/apache2/mods-enabled/php7.load
  16. @alexandr-parkhomenko alexandr-parkhomenko revised this gist Jun 28, 2016. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions PHPBrew on Ubuntu 14.04
    Original file line number Diff line number Diff line change
    @@ -23,6 +23,7 @@ phpbrew ext install gd -- --with-jpeg-dir=/usr/lib --with-freetype-dir=/usr/lib
    phpbrew ext install opcache
    phpbrew ext install xdebug
    phpbrew ext install soap
    phpbrew ext install iconv

    #LDAP
    sudo ln -fs /usr/lib/x86_64-linux-gnu/libldap.so /usr/lib/
  17. @alexandr-parkhomenko alexandr-parkhomenko revised this gist Jun 28, 2016. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions PHPBrew on Ubuntu 14.04
    Original file line number Diff line number Diff line change
    @@ -24,6 +24,10 @@ phpbrew ext install opcache
    phpbrew ext install xdebug
    phpbrew ext install soap

    #LDAP
    sudo ln -fs /usr/lib/x86_64-linux-gnu/libldap.so /usr/lib/
    phpbrew ext install ldap

    #Restore permissions
    sudo find /etc/apache2 -type f -exec chmod 644 {} \;
    sudo find /etc/apache2 -type d -exec chmod 755 {} \;
  18. @alexandr-parkhomenko alexandr-parkhomenko revised this gist Jun 28, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion PHPBrew on Ubuntu 14.04
    Original file line number Diff line number Diff line change
    @@ -14,7 +14,7 @@ sudo apt-get install libcurl3-openssl-dev -y
    sudo apt-get install re2c libicu-dev -y

    #Reset permission
    sudo chmod o+rw /etc/apache2 /usr/sbin/a2enmod
    sudo chmod o+rw -R /etc/apache2 /usr/sbin/a2enmod

    #install new php version
    phpbrew install 7.0.8 +default +apxs2 +intl +dbs
  19. @alexandr-parkhomenko alexandr-parkhomenko revised this gist Jun 28, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion PHPBrew on Ubuntu 14.04
    Original file line number Diff line number Diff line change
    @@ -17,7 +17,7 @@ sudo apt-get install re2c libicu-dev -y
    sudo chmod o+rw /etc/apache2 /usr/sbin/a2enmod

    #install new php version
    phpbrew install 7.0.8 +default +apxs2 +intl
    phpbrew install 7.0.8 +default +apxs2 +intl +dbs
    phpbrew use php-7.0.8
    phpbrew ext install gd -- --with-jpeg-dir=/usr/lib --with-freetype-dir=/usr/lib --with-webp-dir=/usr/lib --with-xpm-dir=/usr/lib
    phpbrew ext install opcache
  20. @alexandr-parkhomenko alexandr-parkhomenko revised this gist Jun 27, 2016. 1 changed file with 3 additions and 2 deletions.
    5 changes: 3 additions & 2 deletions PHPBrew on Ubuntu 14.04
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,7 @@ sudo apt-get install libxml2-dev libbz2-dev libmcrypt-dev libreadline-dev libxsl
    sudo apt-get install apache2-dev -y

    # +gd
    sudo apt-get install -y libfreetype6 libfreetype6-dev libpng12-0 libpng12-dev libjpeg-dev libjpeg8-dev libjpeg8 libgd-dev libgd3
    sudo apt-get install -y libfreetype6 libfreetype6-dev libpng12-0 libpng12-dev libjpeg-dev libjpeg8-dev libjpeg8 libgd-dev libgd3 libwebp-dev

    # +opcache
    sudo apt-get install libcurl3-openssl-dev -y
    @@ -17,8 +17,9 @@ sudo apt-get install re2c libicu-dev -y
    sudo chmod o+rw /etc/apache2 /usr/sbin/a2enmod

    #install new php version
    phpbrew install 7.0.8 +default +apxs2 +intl +gd
    phpbrew install 7.0.8 +default +apxs2 +intl
    phpbrew use php-7.0.8
    phpbrew ext install gd -- --with-jpeg-dir=/usr/lib --with-freetype-dir=/usr/lib --with-webp-dir=/usr/lib --with-xpm-dir=/usr/lib
    phpbrew ext install opcache
    phpbrew ext install xdebug
    phpbrew ext install soap
  21. @alexandr-parkhomenko alexandr-parkhomenko revised this gist Jun 27, 2016. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions PHPBrew on Ubuntu 14.04
    Original file line number Diff line number Diff line change
    @@ -21,6 +21,7 @@ phpbrew install 7.0.8 +default +apxs2 +intl +gd
    phpbrew use php-7.0.8
    phpbrew ext install opcache
    phpbrew ext install xdebug
    phpbrew ext install soap

    #Restore permissions
    sudo find /etc/apache2 -type f -exec chmod 644 {} \;
  22. @alexandr-parkhomenko alexandr-parkhomenko revised this gist Jun 27, 2016. 1 changed file with 16 additions and 1 deletion.
    17 changes: 16 additions & 1 deletion PHPBrew on Ubuntu 14.04
    Original file line number Diff line number Diff line change
    @@ -13,8 +13,23 @@ sudo apt-get install libcurl3-openssl-dev -y
    # +intl
    sudo apt-get install re2c libicu-dev -y

    #Reset permission
    sudo chmod o+rw /etc/apache2 /usr/sbin/a2enmod

    #install new php version
    phpbrew install 7.0.8 +default +apxs2 +intl +gd
    phpbrew use php-7.0.8
    phpbrew ext install opcache
    phpbrew ext install xdebug
    phpbrew ext install xdebug

    #Restore permissions
    sudo find /etc/apache2 -type f -exec chmod 644 {} \;
    sudo find /etc/apache2 -type d -exec chmod 755 {} \;
    sudo chmod 755 /usr/sbin/a2enmod

    #Prepare apache module
    sudo rm /etc/apache2/mods-enabled/php7.load
    sudo cp /etc/apache2/mods-available/php5.conf /etc/apache2/mods-available/php7.conf

    #Activate php7 apache module
    sudo a2enmod php7
  23. @alexandr-parkhomenko alexandr-parkhomenko revised this gist Jun 27, 2016. 1 changed file with 7 additions and 1 deletion.
    8 changes: 7 additions & 1 deletion PHPBrew on Ubuntu 14.04
    Original file line number Diff line number Diff line change
    @@ -11,4 +11,10 @@ sudo apt-get install -y libfreetype6 libfreetype6-dev libpng12-0 libpng12-dev li
    sudo apt-get install libcurl3-openssl-dev -y

    # +intl
    sudo apt-get install re2c libicu-dev -y
    sudo apt-get install re2c libicu-dev -y

    #install new php version
    phpbrew install 7.0.8 +default +apxs2 +intl +gd
    phpbrew use php-7.0.8
    phpbrew ext install opcache
    phpbrew ext install xdebug
  24. @alexandr-parkhomenko alexandr-parkhomenko created this gist Jun 27, 2016.
    14 changes: 14 additions & 0 deletions PHPBrew on Ubuntu 14.04
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    # Default extension package
    sudo apt-get install libxml2-dev libbz2-dev libmcrypt-dev libreadline-dev libxslt1-dev autoconf -y

    # +apxs2
    sudo apt-get install apache2-dev -y

    # +gd
    sudo apt-get install -y libfreetype6 libfreetype6-dev libpng12-0 libpng12-dev libjpeg-dev libjpeg8-dev libjpeg8 libgd-dev libgd3

    # +opcache
    sudo apt-get install libcurl3-openssl-dev -y

    # +intl
    sudo apt-get install re2c libicu-dev -y