Menu

recompile PHP on Linux

Jean-Paul Martin

Compilation of PHP with sybase_ct module on Linux

Apply this procedure if no PHP installation already exist on your Linux.

For Red-Hat or Centos Linux.

You need gcc installed (as well as all other developpement tools checked during the php configure operation)

1 Download php source from php download site (Choose your php version. V 5.6.40 is the latest version supporting Sybase Ct-Lib)

2 Untar php distribution in a directory

3 Make and install new PHP :

cd your_php_source_installation
./configure --with-sybase-ct=/your_sybase_home/OCS-15_0 --with-apxs2 --with-config-file-path=/etc --with-gd --with-freetype-dir
make
# as root
# stop Apache
service httpd stop
make install

4 Copy php.ini to destination

# as root
cp /your_php_source_installation/php.ini-production /etc/php.ini

5 Restart Apache

# as root
service httpd start

Related

Wiki: install asemon_report on Linux

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.