[Resolved] "Cannot Find LiteSpeed" error on CentOS 7- LSWS 5 RC3

Status
Not open for further replies.
#1
I have a freshly installed CentOS 7 box with latest updates and I am trying to install the "standard" version of Lightspeed webserver v 5.00 RC3. Below is the transcript of my install, but by the end of the install it says that it "Cannot find /usr/local/lsws/bin/litespeed" (and indeed the file is not there)
I am guessing it is because of the errors just above in the install process. I am running the install.sh script as root and I tried it even with Selinux disabled. Any ideas to help me get past this hurdle?
Does the install script create a more detailed log that I can look at?

Code:
As you are the root user, you must choose the user and group
whom the web server will be running as. For security reason, you should choose
a non-system user who does not have login shell and home directory such as
'nobody'.

User [nobody]: www
Please choose the group that the web server running as.

User 'www' is the member of following group(s):  www-data
Group [www-data]:

Please specify the port for normal HTTP service.
Port 80 is the standard HTTP port, only 'root' user is allowed to use
port 80, if you have another web server running on port 80, you need to
specify another port or stop the other web server before starting LiteSpeed
Web Server.
You can access the normal web page at http://<YOUR_HOST>:<HTTP_PORT>/

HTTP port [8088]: 80

Please specify the HTTP port for the administration web interface,
which can be accessed through http://<YOUR_HOST>:<ADMIN_PORT>/

Admin HTTP port [7080]:
Cannot find RUBY installation, remember to fix up the ruby path configuration
before you can use our easy RubyOnRails setup.


You can setup a global script handler for PHP with the pre-built PHP engine
shipped with this package now. The PHP engine runs as Fast CGI which 
outperforms Apache's mod_php.
You can always replace the pre-built PHP engine with your customized PHP
engine.

Setup up PHP [Y/n]: y
Suffix for PHP script(comma separated list):

Installing, please wait...

cp: cannot stat ‘/usr/src/lsws-5.0RC3/bin/lshttpd’: No such file or directory
chown: cannot access ‘/usr/local/lsws/bin/lshttpd.5.0RC3’: No such file or directory
chmod: cannot access ‘/usr/local/lsws/bin/lshttpd.5.0RC3’: No such file or directory
Generating key pair for web console login page, please wait ...
Generating RSA private key, 512 bit long modulus
...++++++++++++
.....++++++++++++
e is 65537 (0x10001)
PHP Deprecated:  Assigning the return value of new by reference is deprecated in /usr/local/lsws/admin/misc/genjCryptionKeyPair.php on line 76

Deprecated: Assigning the return value of new by reference is deprecated in /usr/local/lsws/admin/misc/genjCryptionKeyPair.php on line 76
PHP Strict Standards:  Non-static method RSAKeyImport::import_and_convert() should not be called statically in /usr/local/lsws/admin/misc/genjCryptionKeyPair.php on line 216

Strict Standards: Non-static method RSAKeyImport::import_and_convert() should not be called statically in /usr/local/lsws/admin/misc/genjCryptionKeyPair.php on line 216
PHP Strict Standards:  Non-static method RSAKeyImport::fromPEMString() should not be called statically in /usr/local/lsws/admin/misc/genjCryptionKeyPair.php on line 177

....
I had to delete about 20 PHP errors because the message board wont allow me to post message greater than 10000 characters.  That sucks!
....

Strict Standards: Non-static method RSAKeyImport::dec2string() should not be called statically in /usr/local/lsws/admin/misc/genjCryptionKeyPair.php on line 186
PHP Strict Standards:  Non-static method RSAKeyImport::dec2string() should not be called statically in /usr/local/lsws/admin/misc/genjCryptionKeyPair.php on line 187

Strict Standards: Non-static method RSAKeyImport::dec2string() should not be called statically in /usr/local/lsws/admin/misc/genjCryptionKeyPair.php on line 187

Congratulations! The LiteSpeed Web Server has been successfully installed.
Command line script - "/usr/local/lsws/bin/lswsctrl"
can be used to start or stop the server.

It is recommended to limit access to the web administration interface.
Right now the interface can be accessed from anywhere where this
machine can be reached over the network.

Three options are available:
  1. If the interface needs to be accessed only from this machine, just
     change the listener for the interface to only listen on the loopback
     interface - localhost(127.0.0.1).
  2. If the interface needs to be accessible from limited IP addresses or sub
     networks, then set up access control rules for the interface accordingly.
  3. If the interface has to be accessible via internet, SSL (Secure Sockets
     Layer) should be used. Please read respective HOW-TOs on SSL configuration.

To change configurations of the interface, login and click
"Interface Configuration" button on the main page.
The administration interface is located at http://localhost:<ADMIN_PORT>/
or http://<ip_or_Hostname_of_this_machine>:<ADMIN_PORT>/

Would you like to have LiteSpeed Web Server started automatically
when the server restarts [Y/n]? y

[OK] lshttpd.service has been successfully installed!
Would you like to start it right now [Y/n]? y

[ERROR] Cannot find /usr/local/lsws/bin/litespeed

[ERROR] Failed to start the web server. For trouble shooting information,
        please refer to documents in "/usr/local/lsws/docs/".
 
Last edited:
#2
As a follow up, I did look into the /usr/src/lsws-5.0RC3/bin/ directory and these are the only files I see:

Code:
[root@anara bin]# ls -al
total 40
drwxrwxr-x.  2 www  www-data  4096 Mar 26 10:18 .
drwxr-xr-x. 11 root root      4096 Mar 30 13:25 ..
-rwxrwxr-x.  1 www  www-data 18456 Mar 26 10:18 lscgid
-rwxrwxr-x.  1 www  www-data  5322 Feb 14  2014 lswsctrl
-rwxrwxr-x.  1 www  www-data   851 Dec 22  2013 wswatch.sh
Could there be something wrong with the RC3 download?
 
#3
I I have found the problem, the archive from the download page (for 5.0 RC3 Std) does not include the "lshttpd" binary file (in the bin directory). Where can I get current files for the RC3 release? Can anybody else verify this issue?

I can verify this by adding the lshttpd file (from the enterprise binary) manually to the bin directory then installing the server again. (reinstall) It completes without errors and tries to start the webserver. Since i don't have a trial license it doesn't start obviously, but it does run. So I think the archive is missing that very important file. Surprised nobody else has reported this.
 
Status
Not open for further replies.
Top