Building PHP for Magento

You are here:
< Back

 

To build PHP for Magento on OpenLiteSpeed, first set up the build environment:

yum install curl-devel libmcrypt-devel
Build PHP (5.6, for example) with additional modules.
Go to the WebAdmin Console > Tools > Compile PHP.
'--with-mysqli' '--with-zlib' '--with-gd' '--enable-shmop' '--enable-sockets' 
'--enable-sysvsem' '--enable-sysvshm' '--enable-mbstring' '--with-iconv' '--with-mysql' 
'--with-libdir=lib64' '--with-mcrypt' '--with-curl' '--with-pdo' '--with-pdo-mysql'

Note: ‘–with-libdir=lib64’ is for x86_64 systems.