Install PHP from source (tar.gz) in Centos 6

2:58 AM 1 Comments

Hello there, welcome back :)

Here my tutorial, hope help you for web application like Yii, CodeIgniter, Etc:
  1. Download libvpx https://codeload.github.com/webmproject/libvpx/zip/master -O libvpx.zip
  2. unzip libvpx.zip
  3. cd libvpx-master
  4. ./configure --enable-shared --prefix=/usr/local/
    make
    make install
  5. Download Gd Lib https://github.com/libgd/libgd/archive/GD_2_0_33.tar.gz
  6. tar zxf GD_2_0_33.tar.gz 
  7. cd lib_GD_2_0_33/src
  8.  ./configure --enable-shared --prefix=/usr/local/
    make
    make install
  9. Download libJpeg http://www.ijg.org/ (.tar.gz)
  10. tar -zxf jpegsrc.v9a.tar.gz
  11. cd jpeg-9a
  12. ./configure --enable-shared --prefix=/usr/local/
    make
    make install
  13. Download libPNG http://www.libpng.org/pub/png/libpng.html (.tar.gz)
  14.  tar -zxf libpng-1.6.17.tar.gz
  15. cd libpng-1.6.17
  16. ./configure --prefix=/usr/local/
    make
    make install
  17. Download php source (.tar.gz)
  18. tar -zxf phpxxx.tar.gz
  19. cd phpxxx.tar.gz
  20. ./configure \
      --libexecdir=/usr/libexec \
      --libdir=/usr/local \
      --includedir=/usr/include \
      --sbindir=/usr/sbin \
      --bindir=/usr/bin \
      --with-config-file-path=/etc/httpd/conf \
      --with-zlib-dir=/usr/local \
      --with-jpeg-dir=/usr/local \
      --with-png-dir=/usr/local \
      --with-vpx-dir=/usr/local \
      --with-xpm-dir=/usr \
      --with-freetype-dir \
      --with-mysql-sock=/var/lib/mysql \
      --with-kerberos \
      --with-gd \
      --with-apxs2=/usr/sbin/apxs \
      --with-bz2 \
      --with-curl \
      --with-gettext \
      --with-mcrypt \
      --with-openssl \
      --with-pdo-mysql \
      --with-xmlrpc \
      --with-zlib \
      --with-pdo-sqlite \
      --with-pdo-pgsql \
      --with-pgsql \
      --with-iconv \
      --with-pear \
      --with-pic \
      --with-config-file-path=/etc \
      --with-config-file-scan-dir=/etc/php.d \
      --with-libdir=lib \
      --with-mysql=mysqlnd \
      --enable-bcmath \
      --enable-calendar \
      --enable-dba \
      --enable-exif \
      --enable-ftp \
      --enable-mbstring \
      --enable-shmop \
      --enable-sigchild \
      --enable-soap \
      --enable-sockets \
      --enable-sysvmsg \
      --enable-sysvshm \
      --enable-sysvsem \
      --enable-zip \
      --enable-gd-native-ttf  \
      --enable-gd-jis-conv \
      --enable-json \
      --enable-pdo \
      --enable-dom \
      --enable-xml \
      --enable-phar \
      --enable-mysqlnd \
      --enable-embedded-mysqli
  21. make clean
  22. make
  23. make install
  24. service httpd restart
  25. smile :)

Install Server Networking Programming

Support you how to install server, networking and Programming Easy

1 comment:

You can post comment with english language or indonesia language.
Anda bisa memberikan komentar dalam bahasa inggris atau bahasa indonesia.