503 in preview website

hi cyberpanel community,

I hope things are going well for you

first im success create some website and workss fine, and then i create new one got 503 in preview, when i check other website now other website show 503 too

when i check error log, i just get this

2022-11-09 14:53:09.470683 [INFO] [35537] [PlainConf] [virtualHostConfig:] start parsing file /usr/local/lsws/conf/vhosts/mywebsite.com/vhost.conf
2022-11-09 14:53:09.473703 [INFO] [35537] [PlainConf] [virtualHostConfig:] Finished parsing file /usr/local/lsws/conf/vhosts/mywebsite.com/vhost.conf
2022-11-09 14:53:09.473718 [INFO] [35537] [PlainConf] [virtualHostConfig:] module [cache] add param [storagepath /usr/local/lsws/cachedata/$VH_NAME]
2022-11-09 14:53:09.474235 [INFO] [35537] [config:server:vhosts:vhost:mywebsite.com] config context /.well-known/acme-challenge.

hope someone can help me

thank you
regards

Welcome @kurakara Happy you are here

Post the result of du -hs /tmp/

Do you have other websites running that consume PHP or WordPress?

hi @josephgodwinke
thank you for respon this topics

this is result for du -hs /tmp/

du: cannot read directory ‘/tmp/lshttpd/swap’: Bad message
180K /tmp/

yes i have it before, but i remove all the file now, just index.html on public_html, i dont have any website that consume WordPress

Run this command nano /usr/local/lsws/logs/error.log take screenshot or copy paste result

this is the last error i got

2022-11-09 16:54:41.683731 [WARN] [75876] [config:server:vhosts:vhost:Example] Uid of /usr/local/lsws/Example/html/ is 0, smaller than minimum requirement 11, use server uid!

2022-11-09 16:54:41.683737 [WARN] [75876] [config:server:vhosts:vhost:Example] Gid of /usr/local/lsws/Example/html/ is 65534, smaller than minimum requirement 10, use server gid!

2022-11-09 16:54:41.683944 [INFO] [75876] [config:server:vhosts:vhost:Example] config context /.

2022-11-09 16:54:41.683969 [INFO] [75876] RewriteFile [.htaccess] parsed, return 0.

2022-11-09 16:54:41.683973 [INFO] [75876] [config:server:vhosts:vhost:Example] config context /blocked/.

2022-11-09 16:54:41.683978 [INFO] [75876] [config:server:vhosts:vhost:Example] config context /cgi-bin/.

2022-11-09 16:54:41.683986 [INFO] [75876] [config:server:vhosts:vhost:Example] config context /docs/.

2022-11-09 16:54:41.683994 [INFO] [75876] [config:server:vhosts:vhost:Example] config context /protected/.

2022-11-09 16:54:41.684119 [INFO] [75876] [PlainConf] [virtualHostConfig:] start parsing file /usr/local/lsws/conf/vhosts/mywebsitefirst.com/vhost.conf

2022-11-09 16:54:41.687384 [INFO] [75876] [PlainConf] [virtualHostConfig:] Finished parsing file /usr/local/lsws/conf/vhosts/mywebsitefirst.com/vhost.conf

2022-11-09 16:54:41.687396 [INFO] [75876] [PlainConf] [virtualHostConfig:] module [cache] add param [storagepath /usr/local/lsws/cachedata/$VH_NAME]

2022-11-09 16:54:41.688141 [NOTICE] [75876] [SSL_CTX: 0x2ba7dd0] OCSP Stapling can’t be enabled: [OCSP] /etc/letsencrypt/live/mywebsitefirst.com/fullchain.pem: X509_STORE_CTX_get1_issuer failed!.

2022-11-09 16:54:41.688396 [INFO] [75876] [config:server:vhosts:vhost:mywebsitefirst.com] config context /.well-known/acme-challenge.

2022-11-09 16:54:41.688496 [INFO] [75876] [PlainConf] [virtualHostConfig:] start parsing file /usr/local/lsws/conf/vhosts/mail.mywebsitefirst.com/vhost.conf

2022-11-09 16:54:41.691266 [INFO] [75876] [PlainConf] [virtualHostConfig:] Finished parsing file /usr/local/lsws/conf/vhosts/mail.mywebsitefirst.com/vhost.conf

2022-11-09 16:54:41.691297 [INFO] [75876] [PlainConf] [virtualHostConfig:] module [cache] add param [storagepath /usr/local/lsws/cachedata/$VH_NAME]

2022-11-09 16:54:41.691470 [ERROR] [75876] [config:server:vhosts:vhost:mail.mywebsitefirst.com:epsr:mywe37932461.655340] invalid path - /usr/local/lsws/lsphp73/bin/lsphp, it cannot be started by >

