Openlitespeed Problem. Can't open my domains

andrysalim

New member
Joined
Jun 24, 2020
Messages
5
I'm considered newbie to all this server stuff and am learning using DirectAdmin.

I've just installed DirectAdmin on CentOS 8.1. Everything runs great. I can access everything and I can open my website.

However, problem occurs when I install openlitespeed. The installation itself runs well following guide from https://help.directadmin.com/item.php?id=2095

I can access the DA web control panel on port 2222 and Openlitespeed web panel on port 7080. The issue is I can't open any of my domains.

When I try to open http://example.com or https://example.com on my browser, it just won't open. Before installing openlitespeed, I can confirm that I can open both of them.

Now, where's the problem and how to fix this? Been searching here and there without any solution. Many thanks.
 
Hey and welcome to DA and forum.

If by chance you had or have multiple php versions set make sure those are all set to lsphp. They are set in the options.conf file.
If yes you can add set commands like in the example
./build set php2_mode lsphp
3 and 4 as well
note
If you have more than 1 php version, set php2_mode lsphp for all other php#_modes.
Then rerun all the build cmds
 
Hi, I'm using this script for openlitespeed:

cd /usr/local/directadmin/custombuild
./build update
./build set webserver openlitespeed
./build set mod_ruid2 no
./build set php1_mode lsphp
./build set php1_release 7.2
./build set php2_mode lsphp
./build set php2_release 7.3
./build set php3_mode lsphp
./build set php3_release 7.4
./build openlitespeed
./build php n
./build rewrite_confs

Should have taken care of that? I'm even desperate and using ./build all in case I miss something but the problem still there.

Still can't access my websites.
 
The options.conf contents:
PHP Settings
php1_release=7.2
php1_mode=lsphp
php2_release=7.3
php2_mode=lsphp
php3_release=7.4
php3_mode=lsphp
php4_release=no
php4_mode=php-fpm
secure_php=yes
php_ini=no
php_timezone=UTC
php_ini_type=production
x_mail_header=yes
 
It you still get any issues after rerun please inspect domain access and error logs as well as main webserver access and error logs. Also, please make sure that openlitespeed is indeed nunning and listening on 80 and 443 ports, you may do it with the following command:

netstat -lnp|grep -E ':80|:443'

Also, please make sure that only lsphp are running (you don't see any php-fpm for example), you may view all processes with:

ps aux

command.

Lastly, if there is any old lsphp process hanging which survives openlitespeed restart, kill it manually with killall -9 lsphp command, as there may be small possibility that php is stuck in detached mode.
 
Problem still there...

netstat -lnp|grep -E ':80|:443'

tcp 0 0 123.123.123.123:80 0.0.0.0:* LISTEN 1228767/openlitespe
tcp 0 0 123.123.123.123:443 0.0.0.0:* LISTEN 1228767/openlitespe
udp 0 0 123.123.123.123:443 0.0.0.0:* 1228767/openlitespe
udp 0 0 123.123.123.123:443 0.0.0.0:* 1228767/openlitespe

These are the results.. 123.123.123.123 (I masked my ip address). I assume it's listening.

ps aux found not php-fpm..

killall -9 lsphp gives lsphp: no process found
 
Did you set mode 4 to lsphp?

Try this one below.

Code:
cd /usr/local/directadmin/custombuild
./build set_fastest_quiet
./build clean
./build update
./build set webserver openlitespeed
./build set mod_ruid2 no
./build set php1_mode lsphp
./build set php1_release 7.2
./build set php2_mode lsphp
./build set php2_release 7.3
./build set php3_mode lsphp
./build set php3_release 7.4
./build set php4_mode lsphp
./build openlitespeed
./build php n
./build rewrite_confs
 
Hi Brent,

Done that and still have the problem. I even rebuild my server from scratch and do a clean install of directadmin and openlitespeed, same problem.
 
Humm. That is so weird I have CentOS 8 and just installed it for a test. It works just fine. You must have something conflicting or missing.

If you have support you might open a ticket.
 
Back
Top