usr/local/apache/conf/includes/post_virtualhost_nfĬreate. Main > Service Configuration > Apache Configuration > Include Editor Post VirtualHost Include In case of cPanel/WHM installed you need to modify the apache conf in the next way: LoadModule php4_module modules/libphp4.so Change the line in build config from –with-curl to -with-curl=/opt/curlssl/include/curlįor any other build errors check this link:Ĭp /usr/local/src/php-4.4.9/.libs/libphp4.so /usr/local/apache/modules/Īdd to nf (if you on Centos w/o cPanel/WHM) this line: But we've builded w/o these changes.Ĭonfigure: error: Please reinstall the libcurl distribution -Īlternate: Find where curl includes locates on your server with find / -name “curl*”. Then use /usr/bin/apxs2 instead of /usr/sbin/apxs. You probably should change the -with-apxs2=/usr/sbin/apxs to -with-apxs2=/usr/bin/apxs Apache was not built using -enable-so (the apxs usage page is displayed) Try to pass the path using -with-apxs2=/path/to/apxsģ. configure -build=i386-redhat-linux-gnu -host=i386-redhat-linux-gnu -target=i686-redhat-linux-gnu -program-prefix= -prefix=/usr -exec-prefix=/usr -bindir=/usr/bin -sbindir=/usr/sbin -sysconfdir=/etc -datadir=/usr/share -includedir=/usr/include -libdir=/usr/lib -libexecdir=/usr/libexec -localstatedir=/var -sharedstatedir=/var/lib -mandir=/usr/share/man -infodir=/usr/share/info -cache-file=./config.cache -with-libdir=lib -with-config-file-path=/etc -with-config-file-scan-dir=/etc/php.d -disable-debug -with-pic -disable-rpath -without-pear -with-bz2 -with-exec-dir=/usr/bin -with-freetype-dir=/usr -with-png-dir=/usr -with-xpm-dir=/usr -enable-gd-native-ttf -without-gdbm -with-gettext -with-gmp -with-iconv -with-jpeg-dir=/usr -with-pcre-regex=/usr -with-zlib -with-layout=GNU -enable-exif -enable-ftp -enable-magic-quotes -enable-sockets -enable-sysvsem -enable-sysvshm -enable-sysvmsg -with-kerberos -enable-ucd-snmp-hack -enable-shmop -enable-calendar -without-sqlite -with-libxml-dir=/usr -enable-xml -with-system-tzdata -with-apxs2=/usr/sbin/apxs -with-mysqli=/usr/bin/mysql_config -without-gd -disable-dom -disable-dba -without-unixODBC -disable-pdo -disable-xmlreader -disable-xmlwriter -without-sqlite3 -disable-phar -disable-fileinfo -disable-json -without-pspell -disable-wddx -with-curl -disable-posix -disable-sysvmsg -disable-sysvshm -disable-sysvsem
#HOW TO INSTALL CURL ON CENTOS 6 INSTALL#
Yum install httpd-devel bzip2-devel gmp-develĭownload php4 sources from cd /usr/local/src
#HOW TO INSTALL CURL ON CENTOS 6 HOW TO#
We describe how to use both php4 and php5 on the Centos server PHP4 deprecated (and do not remove php5 ) on centos with cpanwel/whm