RPI New OLS Install failed... 'User Error'...??? :)

#1
Hey :)

I tried to install and test OLS on a 'mostly clean' Raspberry Pi 3, latest Raspbian / 'Raspberry Pi OS', but it seems to have failed...

---
To install PHP, I used:-

Check Current PHP Version - 'php --version'

'PHP-8.0.8' (latest version) install guide = https://lindevs.com/install-php-8-0-on-raspberry-pi/

'PHP-7.4' install guide = https://janw.me/raspberry-pi/installing-php74-rapsberry-pi/

This command to 'manual swap' the PHP version to use PHP7.4 instead of PHP8.0 = 'sudo update-alternatives --set php /usr/bin/php7.4'
---

---
I tried this 'internet download' install guide = https://openlitespeed.org/kb/install-ols-from-litespeed-repositories/
But I got the following:-

sudo apt-get install openlitespeed
E: Unable to locate package openlitespeed

sudo apt-get install openlitespeed-1.7.12
E: Unable to locate package openlitespeed-1.7.12
E: Couldn't find any package by glob 'openlitespeed-1.7.12'
E: Couldn't find any package by regex 'openlitespeed-1.7.12'
---

---
I tried just running = 'sudo ./install.sh' = from both the '1.6.21' and '1.7.12' version 'unzipped' folders, and here is the complete 'Terminal Window' install output from my last attempt at version '1.7.12':-

=================================
Openlitespeed web server exists, will upgrade.
[ERROR] litespeed is not running.
INSTALL_TYPE is upgrade
Target_Dir:/usr/local/lsws User:nobody Group:nogroup
Admin:admin Password:NDBlNTFh AdminSSL:yes ADMIN_PORT:7080
LSINSTALL_DIR:/home/pi/LIGHTSPEED-WEBSERVER-INSTALLER/openlitespeed-1-7-12
TEMP_DIR:/tmp/lshttpd PID_FILE:/tmp/lshttpd/lshttpd.pid

-e Installing, please wait...

Admin SSL enabled!
download comamnd is wget -nv -O
2021-07-15 03:44:40 URL:http://cyberpanel.sh/?ip [14] -> "/usr/local/lsws/myip" [1]
Generating a RSA private key
.+++++
......................................................................+++++
writing new private key to 'webadmin.key'
-----
SSL host is [webadmin], use adminSSL
groupadd: group 'lsadm' already exists
useradd: user 'lsadm' already exists
download comamnd is wget -nv -O
admin_php found and mv to admin_php.bak
2021-07-15 03:44:51 URL:http://www.litespeedtech.com/packages/lsphp5_bin/i386/lsphp5 [4972304/4972304] -> "/usr/local/lsws/admin/fcgi-bin/admin_php" [1]
admin_php downloaded.
Generating key pair for web console login page, please wait ...
Generating RSA private key, 512 bit long modulus (2 primes)
....+++++++++++++++++++++++++++
......+++++++++++++++++++++++++++
e is 65537 (0x010001)
/usr/local/lsws/admin/misc/create_admin_keypair.sh: 11: /usr/local/lsws/admin/misc/create_admin_keypair.sh: ../fcgi-bin/admin_php: Exec format error
chown: cannot access '/usr/local/lsws/admin/conf/jcryption_keypair': No such file or directory
chmod: cannot access '/usr/local/lsws/admin/conf/jcryption_keypair': No such file or directory
[OK] lshttpd.service has been successfully installed!
-e Updating webcache manager, please waiting ...
Downloading latest shared code tar file...
Checking tar file md5...
Removing existing shared code directory...
Extracting downloaded shared code...
Removing local shared code tar file...
Updating lscmctl script...
Done!

-e Installation finished, Enjoy!

-e Your webAdmin password not changed.
=================================

---
---

HA - My 'Your webAdmin password' IS NOW COMPROMISED / NEEDS 'RESETTING'... !!! :)

---
---

I think this is 'the real problem':-

e is 65537 (0x010001)
/usr/local/lsws/admin/misc/create_admin_keypair.sh: 11: /usr/local/lsws/admin/misc/create_admin_keypair.sh: ../fcgi-bin/admin_php: Exec format error
chown: cannot access '/usr/local/lsws/admin/conf/jcryption_keypair': No such file or directory
chmod: cannot access '/usr/local/lsws/admin/conf/jcryption_keypair': No such file or directory

---
---

Also, 'download comamnd is wget -nv -O'
Spelling should say 'command'... :)

---
---

Think that's all I've got, currently - any help or further info would be much appreciated... :)

Cheers !!! :)

Sonix711.
 
Top