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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > XCache & Suhosin

Reply
 
Thread Tools Display Modes
  #1  
Old 08-21-2008, 09:30 PM
.Bob .Bob is offline
Member
 
Join Date: Jul 2008
Posts: 15
Default XCache & Suhosin

Hi,


Whenever I compile PHP with suhosin & XCache with Litespeed's php compile interface, at the end of the compile it tells me to input the following into my php.ini to install xcache and suhosin:

To enable the XCache opcode cache, please add the following to the end of your php.ini configuration file. In addition, you may need to use the View Log link above to determine the directory where your extensions are installed and add the directory to the extensions path in your php.ini configuration file.

extension=xcache.so

To enable the Suhosin extension, please add the following to the end of your php.ini configuration file. In addition, you may need to use the View Log link above to determine the directory where your extensions are installed and add the directory to the extensions path in your php.ini configuration file.

extension=suhosin.so



I do that but when I check stderr.log the following error shows:

2008-08-21 14:17:28.281 PHP Warning: PHP Startup: Unable to load dynamic library './xcache.so' - ./xcache.so: cannot open shared object file: No such file or directory in Unknown on line 0PHP Warning: PHP Startup: Unable to load dynamic library './suhosin.so' - ./suhosin.so: cannot open shared object file: No such file or directory in Unknown on line 0PHP Warning: PHP Startup: Unable to load dynamic library './xcache.so' - ./xcache.so: cannot open shared object file: No such file or directory in Unknown on line 0PHP Warning: PHP Startup: Unable to load dynamic library './suhosin.so' - ./suhosin.so: cannot open shared object file: No such file or directory in Unknown on line 0PHP Warning: PHP Startup: Unable to load dynamic library './xcache.so' - ./xcache.so: cannot open shared object file: No such file or directory in Unknown on line 0PHP Warning: PHP Startup: Unable to load dynamic library './suhosin.so' - ./suhosin.so: cannot open shared object file: No such file or directory in Unknown on line 02008-08-21 14:17:43.490 PHP Warning: PHP Startup: Unable to load dynamic library './xcache.so' - ./xcache.so: cannot open shared object file: No such file or directory in Unknown on line 0PHP Warning: PHP Startup: Unable to load dynamic library './suhosin.so' - ./suhosin.so: cannot open shared object file: No such file or directory in Unknown on line 02008-08-21 14:34:42.078 PHP Warning: PHP Startup: Unable to load dynamic library './xcache.so' - ./xcache.so: cannot open shared object file: No such file or directory in Unknown on line 0PHP Warning: PHP Startup: Unable to load dynamic library './suhosin.so' - ./suhosin.so: cannot open shared object file: No such file or directory in Unknown on line 0sh: which: command not found



Basically, I see this error, I am guessing suhosin and XCache isnt configured properly. What can I do to make these run properly, if they currently arent?



Bob
Reply With Quote
  #2  
Old 08-22-2008, 02:25 AM
IrPr IrPr is offline
Senior Member
 
Join Date: Jul 2008
Posts: 101
Quote:
Originally Posted by .Bob View Post
Hi,


Whenever I compile PHP with suhosin & XCache with Litespeed's php compile interface, at the end of the compile it tells me to input the following into my php.ini to install xcache and suhosin:

To enable the XCache opcode cache, please add the following to the end of your php.ini configuration file. In addition, you may need to use the View Log link above to determine the directory where your extensions are installed and add the directory to the extensions path in your php.ini configuration file.

extension=xcache.so

To enable the Suhosin extension, please add the following to the end of your php.ini configuration file. In addition, you may need to use the View Log link above to determine the directory where your extensions are installed and add the directory to the extensions path in your php.ini configuration file.

extension=suhosin.so



I do that but when I check stderr.log the following error shows:

2008-08-21 14:17:28.281 PHP Warning: PHP Startup: Unable to load dynamic library './xcache.so' - ./xcache.so: cannot open shared object file: No such file or directory in Unknown on line 0PHP Warning: PHP Startup: Unable to load dynamic library './suhosin.so' - ./suhosin.so: cannot open shared object file: No such file or directory in Unknown on line 0PHP Warning: PHP Startup: Unable to load dynamic library './xcache.so' - ./xcache.so: cannot open shared object file: No such file or directory in Unknown on line 0PHP Warning: PHP Startup: Unable to load dynamic library './suhosin.so' - ./suhosin.so: cannot open shared object file: No such file or directory in Unknown on line 0PHP Warning: PHP Startup: Unable to load dynamic library './xcache.so' - ./xcache.so: cannot open shared object file: No such file or directory in Unknown on line 0PHP Warning: PHP Startup: Unable to load dynamic library './suhosin.so' - ./suhosin.so: cannot open shared object file: No such file or directory in Unknown on line 02008-08-21 14:17:43.490 PHP Warning: PHP Startup: Unable to load dynamic library './xcache.so' - ./xcache.so: cannot open shared object file: No such file or directory in Unknown on line 0PHP Warning: PHP Startup: Unable to load dynamic library './suhosin.so' - ./suhosin.so: cannot open shared object file: No such file or directory in Unknown on line 02008-08-21 14:34:42.078 PHP Warning: PHP Startup: Unable to load dynamic library './xcache.so' - ./xcache.so: cannot open shared object file: No such file or directory in Unknown on line 0PHP Warning: PHP Startup: Unable to load dynamic library './suhosin.so' - ./suhosin.so: cannot open shared object file: No such file or directory in Unknown on line 0sh: which: command not found



Basically, I see this error, I am guessing suhosin and XCache isnt configured properly. What can I do to make these run properly, if they currently arent?



Bob
You need to set extension_dir directive in php.ini
on my CentOS 5.1 box its located at /usr/local/lib/php/extensions/no-debug-non-zts-20060613 directory

i tought that would be same dir for your box, but you can use updatedb && locate xcache.so to find that
Reply With Quote
  #3  
Old 08-22-2008, 03:30 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 6,646
Quote:
Originally Posted by IrPr View Post
You need to set extension_dir directive in php.ini
on my CentOS 5.1 box its located at /usr/local/lib/php/extensions/no-debug-non-zts-20060613 directory

i tought that would be same dir for your box, but you can use updatedb && locate xcache.so to find that
Or, just do not set "extension_dir" at all.
Reply With Quote
  #4  
Old 08-22-2008, 05:11 PM
.Bob .Bob is offline
Member
 
Join Date: Jul 2008
Posts: 15
Quote:
Originally Posted by mistwang View Post
Or, just do not set "extension_dir" at all.
That worked, I just commented out extension_dir in php.ini and restarted litespeed and it was good to go.


Thanks
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 01:40 PM.



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