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

Go Back   LiteSpeed Support Forums > External Applications > PHP > eAccelerator help! How to install it, php in web admin console

Reply
 
Thread Tools Display Modes
  #1  
Old 06-05-2009, 12:20 AM
rowebil rowebil is offline
Member
 
Join Date: Mar 2009
Posts: 14
Default eAccelerator help! How to install it, php in web admin console

I compile php 5.2.8 within litespeed console then i check if eaccelerator is loaded and it's not.
How do I compile php for eaccel? disable cli or something like that?

Provide steps.

Here is my compile i used last time.

--with-mysqli --with-zlib --with-gd --enable-shmop --enable-track-vars --enable-sockets --enable-sysvsem --enable-sysvshm --enable-magic-quotes --enable-mbstring --with-iconv --with-mysql --with-litespeed --with-config-file-path=/opt/lsws/configs --with-mcrypt --disable-posix-threads --enable-dynamic-loading --enable-eaccelerator=shared --disable-cli --disable-cgi

Is it right?
Reply With Quote
  #2  
Old 06-05-2009, 12:30 AM
MindTooth MindTooth is offline
Member
 
Join Date: Apr 2008
Posts: 41
Could you try to compile it once more. And add the code that get pasted at the end into your php.ini file.

extension=eaccelerator.so
.....
....

Reply With Quote
  #3  
Old 06-05-2009, 12:34 AM
rowebil rowebil is offline
Member
 
Join Date: Mar 2009
Posts: 14
Still nothing. I really want to get it working because everyone says it makes scripts go faster. :'(
Reply With Quote
  #4  
Old 06-05-2009, 04:46 AM
auser auser is offline
Senior Member
 
Join Date: Mar 2009
Posts: 119
run www.yourdomain.com/phpinfo.php

to find out the right php.ini from
"Configuration File (php.ini) Path"

then made the change as MindTooth mentioned.
Reply With Quote
  #5  
Old 06-05-2009, 09:13 AM
MindTooth MindTooth is offline
Member
 
Join Date: Apr 2008
Posts: 41
I think you can run this is in a shell:
Code:
php -info | less
With this you can see all the info regarding PHP.

Birger
Reply With Quote
  #6  
Old 06-05-2009, 10:43 AM
rowebil rowebil is offline
Member
 
Join Date: Mar 2009
Posts: 14
I recompiled last night with Suhosin patch. I put suhosin.so at the end of the config file. I now see in phpinfo.php that suhosin is enabled.
So, it must be working. But how come eAccelerator isn't working?

Does eaccelerator have to be in the beginning of the php.ini file?
Reply With Quote
  #7  
Old 06-05-2009, 11:06 AM
rowebil rowebil is offline
Member
 
Join Date: Mar 2009
Posts: 14
billy@server1 ~ $ /opt/lsws/fcgi-bin/lsphp5
Failed loading /usr/local/Zend/lib/: /usr/local/Zend/lib/: cannot read file data: Is a directory
PHP Warning: PHP Startup: Unable to load dynamic library './php_mcrypt.dll' - ./php_mcrypt.dll: cannot open shared object file: No such file or directory in Unknown on line 0PHP Warning: PHP Startup: Unable to load dynamic library './eaccelerator.so' - ./eaccelerator.so: cannot open shared object file: No such file or directory in Unknown on line 0PHP Warning: PHP Startup: Unable to load dynamic library './eaccelerator.so' - ./eaccelerator.so: cannot open shared object file: No such file or directory in Unknown on line 0^C
Reply With Quote
  #8  
Old 06-05-2009, 11:23 AM
rowebil rowebil is offline
Member
 
Join Date: Mar 2009
Posts: 14
Yayy! I got it working!

I commented out extension dir, then found the extension_dir in my phpinfo
then found every instance of eaccelerator.so on my drive, then put it in that extension_dir
Reply With Quote
  #9  
Old 06-06-2009, 04:11 PM
brrr brrr is offline
Senior Member
 
Join Date: Aug 2007
Posts: 94
Quote:
Originally Posted by rowebil View Post
Yayy! I got it working!

I commented out extension dir, then found the extension_dir in my phpinfo
then found every instance of eaccelerator.so on my drive, then put it in that extension_dir
Could you quote the full options you finally used to successfully compile?
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 08:59 PM.



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