[Closed] Can't determine the Home of LiteSpeed Web Server, exit!

Status
Not open for further replies.
#1
On Linux Mint, the install ran well.

When I run litespeed I receive an error "Can't determine the Home of LiteSpeed Web Server, exit!".

I can't find a Home variable in the conf file.

Help appreciated.
 

Pong

Administrator
Staff member
#6
Did you run as "root" user all the time during the installation? If it is on your localhost, it may be impossible for us to check, unless you tell every steps you did for us to understand more. or you can try a cloud VPS to ensure your installation is correct. "cannot determine the Home of LiteSpeed Web Server " is very unusual error since you will normal set the path yourself "default to /usr/local/lsws/ "during the installation.

Maybe you can record a video for all you did to understand your situation.
 
#8
Hi,

This is the result of sudo ./install.sh & /usr/local/lsws/bin/lswsctrl start

Code:
~/Downloads/openlitespeed$ sudo ./install.sh
INSTALL_TYPE is reinstall
Cannot find RUBY installation, remember to fix up the ruby path configuration
before you can use our easy RubyOnRails setup.

Target_Dir:/usr/local/lsws User:nobody Group:nogroup
Admin:admin Password:123456 AdminSSL:yes ADMIN_PORT:7080
LSINSTALL_DIR:/home/insight/Downloads/openlitespeed
TEMP_DIR:/tmp/lshttpd PID_FILE:/tmp/lshttpd/lshttpd.pid

-e Installing, please wait...

Admin SSL enabled!
./_in.sh: 1102: ./_in.sh: source: not found
Generating a 2048 bit RSA private key
...................................................................+++
..................................+++
writing new private key to 'privkey.pem'
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [AU]:State or Province Name (full name) [Some-State]:Locality Name (eg, city) []:Organization Name (eg, company) [Internet Widgits Pty Ltd]:Organizational Unit Name (eg, section) []:Common Name (e.g. server FQDN or YOUR name) []:Email Address []:
Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:An optional company name []:
Certificate Request:
    Data:
        Version: 1 (0x0)
        Subject: C = US, ST = New Jersey, L = Virtual, O = LiteSpeedCommunity, OU = Testing, CN = webadmin
        Subject Public Key Info:
            Public Key Algorithm: rsaEncryption
                Public-Key: (2048 bit)
                Modulus:
                    xxxx
                Exponent: 65537 (0x10001)
        Attributes:
            a0:00
    Signature Algorithm: sha256WithRSAEncryption
         xxxx

writing RSA key
Signature ok
subject=C = US, ST = New Jersey, L = Virtual, O = LiteSpeedCommunity, OU = Testing, CN = webadmin
Getting Private key
SSL host is [webadmin], use adminSSL
groupadd: group 'lsadm' already exists
useradd: user 'lsadm' already exists
DLCMD is wget -nv -O

2019-04-12 15:09:36 URL:http://www.litespeedtech.com/packages/lsphp5_bin/x86_64/lsphp5 [4902224/4902224] -> "/usr/local/lsws/admin/fcgi-bin/admin_php" [1]
admin_php downloaded.
--2019-04-12 15:09:36--  http://rpms.litespeedtech.com/debian/lst_debian_repo.gpg
Resolving rpms.litespeedtech.com (rpms.litespeedtech.com)... 34.210.113.18
Connecting to rpms.litespeedtech.com (rpms.litespeedtech.com)|34.210.113.18|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1198 (1.2K) [application/octet-stream]
Saving to: '/etc/apt/trusted.gpg.d/lst_debian_repo.gpg’

/etc/apt/trusted.gpg.d/lst 100%[======================================>]   1.17K  --.-KB/s    in 0.002s 

2019-04-12 15:09:37 (660 KB/s) - '/etc/apt/trusted.gpg.d/lst_debian_repo.gpg’ saved [1198/1198]

--2019-04-12 15:09:37--  http://rpms.litespeedtech.com/debian/lst_repo.gpg
Resolving rpms.litespeedtech.com (rpms.litespeedtech.com)... 34.210.113.18
Connecting to rpms.litespeedtech.com (rpms.litespeedtech.com)|34.210.113.18|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2336 (2.3K) [application/octet-stream]
Saving to: '/etc/apt/trusted.gpg.d/lst_repo.gpg’

/etc/apt/trusted.gpg.d/lst 100%[======================================>]   2.28K  --.-KB/s    in 0.002s 

2019-04-12 15:09:37 (1.09 MB/s) - '/etc/apt/trusted.gpg.d/lst_repo.gpg’ saved [2336/2336]

Ign:1 http://rpms.litespeedtech.com/debian bionic InRelease                                             
...