2022-11-09 16:54:41.691497 [ERROR] [75876] [config:server:vhosts:vhost:mail.mywebsitefirst.com:scripthandler:add] HttpMime::addMimeHandler getHandler with name mywe37932461 ret (nil)

2022-11-09 16:54:41.691501 [ERROR] [75876] [config:server:vhosts:vhost:mail.mywebsitefirst.com:scripthandler:add] use static file handler for suffix [php]

2022-11-09 16:54:41.691680 [INFO] [75876] [config:server:vhosts:vhost:mail.mywebsitefirst.com] config context /.well-known/acme-challenge.

2022-11-09 16:54:41.691756 [WARN] [75876] Path for vhost root is not accessible: /home/mywebsitetry.dev/

2022-11-09 16:54:41.691766 [INFO] [75876] [PlainConf] [virtualHostConfig:] start parsing file /usr/local/lsws/conf/vhosts/mywebsitesecond.com/vhost.conf

2022-11-09 16:54:41.695125 [INFO] [75876] [PlainConf] [virtualHostConfig:] Finished parsing file /usr/local/lsws/conf/vhosts/mywebsitesecond.com/vhost.conf

2022-11-09 16:54:41.695138 [INFO] [75876] [PlainConf] [virtualHostConfig:] module [cache] add param [storagepath /usr/local/lsws/cachedata/$VH_NAME]

2022-11-09 16:54:41.695794 [NOTICE] [75876] [SSL_CTX: 0x2be8af0] OCSP Stapling can’t be enabled: [OCSP] /etc/letsencrypt/live/mywebsitesecond.com/fullchain.pem: X509_STORE_CTX_get1_issuer failed!.

2022-11-09 16:54:41.696053 [INFO] [75876] [config:server:vhosts:vhost:mywebsitesecond.com] config context /.well-known/acme-challenge.

2022-11-09 16:54:41.696148 [INFO] [75876] [PlainConf] [virtualHostConfig:] start parsing file /usr/local/lsws/conf/vhosts/mail.mywebsitesecond.com/vhost.conf

2022-11-09 16:54:41.699397 [INFO] [75876] [PlainConf] [virtualHostConfig:] Finished parsing file /usr/local/lsws/conf/vhosts/mail.mywebsitesecond.com/vhost.conf

2022-11-09 16:54:41.699409 [INFO] [75876] [PlainConf] [virtualHostConfig:] module [cache] add param [storagepath /usr/local/lsws/cachedata/$VH_NAME]

2022-11-09 16:54:41.699585 [ERROR] [75876] [config:server:vhosts:vhost:mail.mywebsitesecond.com:epsr:mywen34366381.655340] invalid path - /usr/local/lsws/lsphp73/bin/lsphp, it cannot be started by>

2022-11-09 16:54:41.699611 [ERROR] [75876] [config:server:vhosts:vhost:mail.mywebsitesecond.com:scripthandler:add] HttpMime::addMimeHandler getHandler with name mywen34366381 ret (nil)

2022-11-09 16:54:41.699614 [ERROR] [75876] [config:server:vhosts:vhost:mail.mywebsitesecond.com:scripthandler:add] use static file handler for suffix [php]

2022-11-09 16:54:41.700051 [NOTICE] [75876] [SSL_CTX: 0x2bf0e10] OCSP Stapling can’t be enabled: [OCSP] /etc/letsencrypt/live/mail.mywebsitesecond.com/fullchain.pem: X509_STORE_CTX_get1_issuer fai>

2022-11-09 16:54:41.700312 [INFO] [75876] [config:server:vhosts:vhost:mail.mywebsitesecond.com] config context /.well-known/acme-challenge.

2022-11-09 16:54:41.700410 [INFO] [75876] [PlainConf] [virtualHostConfig:] start parsing file /usr/local/lsws/conf/vhosts/mywebsitethird.com/vhost.conf

2022-11-09 16:54:41.703694 [INFO] [75876] [PlainConf] [virtualHostConfig:] Finished parsing file /usr/local/lsws/conf/vhosts/mywebsitethird.com/vhost.conf

2022-11-09 16:54:41.703705 [INFO] [75876] [PlainConf] [virtualHostConfig:] module [cache] add param [storagepath /usr/local/lsws/cachedata/$VH_NAME]

2022-11-09 16:54:41.704435 [NOTICE] [75876] [SSL_CTX: 0x2c076a0] OCSP Stapling can’t be enabled: [OCSP] /etc/letsencrypt/live/mywebsitethird.com/fullchain.pem: X509_STORE_CTX_get1_issuer failed!.

2022-11-09 16:54:41.704664 [INFO] [75876] [config:server:vhosts:vhost:mywebsitethird.com] config context /.well-known/acme-challenge.

