How ? I have error: An error occurred: Sorry, new users can only put one embedded media item in a post.
When you run php -v
what do you get ?
If its not php 8.2.4 or whichever you prefer then you need to Change default php to v8.0 - #10 by josephgodwinke
Did you set the external app for the virtual host in OLS/LS Web Admin Console ? Edit the PHP LiteSpeed SAPI App of your website’s virtual host
Set the full path of your preferred php under command field - Specifies the full command line including parameters to execute the external application.
Yes, I did it all. I installed version 8.1.19
Then I added settings in Openlitespeed
Restarted the server, but the version is still 8.1.4
I found this post and started compiling php to the version I need
But I have an endless loading load and no next window “Done” What am I doing wrong ?
What do you mean by this statement ?
The LiteSpeed SAPI App should have unique name you should also set a proper unique socket address used by the external application Syntax: IPv4 or IPV6 address:port or UDS://path
You should also specify whether you want the web server to start the application automatically - choose YES option so that it gets started through CGI Daemon. This always athe default setting if you changed this revert it back to YES
It takes a very long time to compile so please be patient.
If you get errors, then follow the steps to install the devels.
I mean this. I attached step by step everything I did, I get an error like on the screenshot and then the compilation window is endless
How to check if compilation is going on? Nothing happens, just writes loading and that’s it
I can’t follow this instruction, I have an error when I create a config
I searched for a solution but didn’t find it. What am I doing wrong ? Ubuntu 20.04
This is an issue of making making ./configure
executable chmod +x configure
This should work.
How to use php version 8.2 this process works perfectly on Ubuntu 20.04
Kindly use the forum to your advantage. Such an issue has been resolved for other users such as yourself How to install Php Curl & Php Sqlite3 - #2 by josephgodwinke
Done, buy have new error
checking for utf8_mime2text signature... new
checking for U8T_DECOMPOSE... yes
checking for pam_start in -lpam... yes
checking for crypt in -lcrypt... yes
configure: error: Cannot find imap library (libc-client.a). Please check your c-client installation.
Is this centos ? cause I bet it was ubuntu from your topic description
is this a new installation ?
What do you have in mind “New”? I installed the cyberpanel a couple of hours ago
Maybe need change it here?
./configure '--prefix=/usr/local/lsws/lsphp82' '--with-libdir=lib64' '--with-zlib' '--with-gd' '--enable-shmop' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--with-curl' '--with-openssl' '--with-gettext' '--with-mcrypt' '--enable-mbstring=all' '--enable-mbregex' '--with-png-dir=/usr' '--with-jpeg-dir=/usr' '--with-kerberos' '--enable-ftp' '--with-imap=/usr' '--with-imap-ssl' '--with-mysql=/usr' '--with-mysqli=/usr/bin/mysql_config' '--enable-pcntl' '--with-freetype-dir=/usr' '--with-pdo-mysql=/usr' '--with-litespeed'
Or copy the library somewhere? Like that
--with-imap=/usr/lib/libc-client.a
?
Not helped (
The fix would be installing a couple of libraries manually and this would be error prone and a waste of valuable time.
Reset your server to have a clean os with no webservers, databases, php.
Install latest cyberpanel on ubuntu 20.04 then use the recommended steps to install the php version of your choice. Please if you can avoid installing from source.
$ apt-cache search lsphp
# install all essentials for cyberpanel
$ apt-get install lsphp81 lsphp81-common lsphp81-mysql lsphp81-sqlite3 lsphp81-mbstring lsphp81-iconv lsphp81-mailparse lsphp81-imap lsphp81-intl lsphp81-zip lsphp81-gd lsphp81-curl lsphp81-xml lsphp81-bcmath
If not follow
then
$ cd /tmp
$ wget https://www.php.net/distributions/php-8.2.4.tar.gz
$ tar -xf php-8.2.4.tar.gz
$ cd php-8.2.4
## It is absolutely required to run ./configure with --with-litespeed since we have to build PHP with LSAPI
$ ./configure '--prefix=/usr/local/lsws/lsphp82' '--with-libdir=lib64' '--with-zlib' '--with-gd' '--enable-shmop' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--with-curl' '--with-openssl' '--with-gettext' '--with-mcrypt' '--enable-mbstring=all' '--enable-mbregex' '--with-png-dir=/usr' '--with-jpeg-dir=/usr' '--with-kerberos' '--enable-ftp' '--with-imap=/usr' '--with-imap-ssl' '--with-mysql=/usr' '--with-mysqli=/usr/bin/mysql_config' '--enable-pcntl' '--with-freetype-dir=/usr' '--with-pdo-mysql=/usr' '--with-litespeed'
$ make
$ make install
Then configure PHP 8.2 in WebAdmin console to be used as SAPI app
You need to restart lsws service for these changes to be effected.
service lsws reload