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

Go Back   LiteSpeed Support Forums > External Applications > PHP > [ASK]Compiling phpshield

Reply
 
Thread Tools Display Modes
  #1  
Old 12-27-2011, 08:35 AM
prandah prandah is offline
Member
 
Join Date: Oct 2011
Posts: 27
Default [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
Reply With Quote
  #2  
Old 12-28-2011, 10:30 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,337
assuming your lsws is install in /opt/lsws.

do following to find extension_dir
Quote:
/opt/lsws/fcgi-bin/lsphp5 -i | grep extension_dir
Reply With Quote
  #3  
Old 12-28-2011, 10:56 AM
prandah prandah is offline
Member
 
Join Date: Oct 2011
Posts: 27
hello webizen
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 /]#
Reply With Quote
  #4  
Old 12-28-2011, 11:00 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,337
lsphp5 is a binary file *NOT* directory.

just do below (no 'cd').
Quote:
/usr/local/lsws/fcgi-bin/lsphp5 -i | grep extension_dir
Reply With Quote
  #5  
Old 12-28-2011, 11:13 AM
prandah prandah is offline
Member
 
Join Date: Oct 2011
Posts: 27
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 /]#
Reply With Quote
  #6  
Old 12-28-2011, 01:25 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,337
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
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 05:17 PM.



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