Skip to content

Instantly share code, notes, and snippets.

@Amar-Chaudhari
Last active July 28, 2024 15:51
Show Gist options
  • Select an option

  • Save Amar-Chaudhari/cceeab4e6d1a5361844bcd32dc33d954 to your computer and use it in GitHub Desktop.

Select an option

Save Amar-Chaudhari/cceeab4e6d1a5361844bcd32dc33d954 to your computer and use it in GitHub Desktop.

Revisions

  1. Amar-Chaudhari revised this gist Jul 13, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Readme.md
    Original file line number Diff line number Diff line change
    @@ -12,7 +12,7 @@ cd php-5.6.22

    ## Compile php
    ```
    ./configure --enable-bcmath --with-bz2 --enable-calendar --with-curl --enable-exif --enable-ftp --with-gd --with-jpeg-dir --with-png-dir --with-freetype-dir --enable-gd-native-ttf --with-kerberos --enable-mbstring --with-mcrypt --with-mhash --with-mysql --with-mysqli --with-openssl --with-pcre-regex --with-pdo-mysql --with-zlib-dir --with-regex --enable-sysvsem --enable-sysvshm --enable-sysvmsg --enable-soap --enable-sockets --with-xmlrpc --enable-zip --with-zlib --with-imap --enable-inline-optimization --enable-mbregex --enable-opcache --enable-fpm --prefix=/usr/local/php
    ./configure --enable-bcmath --with-bz2 --enable-calendar --with-curl --enable-exif --enable-ftp --with-gd --with-jpeg-dir --with-png-dir --with-freetype-dir --enable-gd-native-ttf --with-kerberos --enable-mbstring --with-mcrypt --with-mhash --with-mysql --with-mysqli --with-openssl --with-pcre-regex --with-pdo-mysql --with-zlib-dir --with-regex --enable-sysvsem --enable-sysvshm --enable-sysvmsg --enable-soap --enable-sockets --with-xmlrpc --enable-zip --with-zlib --with-imap-ssl --with-kerberos --enable-inline-optimization --enable-mbregex --enable-opcache --enable-fpm --with-libdir=lib64 --prefix=/usr/local/php
    make
    make install
    ```
  2. Amar-Chaudhari created this gist Jul 13, 2016.
    25 changes: 25 additions & 0 deletions Readme.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,25 @@
    ## Install Requirments

    yum install bzip2-devel curl-devel libjpeg-devel libpng-devel freetype-devel libxml2-devel libc-client-devel libmcrypt-devel -y

    ## Download Package
    ```
    cd /tmp
    wget -O php-5.6.22.tar.gz http://pl1.php.net/get/php-5.6.22.tar.gz/from/this/mirror
    tar -zxvf php-5.6.22.tar.gz
    cd php-5.6.22
    ```

    ## Compile php
    ```
    ./configure --enable-bcmath --with-bz2 --enable-calendar --with-curl --enable-exif --enable-ftp --with-gd --with-jpeg-dir --with-png-dir --with-freetype-dir --enable-gd-native-ttf --with-kerberos --enable-mbstring --with-mcrypt --with-mhash --with-mysql --with-mysqli --with-openssl --with-pcre-regex --with-pdo-mysql --with-zlib-dir --with-regex --enable-sysvsem --enable-sysvshm --enable-sysvmsg --enable-soap --enable-sockets --with-xmlrpc --enable-zip --with-zlib --with-imap --enable-inline-optimization --enable-mbregex --enable-opcache --enable-fpm --prefix=/usr/local/php
    make
    make install
    ```

    ## PHP-FPM setup
    ```
    cd /usr/local/php/etc
    mkdir fpm.d
    cp php-fpm.conf.default php-fpm.conf
    ```