Creating config file /usr/local/lsws/lsphp71/etc/php/7.1/mods-available/imap.ini with new version
WARNING: Module ALL ini file doesn't exist under /etc/php/7.2/mods-available
WARNING: Module ALL ini file doesn't exist under /etc/php/7.2/mods-available
WARNING: Module ALL ini file doesn't exist under /etc/php/7.2/mods-available
WARNING: Module ALL ini file doesn't exist under /etc/php/7.2/mods-available
WARNING: Module imap ini file doesn't exist under /etc/php/7.2/mods-available
WARNING: Module imap ini file doesn't exist under /etc/php/7.2/mods-available
Setting up lsphp71-opcache (7.1.28-1+bionic) ...

Creating config file /usr/local/lsws/lsphp71/etc/php/7.1/mods-available/opcache.ini with new version
WARNING: Module ALL ini file doesn't exist under /etc/php/7.2/mods-available
WARNING: Module ALL ini file doesn't exist under /etc/php/7.2/mods-available
WARNING: Module ALL ini file doesn't exist under /etc/php/7.2/mods-available
WARNING: Module ALL ini file doesn't exist under /etc/php/7.2/mods-available
Setting up libmcrypt4 (2.5.8-3.3) ...
Setting up lsphp71-mysql (7.1.28-1+bionic) ...

Creating config file /usr/local/lsws/lsphp71/etc/php/7.1/mods-available/mysqli.ini with new version
WARNING: Module ALL ini file doesn't exist under /etc/php/7.2/mods-available
WARNING: Module ALL ini file doesn't exist under /etc/php/7.2/mods-available
WARNING: Module ALL ini file doesn't exist under /etc/php/7.2/mods-available
WARNING: Module ALL ini file doesn't exist under /etc/php/7.2/mods-available

Creating config file /usr/local/lsws/lsphp71/etc/php/7.1/mods-available/pdo_mysql.ini with new version
WARNING: Module ALL ini file doesn't exist under /etc/php/7.2/mods-available
WARNING: Module ALL ini file doesn't exist under /etc/php/7.2/mods-available
WARNING: Module ALL ini file doesn't exist under /etc/php/7.2/mods-available
WARNING: Module ALL ini file doesn't exist under /etc/php/7.2/mods-available
Setting up lsphp71-json (7.1.28-1+bionic) ...

Creating config file /usr/local/lsws/lsphp71/etc/php/7.1/mods-available/json.ini with new version
WARNING: Module ALL ini file doesn't exist under /etc/php/7.2/mods-available
WARNING: Module ALL ini file doesn't exist under /etc/php/7.2/mods-available
WARNING: Module ALL ini file doesn't exist under /etc/php/7.2/mods-available
WARNING: Module ALL ini file doesn't exist under /etc/php/7.2/mods-available
Setting up lsphp71 (7.1.28-1+bionic) ...

Creating config file /usr/local/lsws/lsphp71/etc/php/7.1/litespeed/php.ini with new version
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Generating key pair for web console login page, please wait ...
Generating RSA private key, 512 bit long modulus
.......++++++++++++
....++++++++++++
e is 65537 (0x010001)
[OK] The startup script has been successfully installed!

-e Installation finished, Enjoy!

insight@insight-virtual-machine:~/Downloads/openlitespeed$ litespeed
litespeed: command not found
insight@insight-virtual-machine:~/Downloads/openlitespeed$ /usr/local/lsws/bin/lswsctrl start
/usr/local/lsws/bin/lswsctrl: 223: /usr/local/lsws/bin/lswsctrl: cannot create /usr/local/lsws/bin/../logs/lsrestart.log: Permission denied
/usr/local/lsws/bin/lswsctrl: 224: /usr/local/lsws/bin/lswsctrl: cannot create /usr/local/lsws/bin/../logs/lsrestart.log: Permission denied
Can't determine the Home of LiteSpeed Web Server, exit!
[ERROR] Failed to start litespeed!
/usr/local/lsws/bin/lswsctrl: 181: /usr/local/lsws/bin/lswsctrl: cannot create /usr/local/lsws/bin/../logs/lsrestart.log: Permission denied
litespeed: no process found
/usr/local/lsws/bin/lswsctrl: 185: /usr/local/lsws/bin/lswsctrl: cannot create /usr/local/lsws/bin/../logs/lsrestart.log: Permission denied
Can't determine the Home of LiteSpeed Web Server, exit!
[ERROR] Failed to start litespeed!
 
Last edited by a moderator:
#12
That's great, thank you.

In OpenLiteSpeed admin, I have created a new vhost:
ls1.png

I have restarted OpenLiteSpeed and opened www.litespeed.local:8088 in the browser, but it displays:

Congratulations
You have successfully installed the OpenLiteSpeed Web Server.
& more.

This content is not in the index.html file I created in /usr/local/lsws/docs/www.litespeed.local/html.

Help appreciated.
 
Last edited by a moderator:
Status
Not open for further replies.
Top