2022-11-09 16:54:41.704759 [INFO] [75876] [PlainConf] [virtualHostConfig:] start parsing file /usr/local/lsws/conf/vhosts/mywebsite.com/vhost.conf

2022-11-09 16:54:41.707583 [INFO] [75876] [PlainConf] [virtualHostConfig:] Finished parsing file /usr/local/lsws/conf/vhosts/mywebsite.com/vhost.conf

2022-11-09 16:54:41.707593 [INFO] [75876] [PlainConf] [virtualHostConfig:] module [cache] add param [storagepath /usr/local/lsws/cachedata/$VH_NAME]

2022-11-09 16:54:41.708047 [INFO] [75876] [config:server:vhosts:vhost:mywebsite.com] config context /.well-known/acme-challenge.

Run this command chmod -R 777 /tmp/lshttpd && systemctl restart lscpd

i get this error

chmod: cannot read directory ‘/tmp/lshttpd/swap’: Bad message

when i go to swap directory and run ls command

ls: reading directory ‘.’: Bad message

i think i found something

when i go to services status on cyberpanel openlitespeed laways not running, when i running its still not running,

and i get this message when i check on console

● lshttpd.service - OpenLiteSpeed HTTP Server
Loaded: loaded (/etc/systemd/system/lshttpd.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: signal) since Wed 2022-11-09 19:24:18 CST; 3s ago
Process: 126754 ExecStart=/usr/local/lsws/bin/lswsctrl start (code=exited, status=0/SUCCESS)
Main PID: 126795 (code=killed, signal=SEGV)
CGroup: /system.slice/lshttpd.service

Nov 09 19:24:18 systemd[1]: lshttpd.service: Failed with result ‘signal’.

it is normal?

Service is dead. You need to upgrade your copy of CyberPanel

sh <(curl https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgrade.sh || wget -O - https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgrade.sh)

hello, thank you for your help, i have success upgrade cyberpanel
CyberPanel Upgraded

but when Starting OpenLiteSpeed HTTP still get lshttpd.service: Failed with result ‘signal’

my cyberpanel version is Latest Version

i have found this too

invalid path - /usr/local/lsws/lsphp73/bin/lsphp

when i check the directory /usr/local/lsws
i just found lsphp74, lsphp73 not exist


Go to https://SERVER_URL:7080 and login and compile PHP for those versions

hi i have install lsphp73 and now fix the error, but openlitespeed still won’t start

systemctl status lsws

● lshttpd.service - OpenLiteSpeed HTTP Server
Loaded: loaded (/etc/systemd/system/lshttpd.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: signal) since Thu 2022-11-10 10:15:42 CST; 469ms ago
Process: 475372 ExecStart=/usr/local/lsws/bin/lswsctrl start (code=exited, status=0/SUCCESS)
Main PID: 475425 (code=killed, signal=SEGV)
CGroup: /system.slice/lshttpd.service
└─475426 openlitespeed (lscgid)

Nov 10 10:15:42 systemd[1]: lshttpd.service: Failed with result ‘signal’.

and then i run

/usr/local/lsws/bin/openlitespeed -t

2022-11-10 10:16:10.943361 [WARN] [475612] [config:server:vhosts:vhost:Example] Uid of /usr/local/lsws/Example/html/ is 0, smaller than minimum requirement 11, use server uid!
2022-11-10 10:16:10.943434 [WARN] [475612] [config:server:vhosts:vhost:Example] Gid of /usr/local/lsws/Example/html/ is 65534, smaller than minimum requirement 10, use server gid!

i still don’t get it what make openlitespeed won’t start

@kurakara please post contents of /usr/local/lsws/logs/error.log

this is the last error message

