Wednesday, June 12, 2013

HOW TO ENABLE PHP SOAP, INTL AND XMLRPC IN DIRECTADMIN

cd /usr/local/directadmin/custombuild
./build set php5_ver 5.3
./build update
./build php n
ok, once the compilation of PHP completed I verified the PHP version by running ‘php -v‘ and proceeded with enabling the PHP-SOAP, PHP-INTL and PHP-XMLRPC in the DirectAdmin’s custombuild PHP configure script by first navigating over to the ‘custombuild‘ directory and then creating a custom ‘configure‘ script because otherwise the default one will be overwritten when running ‘./build update‘ so:

cd /usr/local/directadmin/custombuild
mkdir -p custom/ap2
cp -pf configure/ap2/configure.php5 custom/ap2/configure.php5
vim custom/ap2/configure.php5
and appended the following three lines (mbstring was already there):

...
--enable-mbstring \
--enable-soap \
--enable-intl \
--with-xmlrpc \
followed by:

./build php n
I then faced an error like this:

checking for location of ICU headers and libraries... not found
configure: error: Unable to detect ICU prefix or no failed. Please verify ICU install prefix and make sure icu-config works.
cool, installed ‘libicu-devel‘:

yum install libicu-devel
and tried to build PHP again using:

./build php n
that recompiled the PHP with the required extensions and moodle also detected them as OK so the final thing I needed to complete was to upgrade the MySQL version to 5.1 by executing:

cd /usr/local/directadmin/custombuild
./build set mysql 5.1
./build set mysql_inst yes
./build set mysql_backup yes
./build update
./build mysql
once the MySQL upgrade completed I needed to recompile PHP as recommended by DirectAdmin by simply doing:

cd /usr/local/directadmin/custombuild
./build php n
that’s it as far as this thing goes out…

No comments:

Post a Comment