instruction or user error?

#1
from:http://www.litespeedtech.com/support/wiki/doku.php?id=litespeed_wiki:php:lsapi
Code:
 php-5.3.8 # ./configure '--prefix=/lsphp5' '--with-litespeed' --with-mysql=/usr/lib64/mysql
make
Code:
php-5.3.8 # make install
Installing PHP SAPI module:       litespeed
Installing PHP LiteSpeed into: /lsphp5/bin/
Installing PHP CLI binary:        /lsphp5/bin/
Installing PHP CLI man page:      /lsphp5/man/man1/
Installing build environment:     /lsphp5/lib/php/build/
Installing header files:          /lsphp5/include/php/
Installing helper programs:       /lsphp5/bin/
  program: phpize
  program: php-config
Installing man pages:             /lsphp5/man/man1/
  page: phpize.1
  page: php-config.1
Installing PEAR environment:      /lsphp5/lib/php/
[PEAR] Archive_Tar    - installed: 1.3.7
[PEAR] Console_Getopt - installed: 1.3.0
[PEAR] Structures_Graph- installed: 1.0.4
[PEAR] XML_Util       - installed: 1.2.1
[PEAR] PEAR           - installed: 1.9.4
Wrote PEAR system config file at: /lsphp5/etc/pear.conf
You may want to add: /lsphp5/lib/php to your php.ini include_path
/.../php-5.3.8/build/shtool install -c ext/phar/phar.phar /lsphp5/bin
ln -s -f /lsphp5/bin/phar.phar /lsphp5/bin/phar
Installing PDO headers:          /lsphp5/include/php/ext/pdo/
php-5.3.8 # cd /opt/lsws/fcgi-bin/
bash: cd: /opt/lsws/fcgi-bin/: No such file or directory
I think either I missed something or the --prefix setting in the instructions is incorrect
 

webizen

Well-Known Member
#2
/opt/lsws/ is the install directory of lsws which has nothing to do with --prefix.

In this how-to such directories as /lswsinstall and /php5 are used as general directories to refer to the paths actually used. If you did not modify the installation location of LSWS on initial installation this will be at /opt/lsws. The PHP install directory can be any directory which you will set upon the initial configuration of PHP by changing the –prefix value.
 
#3
/opt/lsws/ is the install directory of lsws which has nothing to do with --prefix.
there is nothing in /opt
Code:
php-5.3.8 # ls /opt
php-5.3.8 #
based on the prefix I have files in /lsphp5 which is easily confirmed
Code:
php-5.3.8 # ls /lsphp5/
bin  etc  include  lib  man
and even changing prefix to /opt/lsws that does not give /opt/lsws/fcgi-bin..
 
Last edited:

webizen

Well-Known Member
#6
ok. for others' information: the wiki link posted earlier is for lsphp (LSAPI + PHP) compile/install *NOT* LSWS install (as stated in article title).
 
Top