/usr/local/lsws/logs/error.log
2022-11-10 16:18:49.032847 [INFO] [81878] [PlainConf] [virtualHostConfig:] start parsing file /usr/local/lsws/conf/vhosts/mywebsitefirst.cn/vhost.conf
2022-11-10 16:18:49.036360 [INFO] [81878] [PlainConf] [virtualHostConfig:] Finished parsing file /usr/local/lsws/conf/vhosts/mywebsitefirst.cn/vhost.conf
2022-11-10 16:18:49.036387 [INFO] [81878] [PlainConf] [virtualHostConfig:] module [cache] add param [storagepath /usr/local/lsws/cachedata/$VH_NAME]
2022-11-10 16:18:49.037147 [NOTICE] [81878] [SSL_CTX: 0x2f0ff60] OCSP Stapling can't be enabled: [OCSP] /etc/letsencrypt/live/mywebsitefirst.cn/fullchain.pem: X509_STORE_CTX_get1_issuer failed!.
2022-11-10 16:18:49.037391 [INFO] [81878] [config:server:vhosts:vhost:mywebsitefirst.cn] config context /.well-known/acme-challenge.
2022-11-10 16:18:49.037494 [INFO] [81878] [PlainConf] [virtualHostConfig:] start parsing file /usr/local/lsws/conf/vhosts/mywebsitesecond.cn/vhost.conf
2022-11-10 16:18:49.040931 [INFO] [81878] [PlainConf] [virtualHostConfig:] Finished parsing file /usr/local/lsws/conf/vhosts/mywebsitesecond.cn/vhost.conf
2022-11-10 16:18:49.040953 [INFO] [81878] [PlainConf] [virtualHostConfig:] module [cache] add param [storagepath /usr/local/lsws/cachedata/$VH_NAME]
2022-11-10 16:18:49.041679 [NOTICE] [81878] [SSL_CTX: 0x2f1fc60] OCSP Stapling can't be enabled: [OCSP] /etc/letsencrypt/live/mywebsitesecond.cn/fullchain.pem: X509_STORE_CTX_get1_issuer failed!.
2022-11-10 16:18:49.041894 [INFO] [81878] [config:server:vhosts:vhost:mywebsitesecond.cn] config context /.well-known/acme-challenge.
2022-11-10 16:18:49.041995 [INFO] [81878] [PlainConf] [virtualHostConfig:] start parsing file /usr/local/lsws/conf/vhosts/mywebsitethird.dev/vhost.conf
2022-11-10 16:18:49.045313 [INFO] [81878] [PlainConf] [virtualHostConfig:] Finished parsing file /usr/local/lsws/conf/vhosts/mywebsitethird.dev/vhost.conf
2022-11-10 16:18:49.045330 [INFO] [81878] [PlainConf] [virtualHostConfig:] module [cache] add param [storagepath /usr/local/lsws/cachedata/$VH_NAME]
2022-11-10 16:18:49.046031 [NOTICE] [81878] [SSL_CTX: 0x2f2f750] OCSP Stapling can't be enabled: [OCSP] /etc/letsencrypt/live/mywebsitethird.dev/fullchain.pem: X509_STORE_CTX_get1_issuer failed>
2022-11-10 16:18:49.046222 [INFO] [81878] [config:server:vhosts:vhost:mywebsitethird.dev] config context /.well-known/acme-challenge.
2022-11-10 16:18:49.046320 [INFO] [81878] [PlainConf] [virtualHostConfig:] start parsing file /usr/local/lsws/conf/vhosts/mail.mywebsitethird.dev/vhost.conf
2022-11-10 16:18:49.046341 [INFO] [81878] [PlainConf] [virtualHostConfig:] File /usr/local/lsws/conf/vhosts/mail.mywebsitethird.dev/vhost.conf loaded, use memory in hashT, size 2235.
2022-11-10 16:18:49.049388 [INFO] [81878] [PlainConf] [virtualHostConfig:] Finished parsing file /usr/local/lsws/conf/vhosts/mail.mywebsitethird.dev/vhost.conf
2022-11-10 16:18:49.049406 [INFO] [81878] [PlainConf] [virtualHostConfig:] module [cache] add param [storagepath /usr/local/lsws/cachedata/$VH_NAME]
2022-11-10 16:18:49.050042 [NOTICE] [81878] [SSL_CTX: 0x2f3dd40] OCSP Stapling can't be enabled: [OCSP] /etc/letsencrypt/live/mail.mywebsitethird.dev/fullchain.pem: X509_STORE_CTX_get1_issuer f>
2022-11-10 16:18:49.050142 [INFO] [81878] [config:server:vhosts:vhost:mail.mywebsitethird.dev] config context /.well-known/acme-challenge.

You have OSCP stapling errors but ignore those for now. Have you tried to restart lsws systemctl restart lsws

yes and i check status

● lshttpd.service - OpenLiteSpeed HTTP Server
     Loaded: loaded (/etc/systemd/system/lshttpd.service; enabled; vendor preset: enabled)
     Active: activating (start) since Thu 2022-11-10 17:07:56 CST; 1min 10s ago
    Process: 96541 ExecStart=/usr/local/lsws/bin/lswsctrl start (code=exited, status=0/SUCCESS)
     CGroup: /system.slice/lshttpd.service

Nov 10 17:07:56 systemd[1]: Starting OpenLiteSpeed HTTP Server...
Nov 10 17:07:57 lswsctrl[96541]: [OK] litespeed: pid=96577.
Nov 10 17:08:01 lswsctrl[96541]: [OK] litespeed: pid=96600.
Nov 10 17:08:01 systemd[1]: lshttpd.service: New main PID 96600 does not exist or is a zombie.