Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Shells Virtual Desktop
BMail.ag - Secure Email Service
Server.net
CPLicense.net
VPS Server
Buy VPN
Vultr
VMs for AI
HostDare
ReliableSite White-Label Dedicated Hosting for Resellers
InterServer VPS
BMail.ag - Secure Email Service
Best VPN
High-Performance Bare Metal Server Solutions
Karvl.com
Server Mania Cloud Hosting
DataWagon Hosting
AlphaVPS Hosting
Evoxt.com
Clouvider
VPS Hosting with NVMe
Residential IPs in the US & 4G Mobile Proxies in EU & US with Unlimited Bandwidth
ReliableSite White-Label Dedicated Hosting for Resellers
Rabisu - Hosting Solutions
Shells Virtual Desktop
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

How to compile and install openlitespeed in oracle arm a1 instance.

2

Comments

  • FatGrizzlyFatGrizzly Member, Host Rep

    @bharatrockstar said:
    @FatGrizzly said:

    @bharatrockstar said:
    @FatGrizzly thanks for guide.. can you tell me how to compile and enable php7.4 extensions like curl, memcached, imap, opcache and imagick with litespeed inbuild compile php system at 7080 port.

    in configure params, up here.

    @Otus9051 said:
    Mind if i steal your content rewrite it and put it on my Hashnode?

    As long as you attribute me with a link to this page, you're good!

    I Tried but no success can you elaborate. I want to enable opcache and all these settings.

    https://ibb.co/zFBVSnK

    Can you try with these config params:

    --with-mysqli --with-zlib --with-gd --enable-shmop --enable-sockets --enable-sysvsem --enable-sysvshm --enable-mbstring --with-iconv --with-mcrypt --with-pdo-mysql --enable-ftp --enable-zip --with-curl --enable-soap --enable-xml --enable-json --with-openssl --enable-bcmath --enable-exif --with-zip --with-gd --enable-intl
    
    
  • edited November 2022

    thanks everthing works as expected but
    i want to install php-redis extension from https://github.com/phpredis/phpredis/blob/develop/INSTALL.md
    i tried to compile but not working...
    please any idea how to enable phpredis extension (.so file)

  • FatGrizzlyFatGrizzly Member, Host Rep

    @bharatrockstar said:
    thanks everthing works as expected but
    i want to install php-redis extension from https://github.com/phpredis/phpredis/blob/develop/INSTALL.md
    i tried to compile but not working...
    please any idea how to enable phpredis extension (.so file)

    Can you define "not working"? I can't help you without any logs.
    Also why not use memcached rather than redis caching?

  • Thanks for providing some of these details for compiling on arm64. I'm currently working on finalizing an arm64 Docker image based on Debian 11, I'm getting close to having everything working. I was able to successfully setup the admin_php using PHP 8.0.

    Thanked by 1FatGrizzly
  • Hello, thank you for this post. I could easily install Open Lite Speed on Oracle Cloud. However, I'm having trouble trying to install Wordpress. Could you please guide me on the way? @FatGrizzly

    Thank you. You're amazing

  • FatGrizzlyFatGrizzly Member, Host Rep

    @elementttt said:
    Hello, thank you for this post. I could easily install Open Lite Speed on Oracle Cloud. However, I'm having trouble trying to install Wordpress. Could you please guide me on the way? @FatGrizzly

    Thank you. You're amazing

    Can you let me know what error your'e facing. If you are on discord, reach me at FatGrizzly#5803

  • @FatGrizzly said:

    @elementttt said:
    Hello, thank you for this post. I could easily install Open Lite Speed on Oracle Cloud. However, I'm having trouble trying to install Wordpress. Could you please guide me on the way? @FatGrizzly

    Thank you. You're amazing

    Can you let me know what error your'e facing. If you are on discord, reach me at FatGrizzly#5803

    I tried to install following this tutorial here https://upcloud.com/resources/tutorials/install-wordpress-openlitespeed

    I followed from "Configuring OpenLiteSpeed" and using logic I changed the directories from php74 to php56 because it was installed in your tutorial.

    May you tell what could possibly went wrong?

    Thank you

  • FatGrizzlyFatGrizzly Member, Host Rep

    @elementttt said:

    @FatGrizzly said:

    @elementttt said:
    Hello, thank you for this post. I could easily install Open Lite Speed on Oracle Cloud. However, I'm having trouble trying to install Wordpress. Could you please guide me on the way? @FatGrizzly

    Thank you. You're amazing

    Can you let me know what error your'e facing. If you are on discord, reach me at FatGrizzly#5803

    I tried to install following this tutorial here https://upcloud.com/resources/tutorials/install-wordpress-openlitespeed

    I followed from "Configuring OpenLiteSpeed" and using logic I changed the directories from php74 to php56 because it was installed in your tutorial.

    May you tell what could possibly went wrong?

    Thank you

    php56 is only for admin panel, you have to compile desired php from admin/webadmin for your sites

  • ifloiflo Member

    @FatGrizzly said: wget https://www.php.net/distributions/php-5.6.35.tar.gz

    @FatGrizzly said: bash admpass.sh

    @elementttt said:

    @FatGrizzly said:

    @elementttt said:
    Hello, thank you for this post. I could easily install Open Lite Speed on Oracle Cloud. However, I'm having trouble trying to install Wordpress. Could you please guide me on the way? @FatGrizzly

    Thank you. You're amazing

    Can you let me know what error your'e facing. If you are on discord, reach me at FatGrizzly#5803

    I tried to install following this tutorial here https://upcloud.com/resources/tutorials/install-wordpress-openlitespeed

    I followed from "Configuring OpenLiteSpeed" and using logic I changed the directories from php74 to php56 because it was installed in your tutorial.

    May you tell what could possibly went wrong?

    Thank you

    I got pretty far in setting up Wordpress on this setup but in the end had to abandon it and go back to Apache. The OpenLiteSpeed PHP installs don't (didn't) have things like JPG or PNG support enabled on GD so while Wordpress looked like it was working it couldn't create any thumbnails.

    I tried compiling JPG and PNG support into GD from source and managed to get one working but not the other.

    So close, but it felt that every time I fixed one issue another one cropped up.

  • FatGrizzlyFatGrizzly Member, Host Rep

    I can probably package a custom built php for litespeed with wp support, i just don't have the time and resources atm.

    I'll look into it in near future

  • I have a fully working OLS build for arm64, but in a Docker container (https://github.com/ndigitals/ols-dockerfiles), that has all of this built and I'm currently running a WordPress install on it here: https://ndigitals.dev

    Thanked by 1FatGrizzly
  • FatGrizzlyFatGrizzly Member, Host Rep

    @timnolte said:
    I have a fully working OLS build for arm64, but in a Docker container (https://github.com/ndigitals/ols-dockerfiles), that has all of this built and I'm currently running a WordPress install on it here: https://ndigitals.dev

    Awesome! Thanks for your contribution!

  • Oops, actually that website isn't the WordPress install but one of the other vhosts in the OLS instance. This is actually one of the other vhosts with a WordPress install: https://www.oidcwp.net/

  • @timnolte said:
    Oops, actually that website isn't the WordPress install but one of the other vhosts in the OLS instance. This is actually one of the other vhosts with a WordPress install: https://www.oidcwp.net/

    Hello,

    I managed to install it using yours. However, whats the default login and password of the OpenLiteSpeed WebAdmin panel?

    I am stuck at this point

  • @elementttt you should be able to shell into the image and the credentials should be in /usr/local/lsws/adminpassword or you can use /usr/local/lsws/admin/misc/admpass.sh to set it to whatever you like.

  • @timnolte said:
    @elementttt you should be able to shell into the image and the credentials should be in /usr/local/lsws/adminpassword or you can use /usr/local/lsws/admin/misc/admpass.sh to set it to whatever you like.

    It's saying folder not found.

    However the Litespeed web server was initiated correctly on docker

    You can check on https://134.65.249.233:7080/login.php

  • @elementttt what command are you using the shell into the container? If I just use Docker on my arm64 instance the directory it there.

    docker run -it --rm --entrypoint /bin/bash ndigitals/openlitespeed:1.7.16-lsphp80 or if I use my Portainer management instance it is also there:

    Screenshot-2023-03-03-8-32-05-PM

  • elementtttelementttt Member
    edited March 2023

    @timnolte said:
    @elementttt what command are you using the shell into the container? If I just use Docker on my arm64 instance the directory it there.

    docker run -it --rm --entrypoint /bin/bash ndigitals/openlitespeed:1.7.16-lsphp80 or if I use my Portainer management instance it is also there:

    Screenshot-2023-03-03-8-32-05-PM

    With your guide I could find the path and change the password. Howerver I'm still unable to login because it keeps saying invalid credentials no matter how many times I change the password

    I tried setting permissions 644 on htpasswd but still nothing
    Also I checked and the "cat /usr/local/lsws/admin/conf/htpasswd" changes the token everytime I set a new password.

    Maybe it is because of lack of SSL? Do I need to set a domain first with SSL?

  • TrKTrK Member

    *LiteSpeed? No thanks, i'm good with nginx.

  • timnoltetimnolte Member
    edited March 2023

    @TrK said:
    *LiteSpeed? No thanks, i'm good with nginx.

    @TrK your comment provides no value to this topic. How about you go find someone who wants to use Nginx and help them.

  • @elementttt the file /usr/local/lsws/admin/conf/htpasswd is not the admin password file, that file is for basic auth. And the file /usr/local/lsws/adminpassword is just where the default username & password are saved for reference during the OLS source build. I actually think that the way my build is happening though that the password there is not actually what is being set. And you'll need to use the command script to set one. The other thing is how are you starting up the Docker container? Are you mapping some of the container paths to a volume or your local filesystem? If you aren't doing one of those things then every time you restart the container you'll lose everything.

  • @elementttt it would also be helpful to know which of my images you are running as there are 3 of them for each of PHP 8.0/8.1/8.2. I'd you are just pulling the "latest" tag then that would be the PHP 8.2 image. LiteSpeedTech also provides a Docker Compose setup that explains more into using the Docker image and setting the paths. https://github.com/litespeedtech/ols-docker-env

    You might have an easier go of things if you use my image along with their Docker Compose setup.

  • @elementttt just wanted to follow up with some examples of the paths that should be mapped to either volumes or host file system paths.

    In the LiteSpeedTech docker-compose.yml file it is these paths:

          - ./lsws/conf:/usr/local/lsws/conf
          - ./lsws/admin-conf:/usr/local/lsws/admin/conf
          - ./bin/container:/usr/local/bin
          - ./sites:/var/www/vhosts/
          - ./acme:/root/.acme.sh/
          - ./logs:/usr/local/lsws/logs/
    

    In my Portainer setup I am using the following paths:

    Screenshot-2023-03-04-10-01-40-AM

  • @timnolte said:
    @elementttt the file /usr/local/lsws/admin/conf/htpasswd is not the admin password file, that file is for basic auth. And the file /usr/local/lsws/adminpassword is just where the default username & password are saved for reference during the OLS source build. I actually think that the way my build is happening though that the password there is not actually what is being set. And you'll need to use the command script to set one. The other thing is how are you starting up the Docker container? Are you mapping some of the container paths to a volume or your local filesystem? If you aren't doing one of those things then every time you restart the container you'll lose everything.

    How to do that? I'm afraid I'm just starting the container

  • @elementttt I would probably recommend using the LiteSpeedTech Docker Compose setup(https://github.com/litespeedtech/ols-docker-env) as a starting point, as that will give you a configuration file you can use to maintain the mappings and configuration. You can adjust their docker-compose.yml to use my Docker image to support arm64 and also not start-up a MariaDb/MySQL container of you have a database installed locally on your arm64 instance.

    The other option instead of using Docker is to follow my build process to get things compiled directly on your arm64 instance without Docker involved. I decided to go the Docket container route for my entire setup and it is working out well enough for me, but I've been working with Docker for a couple of years so I can manage it alright.

    If you want to continue down the Docker route I would highly suggest looking at some tutorials & training on the management and use of Docker to help you out with some of the setup and use.

  • @elementttt one final note is that LiteSpeedTech provides some additional Docker documentation on their website that might also be helpful: https://docs.litespeedtech.com/cloud/docker/

  • FatGrizzlyFatGrizzly Member, Host Rep

    @Arkas this guide is outdated now, LSWS has aarch php binaries. May you please remove the php part from OP?

    Thanked by 2adly giang
  • @FatGrizzly oh, when did they release arm64 PHP binaries?

  • gianggiang Veteran

    @FatGrizzly said:
    @Arkas this guide is outdated now, LSWS has aarch php binaries. May you please remove the php part from OP?

    Would you please provide link or information about it?

  • I messaged some LiteSpeedTech folks on Slack and I was told that there is only admin lsphp available. There aren't general lsphp packages available and those still need to be built from source.

    Thanked by 1FatGrizzly
Sign In or Register to comment.