LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > eAccelerator only loads as zend extension (not as php extension)

Reply
 
Thread Tools Display Modes
  #1  
Old 01-19-2009, 07:22 AM
Michael.Terence Michael.Terence is offline
Member
 
Join Date: Jan 2009
Posts: 28
Default eAccelerator only loads as zend extension (not as php extension)

I just purchased a license and have compiled php5 via the web gui. I checked the box for Suhosin, and Mail Header patches, and selected the eaccelerator radio button.

I loaded up did a graceful restart of lsws, and loaded up the phpinfo page - Suhosin and eaccelerator weren't loaded so I followed the php.ini path from the phpinfo page (in my case it was /usr/local/lsws/lsphp5/lib ) - created the php.ini file and added the following into it:

Quote:
extension="suhosin.so"
extension="/usr/local/lsws/lsphp5/lib/php/extensions/no-debug-non-zts-20060613/eaccelerator.so"
eaccelerator.shm_size="32"
eaccelerator.cache_dir="/tmp/eaccelerator"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.check_mtime="1"
eaccelerator.debug="0"
eaccelerator.filter=""
eaccelerator.shm_max="0"
eaccelerator.shm_ttl="0"
eaccelerator.shm_prune_period="0"
eaccelerator.shm_only="0"
eaccelerator.compress="1"
eaccelerator.compress_level="9"
eaccelerator.log_file = "/var/log/eaccelerator_log"
eaccelerator.allowed_admin_path = "/home/emmteh/uncorrupted.net/public_html/control.php"
Suhosin would load, but eaccelerator wouldn't. I verified that the path to the module was correct and finally added zend_extension=/path/to/eaccelerator.so instead of just extension=/same/path and it worked.

I need the IonCube module and it won't work with eaccelerator loaded as a zend extension.

What do I need to do to get eaccelerator to work as a regular php extension and not a zend extension?

My php compile line is as follows:
Quote:
--enable-shmop --enable-track-vars --enable-sysvsem --enable-sysvshm --enable-bcmath --enable-calendar --enable-exif --enable-ftp --enable-gd-native-ttf --enable-libxml --enable-mbstring --enable-pdo=shared --enable-soap --enable-sockets --enable-zip --with-bz2 --with-curl --with-curlwrappers --with-freetype --with-gd --with-gettext --with-imap --with-imap-ssl --with-jpeg-dir=.. --with-png-dir=.. --with-libxml --with-mcrypt --with-mhash --with-mysql --with-mysqli --with-mysql-sock=/var/run/mysqld/mysqld.sock --with-mysqli --with-openssl --with-sqlite=shared --with-pdo-mysql=shared --with-pdo-sqlite=shared --with-pdo-sqlite=shared --with-pic --with-ttf --with-zpm --with-xsl --with-zlib --with-snmp=shared --with-imagick --with-iconv --with-zip --with-curl-ssl --with-xpm-dir=.. --with-kerberos
Thanks!
Reply With Quote
  #2  
Old 01-19-2009, 08:39 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Try changing it to
Code:
extension="eaccelerator.so"
Reply With Quote
  #3  
Old 01-19-2009, 08:41 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
or
Code:
zend_extension="/usr/local/lsws/lsphp5/lib/php/extensions/no-debug-non-zts-20060613/eaccelerator.so"
Reply With Quote
  #4  
Old 01-19-2009, 09:05 AM
Michael.Terence Michael.Terence is offline
Member
 
Join Date: Jan 2009
Posts: 28
extension="eaccelerator.so" appears to have worked.

why wouldn't this work when giving the full path?

Thanks for the fix.
Reply With Quote
  #5  
Old 01-19-2009, 09:07 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
PHP prepends "extensions_dir" for all PHP extension, does not for "zend_extension".
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 06:09 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.