LiteSpeed Support Forums

LiteSpeed Support Forums (http://www.litespeedtech.com/support/forum/index.php)
-   PHP (http://www.litespeedtech.com/support/forum/forumdisplay.php?f=19)
-   -   [ASK]Compiling phpshield (http://www.litespeedtech.com/support/forum/showthread.php?t=5585)

prandah 12-27-2011 08:35 AM

[ASK]Compiling phpshield
 
hello
to day i install script ( custom script )
but i confuse install phpshield
where i must put it ?
i have download then put phpshield extension ti /opt/lsws/php5/
but still my web can't be open
any advice for this help ?
i still confuse about where i must put my exstension_dir
php

webizen 12-28-2011 10:30 AM

assuming your lsws is install in /opt/lsws.

do following to find extension_dir
Quote:

/opt/lsws/fcgi-bin/lsphp5 -i | grep extension_dir

prandah 12-28-2011 10:56 AM

hello webizen :D
thanks for reply

i hasve run it

Quote:

[root@poseidon /]# /usr/local/lsws/fcgi-bin/lsphp5 -v
PHP 5.2.17 (litespeed) (built: Nov 23 2011 17:33:56)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
with XCache v1.3.2, Copyright (c) 2005-2011, by mOo
with the ionCube PHP Loader v4.0.11, Copyright (c) 2002-2011, by ionCube Ltd., and
with Zend Extension Manager v1.2.0, Copyright (c) 2003-2007, by Zend Technologies
with Zend Optimizer v3.2.8, Copyright (c) 1998-2007, by Zend Technologies
[root@poseidon /]# cd /usr/local/lsws/fcgi-bin/lsphp5 -i | grep extension_dir
-bash: cd: /usr/local/lsws/fcgi-bin/lsphp5: Not a directory
[root@poseidon /]#


webizen 12-28-2011 11:00 AM

lsphp5 is a binary file *NOT* directory.

just do below (no 'cd').
Quote:

/usr/local/lsws/fcgi-bin/lsphp5 -i | grep extension_dir

prandah 12-28-2011 11:13 AM

ah yess
i'm wrong :)

here is for result
Quote:

[root@poseidon /]# /usr/local/lsws/fcgi-bin/lsphp5 -i | grep extension_dir
extension_dir => ./ => ./
[root@poseidon /]#

webizen 12-28-2011 01:25 PM

1. find out which php.ini used by lsphp5
Quote:

/usr/local/lsws/fcgi-bin/lsphp5 -i | grep "Loaded Configuration File"
2. modify php.ini found in 1
extension_dir = ./
change to
extension_dir = /path/to/dir/extension*

* you need to put actual directory path to hold extension.

3. restart lsws
/usr/local/lsws/bin/lswsctrl restart


All times are GMT -7. The time now is 07:32 AM.