litespeedtech / openlitespeed

Our high-performance, lightweight, open source HTTP server
https://openlitespeed.org
GNU General Public License v3.0
1.18k stars 192 forks source link

OpenLiteSpeed packages without the required dependency of php #170

Open extremeshok opened 4 years ago

extremeshok commented 4 years ago

OpenLiteSpeed should be able to be installed from the repo without forcing the user to install php7.3 (lsphp73) ,ie. what if one wants to use php74 or does not want php at all (ie running lua or python)?

root@c968a7226a41:/# apt-install openlitespeed lsphp73-
Hit:1 http://archive.ubuntu.com/ubuntu bionic InRelease
Hit:2 http://security.ubuntu.com/ubuntu bionic-security InRelease                                                              
Get:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]                                                      
Ign:4 http://rpms.litespeedtech.com/debian bionic InRelease                                                         
Get:5 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Hit:6 http://rpms.litespeedtech.com/debian bionic Release
Fetched 163 kB in 1s (118 kB/s)                               
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package 'lsphp73' is not installed, so not removed
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 openlitespeed : Depends: lsphp73 but it is not going to be installed
                 Depends: lsphp73-json but it is not going to be installed
                 Depends: lsphp73-mysql but it is not going to be installed
                 Depends: lsphp73-imap but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
root@c968a7226a41:/# apt-install openlitespeed         
Hit:1 http://archive.ubuntu.com/ubuntu bionic InRelease
Hit:2 http://security.ubuntu.com/ubuntu bionic-security InRelease                             
Get:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]                     
Ign:4 http://rpms.litespeedtech.com/debian bionic InRelease                        
Hit:5 http://rpms.litespeedtech.com/debian bionic Release                
Get:6 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Fetched 163 kB in 1s (127 kB/s)                             
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libc-client2007e lsphp73 lsphp73-common lsphp73-imap lsphp73-json lsphp73-mysql lsphp73-opcache mlock rcs
Suggested packages:
  uw-mailutils php-pear php-user-cache
The following NEW packages will be installed:
  libc-client2007e lsphp73 lsphp73-common lsphp73-imap lsphp73-json lsphp73-mysql lsphp73-opcache mlock openlitespeed rcs
0 upgraded, 10 newly installed, 0 to remove and 24 not upgraded.
Need to get 17.8 MB of archives.
extremeshok commented 4 years ago

note, apt-install is my own custom wrapper for apt-get update && apt-get install ...

darkspadez commented 4 years ago

Looking at the code the reason for installing lsphp73 is to run the WebGUI of OpenLiteSpeed. It does not affect what sites run as just so you can use the WebGUI.

extremeshok commented 4 years ago

If one only wants to use php7.4 ..the 7.3 is forced to install. php7.3 should be a recommended package and not a required package. Recommended packages are easy to replace or prevent from being installed with the apt command.

Regarding the webinterface, not everyone needs or wants to use the webgui. I find it quicker to code the configs in vi.