Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Manually Recompiling php in cPanel server  (Read 3807 times)

0 Members and 1 Guest are viewing this topic.

Leo.Prince

  • Guest
Manually Recompiling php in cPanel server
« on: November 01, 2013, 10:25:45 am »
Hi,

We have "easyapache" tool to compile apache and php in cpanel servers. In case if you are curious to recompile your php manually in a cpanel server, You can follow the steps.(Well, I followed these)

1, cd /home/cpeasyapache/src/php-*

2,
Code: [Select]
./configure' '--disable-fileinfo' '--disable-pdo' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--enable-libxml' '--enable-magic-quotes' '--enable-sockets' '--prefix=/usr' '--with-curl=/opt/curlssl/' '--with-imap=/opt/php_with_imap_client/' '--with-imap-ssl=/usr' '--with-kerberos' '--with-libdir=lib64' '--with-libxml-dir=/opt/xml2/' '--with-mysql=/usr' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--with-openssl=/usr' '--with-openssl-dir=/usr' '--with-pcre-regex=/opt/pcre' '--with-pic' '--with-zlib' '--with-zlib-dir=/usr
Note : You can fetch the configure options from any phpinfo page from the server or it is available from the following command also

Code: [Select]
php -i | grep configure
3. make && make install

4, service httpd restart

This has worked for me.  8)