According Wiki I compile lsphp with options:
./configure --prefix=/opt/php5 --with-litespeed --with-config-file-path=../conf --enable-magic-quotes --with-zlib --with-gd=/usr --with-jpeg-dir=/usr --with-png-dir=/usr --with-xpm-dir=/usr --with-freetype-dir=/usr --with-mysql=/usr --with-imap=/usr --with-kerberos --with-imap-ssl
Then copy sapi/litespeed/php to /opt/lsws/fcgi-bin/lsphp.
It works fine. I see phpinfo().
Also, I do make; make install to copy php-related files to /opt/php5.
Again, according Wiki I compile APC:
skrepka:/tmp/APC-3.0.11# /opt/php5/bin/phpize
Configuring for:
PHP Api Version: 20041225
Zend Module Api No: 20050922
Zend Extension Api No: 220051025
skrepka:/tmp/APC-3.0.11# ./configure --enable-apc --with-php-config=/opt/php5/bin/php-config
...
skrepka:/tmp/APC-3.0.11# make
...
skrepka:/tmp/APC-3.0.11# make install
Installing shared extensions: /opt/php5/lib/php/extensions/no-debug-non-zts-20050922/
Modify /opt/lsws/conf/php.ini:
extension=apc.so
include_path = ./:/opt/php5
;extension_dir = ./
Not work! Error 503. Why?
./configure --prefix=/opt/php5 --with-litespeed --with-config-file-path=../conf --enable-magic-quotes --with-zlib --with-gd=/usr --with-jpeg-dir=/usr --with-png-dir=/usr --with-xpm-dir=/usr --with-freetype-dir=/usr --with-mysql=/usr --with-imap=/usr --with-kerberos --with-imap-ssl
Then copy sapi/litespeed/php to /opt/lsws/fcgi-bin/lsphp.
It works fine. I see phpinfo().
Also, I do make; make install to copy php-related files to /opt/php5.
Again, according Wiki I compile APC:
skrepka:/tmp/APC-3.0.11# /opt/php5/bin/phpize
Configuring for:
PHP Api Version: 20041225
Zend Module Api No: 20050922
Zend Extension Api No: 220051025
skrepka:/tmp/APC-3.0.11# ./configure --enable-apc --with-php-config=/opt/php5/bin/php-config
...
skrepka:/tmp/APC-3.0.11# make
...
skrepka:/tmp/APC-3.0.11# make install
Installing shared extensions: /opt/php5/lib/php/extensions/no-debug-non-zts-20050922/
Modify /opt/lsws/conf/php.ini:
extension=apc.so
include_path = ./:/opt/php5
;extension_dir = ./
Not work! Error 503. Why?