What do you do when you switch from Apache (easyapache3) to LiteSpeed?
Oh myfg (omfg) litespeed doesn’t have this cute thing to select what I want D:
Recompile LiteSpeed with last default settings, wonder why theres only –enable-mysqli and such… restart wham no sites work lol. I think we at least need MySQL in a shared env? Heres the quick fix
At shell do php-cgi -i | grep Configure or somthing, copy the code. I created this blog post soely so I could post the html infested code. I suppose you could pipe the output into a html file like php-cgi -i >> lol.html?
EasyApache3 PHP 5.2.13
Configure Command ‘./configure’ ‘–disable-pdo’ ‘–enable-bcmath’ ‘–enable-calendar’ ‘–enable-exif’ ‘–enable-fastcgi’ ‘–enable-ftp’ ‘–enable-gd-native-ttf’ ‘–enable-libxml’ ‘–enable-magic-quotes’ ‘–enable-mbstring’ ‘–enable-soap’ ‘–enable-sockets’ ‘–enable-zip’ ‘–prefix=/usr’ ‘–with-bz2′ ‘–with-curl=/opt/curlssl/’ ‘–with-curlwrappers’ ‘–with-freetype-dir=/usr’ ‘–with-gd’ ‘–with-gettext’ ‘–with-imap=/opt/php_with_imap_client/’ ‘–with-imap-ssl=/usr’ ‘–with-jpeg-dir=/usr’ ‘–with-kerberos’ ‘–with-libdir=lib64′ ‘–with-libexpat-dir=/usr’ ‘–with-libxml-dir=/opt/xml2′ ‘–with-libxml-dir=/opt/xml2/’ ‘–with-mcrypt=/opt/libmcrypt/’ ‘–with-mysql=/usr’ ‘–with-mysql-sock=/var/lib/mysql/mysql.sock’ ‘–with-mysqli=/usr/bin/mysql_config’ ‘–with-openssl=/usr’ ‘–with-openssl-dir=/usr’ ‘–with-pcre-regex=/opt/pcre’ ‘–with-pic’ ‘–with-png-dir=/usr’ ‘–with-tidy=/opt/tidy/’ ‘–with-ttf’ ‘–with-xmlrpc’ ‘–with-xpm-dir=/usr’ ‘–with-xsl=/opt/xslt/’ ‘–with-zlib’ ‘–with-zlib-dir=/usr’
LiteSpeed LSAPI 5 PHP 5.2.13
‘–with-mysqli’ ‘–with-mysql=/usr/bin/mysql’ ‘–with-zlib’ ‘–with-mysql’ ‘–with-gd’ ‘–enable-shmop’ ‘–enable-track-vars’ ‘–enable-sockets’ ‘–enable-sysvsem’ ‘–enable-sysvshm’ ‘–enable-magic-quotes’ ‘–enable-mbstring’ ‘–with-iconv’ ‘–with-litespeed’ ‘–with-libdir=lib64′ ‘–enable-memcache’ ‘–enable-xcache’ ‘–with-libexpat-dir=/usr’ ‘–with-libxml-dir=/opt/xml2′ ‘–with-libxml-dir=/opt/xml2/’ ‘–with-mcrypt=/opt/libmcrypt/’ ‘–with-mysql=/usr’ ‘–with-mysql-sock=/var/lib/mysql/mysql.sock’ ‘–with-mysqli=/usr/bin/mysql_config’ ‘–with-openssl=/usr’ ‘–with-openssl-dir=/usr’ ‘–with-pcre-regex=/opt/pcre’ ‘–with-pic’ ‘–with-png-dir=/usr’ ‘–with-tidy=/opt/tidy/’ ‘–with-ttf’ ‘–with-xmlrpc’ ‘–with-xpm-dir=/usr’ ‘–with-xsl=/opt/xslt/’ ‘–enable-ftp’ ‘–enable-gd-native-ttf’ ‘–enable-libxml’ ‘–enable-mbstring’ ‘–with-bz2′ ‘–with-curl=/opt/curlssl/’ ‘–with-curlwrappers’ ‘–with-freetype-dir=/usr’ ‘–with-gd’ ‘–with-gettext’ ‘–with-imap=/opt/php_with_imap_client/’ ‘–with-imap-ssl=/usr’ ‘–with-jpeg-dir=/usr’ ‘–enable-zip’
Apply Changes, graceful restart, and profit!
Edit: I forgot to mention –enable-xcache to statically load xcache, I would have to say I notice no performance/mem difference with those extensions enabled, vs not many (When I had only mysql to quickly solve the downtime)