Install PHP from source (tar.gz) in Centos 6
Hello there, welcome back :)Here my tutorial, hope help you for web application like Yii, CodeIgniter, Etc:
- Download libvpx https://codeload.github.com/webmproject/libvpx/zip/master -O libvpx.zip
- unzip libvpx.zip
- cd libvpx-master
- ./configure --enable-shared --prefix=/usr/local/
make
make install - Download Gd Lib https://github.com/libgd/libgd/archive/GD_2_0_33.tar.gz
- tar zxf GD_2_0_33.tar.gz
- cd lib_GD_2_0_33/src
- ./configure --enable-shared --prefix=/usr/local/
make
make install - Download libJpeg http://www.ijg.org/ (.tar.gz)
- tar -zxf jpegsrc.v9a.tar.gz
- cd jpeg-9a
- ./configure --enable-shared --prefix=/usr/local/
make
make install - Download libPNG http://www.libpng.org/pub/png/libpng.html (.tar.gz)
- tar -zxf libpng-1.6.17.tar.gz
- cd libpng-1.6.17
- ./configure --prefix=/usr/local/
make
make install - Download php source (.tar.gz)
- tar -zxf phpxxx.tar.gz
- cd phpxxx.tar.gz
- ./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 - make clean
- make
- make install
- service httpd restart
- smile :)
hi im from indonesia
ReplyDelete