Having issue setting up on CentOS (Amazon EC2)

#1
I am a novice to server setup so I might be performing some steps incorrectly.

I have an Amazon EC2 instance that is running CentOS 6.10 with httpd and php. These run under the user account 'apache'.

I need to install OpenLiteSpeed instead. So I followed the official instructions. However, the admin panel does not load when I visit port 7080.

I installed using the 'root' account and then again with the 'centos' user account with sudo access. Both with no luck. I have also shut down the httpd on the server so their were no port conflicts. I also added to my security group on amazon allowing all traffic to all ports.

So I am unsure why I can't load the admin panel.

Here is what displays in the error.log. I don;t understand what it means, any help if it is important info?


2019-01-25 00:17:35.120808 [INFO] [PlainConf] [httpServerConfig:] start parsing file /usr/local/lsws/conf/httpd_config.conf
2019-01-25 00:17:35.120826 [INFO] [PlainConf] [httpServerConfig:] Failed to RCS checkin conf file /usr/local/lsws/conf/httpd_config.conf0, ret 32512, error(File exists). Org command is ci -l -q -t-"/usr/local/lsws/conf/httpd_config.conf0" -mUpdate "/usr/local/lsws/conf/httpd_config.conf0" >/dev/null 2>&1.
2019-01-25 00:17:35.120830 [INFO] [PlainConf] [httpServerConfig:] module [cache] add param [checkprivatecache 1]
2019-01-25 00:17:35.120834 [INFO] [PlainConf] [httpServerConfig:] module [cache] add param [checkpubliccache 1]
2019-01-25 00:17:35.120837 [INFO] [PlainConf] [httpServerConfig:] module [cache] add param [maxcacheobjsize 10000000]
2019-01-25 00:17:35.120840 [INFO] [PlainConf] [httpServerConfig:] module [cache] add param [maxstaleage 200]
2019-01-25 00:17:35.120843 [INFO] [PlainConf] [httpServerConfig:] module [cache] add param [qscache 1]
2019-01-25 00:17:35.120846 [INFO] [PlainConf] [httpServerConfig:] module [cache] add param [reqcookiecache 1]
2019-01-25 00:17:35.120850 [INFO] [PlainConf] [httpServerConfig:] module [cache] add param [respcookiecache 1]
2019-01-25 00:17:35.120853 [INFO] [PlainConf] [httpServerConfig:] module [cache] add param [ignorereqcachectrl 1]
2019-01-25 00:17:35.120856 [INFO] [PlainConf] [httpServerConfig:] module [cache] add param [ignorerespcachectrl 0]
2019-01-25 00:17:35.120859 [INFO] [PlainConf] [httpServerConfig:] module [cache] add param [enablecache 0]
2019-01-25 00:17:35.120862 [INFO] [PlainConf] [httpServerConfig:] module [cache] add param [expireinseconds 3600]
2019-01-25 00:17:35.120865 [INFO] [PlainConf] [httpServerConfig:] module [cache] add param [enableprivatecache 0]
2019-01-25 00:17:35.120868 [INFO] [PlainConf] [httpServerConfig:] module [cache] add param [privateexpireinseconds 3600]
2019-01-25 00:17:35.120879 [NOTICE] Loading LiteSpeed/1.4.42 Open ...
2019-01-25 00:17:35.120886 [NOTICE] Using [OpenSSL 1.1.1a 20 Nov 2018]
2019-01-25 00:17:35.121590 [NOTICE] [ADMIN] server socket: uds://usr/local/lsws/admin/tmp/admin.sock.7031
2019-01-25 00:17:35.122018 [NOTICE] Recovering server socket: [*:8088]
2019-01-25 00:17:35.122046 [NOTICE] Recovering server socket: [*:7080]
2019-01-25 00:17:35.122084 [NOTICE] chroot is disabled.
2019-01-25 00:17:35.122095 [INFO] old priority: 0, new priority: 0
2019-01-25 00:17:35.122130 [INFO] [config:server:basics2] For better obscurity, server version number is hidden in the response header.
2019-01-25 00:17:35.126757 [INFO] [PlainConf] Failed to RCS checkin conf file /usr/local/lsws/conf/mime.properties0, ret 32512, error(Bad file descriptor). Org command is ci -l -q -t-"/usr/local/lsws/conf/mime.properties0" -mUpdate "/usr/local/lsws/conf/mime.properties0" >/dev/null 2>&1.
2019-01-25 00:17:35.127088 [NOTICE] [PID: 10839]: forked cgid: 10843
2019-01-25 00:17:35.127183 [INFO] [PlainConf] [adminConfig:] start parsing file /usr/local/lsws/admin/conf/admin_config.conf
2019-01-25 00:17:35.131254 [INFO] [PlainConf] [adminConfig:] Failed to RCS checkin conf file /usr/local/lsws/admin/conf/admin_config.conf0, ret 32512, error(Address already in use). Org command is ci -l -q -t-"/usr/local/lsws/admin/conf/admin_config.conf0" -mUpdate "/usr/local/lsws/admin/conf/admin_config.conf0" >/dev/null 2>&1.
2019-01-25 00:17:35.132087 [INFO] [Module: modcompress 1.1] has been initialized successfully
2019-01-25 00:17:35.132168 [INFO] [Module: moddecompress 1.1] has been initialized successfully
2019-01-25 00:17:35.132242 [INFO] [Module: cache 1.58] has been initialized successfully
2019-01-25 00:17:35.134124 [NOTICE] The maximum number of file descriptor limit is set to 30000.
2019-01-25 00:17:35.135296 [INFO] [PlainConf] [virtualHostConfig:] start parsing file /usr/local/lsws/conf/vhosts/Example/vhconf.conf
2019-01-25 00:17:35.139939 [INFO] [PlainConf] [virtualHostConfig:] Failed to RCS checkin conf file /usr/local/lsws/conf/vhosts/Example/vhconf.conf0, ret 32512, error(No such file or directory). Org command is ci -l -q -t-"/usr/local/lsws/conf/vhosts/Example/vhconf.conf0" -mUpdate "/usr/local/lsws/conf/vhosts/Example/vhconf.conf0" >/dev/null 2>&1.
2019-01-25 00:17:35.140031 [INFO] [PlainConf] [context:/] rewrite [] add rules [rewritefile .htaccess]
2019-01-25 00:17:35.140254 [INFO] [config:server:vhosts:vhost:Example] config conxtext /.
2019-01-25 00:17:35.140313 [INFO] RewriteFile [.htaccess] parsed, return 0.
2019-01-25 00:17:35.140320 [INFO] [config:server:vhosts:vhost:Example] config conxtext /blocked/.
2019-01-25 00:17:35.140329 [INFO] [config:server:vhosts:vhost:Example] config conxtext /cgi-bin/.
2019-01-25 00:17:35.140351 [INFO] [config:server:vhosts:vhost:Example] config conxtext /docs/.
2019-01-25 00:17:35.140367 [INFO] [config:server:vhosts:vhost:Example] config conxtext /protected/.
2019-01-25 00:17:35.140421 [INFO] [PlainConf] [virtualHostTemplate:] start parsing file /usr/local/lsws/conf/templates/ccl.conf
2019-01-25 00:17:35.144795 [INFO] [PlainConf] [virtualHostTemplate:] Failed to RCS checkin conf file /usr/local/lsws/conf/templates/ccl.conf0, ret 32512, error(Invalid argument). Org command is ci -l -q -t-"/usr/local/lsws/conf/templates/ccl.conf0" -mUpdate "/usr/local/lsws/conf/templates/ccl.conf0" >/dev/null 2>&1.
2019-01-25 00:17:35.144881 [INFO] [PlainConf] [context:/] rewrite [] add rules [rewritefile .htaccess]
2019-01-25 00:17:35.144916 [INFO] [PlainConf] [virtualHostTemplate:] start parsing file /usr/local/lsws/conf/templates/phpsuexec.conf
2019-01-25 00:17:35.149353 [INFO] [PlainConf] [virtualHostTemplate:] Failed to RCS checkin conf file /usr/local/lsws/conf/templates/phpsuexec.conf0, ret 32512, error(Invalid argument). Org command is ci -l -q -t-"/usr/local/lsws/conf/templates/phpsuexec.conf0" -mUpdate "/usr/local/lsws/conf/templates/phpsuexec.conf0" >/dev/null 2>&1.
2019-01-25 00:17:35.149437 [INFO] [PlainConf] [context:/] rewrite [] add rules [rewritefile .htaccess]
2019-01-25 00:17:35.149489 [INFO] [PlainConf] [virtualHostTemplate:] start parsing file /usr/local/lsws/conf/templates/rails.conf
2019-01-25 00:17:35.153772 [INFO] [PlainConf] [virtualHostTemplate:] Failed to RCS checkin conf file /usr/local/lsws/conf/templates/rails.conf0, ret 32512, error(Invalid argument). Org command is ci -l -q -t-"/usr/local/lsws/conf/templates/rails.conf0" -mUpdate "/usr/local/lsws/conf/templates/rails.conf0" >/dev/null 2>&1.
2019-01-25 00:17:35.153859 [INFO] [PlainConf] [context:/] rewrite [] add rules [rewritefile .htaccess]
2019-01-25 00:17:35.153891 [NOTICE] [ZConfManager] No VHosts added, do not send!
2019-01-25 00:17:35.154158 [NOTICE] [AutoRestarter] new child process with pid=10859 is forked!
2019-01-25 00:17:35.154314 [NOTICE] [AutoRestarter] new child process with pid=10860 is forked!
2019-01-25 00:17:35.154618 [INFO] Stop listener *:7080.
2019-01-25 00:17:35.154928 [NOTICE] [child: 10860] Successfully change current user to nobody
2019-01-25 00:17:35.154945 [NOTICE] Child: 10860] Core dump is enabled.
2019-01-25 00:17:35.154974 [NOTICE] [Child: 10860] Setup swapping space...
2019-01-25 00:17:35.155014 [NOTICE] [Child: 10860] LiteSpeed/1.4.42 Open starts successfully!
2019-01-25 00:17:35.155007 [NOTICE] [child: 10859] Successfully change current user to nobody
2019-01-25 00:17:35.155036 [NOTICE] Child: 10859] Core dump is enabled.
2019-01-25 00:17:35.155071 [NOTICE] [Child: 10859] Setup swapping space...
2019-01-25 00:17:35.155109 [NOTICE] [Child: 10859] LiteSpeed/1.4.42 Open starts successfully!
 
#2
Turned out to be firewall settings ons erver

Needed to run
sudo iptables -I INPUT -p tcp --dport 80 -j ACCEPT
sudo iptables -I INPUT -p tcp --dport 443 -j ACCEPT
sudo iptables -I INPUT -p tcp --dport 7080 -j ACCEPT
 
Top