Set up PHP

#1
Hello! I trying to set up PHP environment, following by this guide: openlitespeed.org/kb/mediawiki-on-openlitespeed/
But, at this step, when i trying to configure External App parameter - Command, i have a few questions:
The first is what difference between $SERVER_ROOT/fcgi-bin/lsphp5 indicated in the manual and default value lsphp73/bin/lsphp in my OLSWS? Should i change this value to $SERVER_ROOT/lsphp72/bin/lsphp ?

Before this step, i must install some php libraries, but these lsphp72 lsphp72-common lsphp72-gd lsphp72-process lsphp72-mbstring lsphp72-mysqlnd lsphp72-xml lsphp72-json isn't available for ubuntu. How i can fix it? i can install only lsphp72 with dependences
lsphp72-common lsphp72-json lsphp72-opcache only - isn't full list.
 
#2
Also i can't visit http://your_server_IP:8088/phpinfo.php and make sure PHP Version shows 7.2.x. - i get error.

Who is write these guides? Why it's isn't available at GitHub pages to edit and fix? It's not a complete and correctly guide, and same situation at some other pages.
 

lsqtwrk

Administrator
#3
Hi,

the difference between

$SERVER_ROOT/fcgi-bin/lsphp5

and

/usr/local/lsws/lsphpXX/bin/lsphp

is that , first one comes with OLS installation , the others , you need to use apt or yum to install binary first.

for extension , if it is not in repo , then please manually compile it https://docs.litespeedtech.com/extapp/php/extensions/ , albeit there seems to be more ext in yum than apt, but our package manager are trying to build as much as possible.


what error you see when try to use php72 ?
 
#4
Hi,

the difference between

$SERVER_ROOT/fcgi-bin/lsphp5

and

/usr/local/lsws/lsphpXX/bin/lsphp

is that , first one comes with OLS installation , the others , you need to use apt or yum to install binary first.

for extension , if it is not in repo , then please manually compile it https://docs.litespeedtech.com/extapp/php/extensions/ , albeit there seems to be more ext in yum than apt, but our package manager are trying to build as much as possible.


what error you see when try to use php72 ?
Thanks to your reply.
1593874306936.png
So, i cant following by this guide watch my phpinfo
 
Top