usmannasir / cyberpanel

Cyber Panel - The hosting control panel for OpenLiteSpeed
GNU General Public License v3.0
1.62k stars 616 forks source link

[BUG] Errors After Installing CyberPanel and LiteSpeed Enterprise on Ubuntu 22.04.4 LTS #1282

Closed kostum123 closed 4 months ago

kostum123 commented 4 months ago

Bug Report

Description: After installing CyberPanel (version 2.3.5) and LiteSpeed Enterprise on Ubuntu 22.04.4 LTS with all packages updated to their latest versions, several errors were encountered. The issue appears to have started between commit d884243c80fa05492dca05d8236f3e64b294d5d9 and commit 846341bfe2669585bef0e6da36a2199babeda859.

Environment:

Steps to Reproduce:

  1. Create a server with the OS: Ubuntu 22.04.4 LTS.
  2. Ensure all packages are updated to their latest versions and enable Ubuntu Pro.
  3. Install CyberPanel version 2.3.5 on Ubuntu 22.04.4 LTS with root privileges using sudo su -.
  4. Restart the server after the installation script finishes, start the server, and observe the CyberPanel service logs.
  5. Create a website through the CyberPanel interface.
  6. Attempt to install WordPress from the Manage tab.
  7. Website creation is successful, but you cannot install wordpress or anything on it.

Expected Behavior: CyberPanel should start without errors, the LiteSpeed Enterprise web server should function correctly, and WordPress should be installable from the Manage tab after creating a website.

Actual Behavior: Several errors are encountered in the logs, indicating issues with script handlers and configuration files. Additionally, after creating a website, attempting to install WordPress from the Manage tab fails. The detailed error log is as follows:

Error Log:

2024-07-05 07:08:11.839280 ERROR [1090] [T0] [config:scripthandler] Can not find handler with type: 17, name: lsphp73.
2024-07-05 07:08:11.839284 ERROR [1090] [T0] [config:scripthandler] Can not find External Application: lsphp73, type: lsapi
2024-07-05 07:08:11.839286 ERROR [1090] [T0] [config:scripthandler] use static file handler for suffix [php73]
2024-07-05 07:08:11.839294 ERROR [1090] [T0] [config:scripthandler] Can not find handler with type: 17, name: lsphp74.
2024-07-05 07:08:11.839300 ERROR [1090] [T0] [config:scripthandler] Can not find External Application: lsphp74, type: lsapi
2024-07-05 07:08:11.839305 ERROR [1090] [T0] [config:scripthandler] use static file handler for suffix [php74]
2024-07-05 07:08:11.843188 ERROR [1090] [T0] [/usr/local/lsws/conf/httpd.conf:73] Failed to get absolute path for [/usr/local/lsws/conf/pre_main_global.conf/(null)]!
2024-07-05 07:08:11.843188 ERROR [1090] [T0] [/usr/local/lsws/conf/httpd.conf:73] Failed to get absolute path for [/usr/local/lsws/conf/pre_main_global.conf/(null)]!
2024-07-05 07:08:11.843336 ERROR [1090] [T0] [/usr/local/lsws/conf/httpd.conf:69] Listener for _default_ is not available.
2024-07-05 07:08:11.843336 ERROR [1090] [T0] [/usr/local/lsws/conf/httpd.conf:69] Listener for _default_ is not available.
[Fri Jul 5 07:08:11 2024] [notice] Finish reading Apache configuration, server configured -- resuming normal operations

Additional Information:

Request for Assistance: Please investigate the recent commits between d884243c80fa05492dca05d8236f3e64b294d5d9 and 846341bfe2669585bef0e6da36a2199babeda859 and provide guidance on resolving these errors. Any patches or workarounds to restore normal operations would be greatly appreciated.

shbs9 commented 4 months ago

Hello @kostum123 ,

I hope you are doing well.

I tried to reproduce the issue using your provided steps and took some extra measures, but I couldn’t reproduce it.

Steps I Followed:

  1. Installed CyberPanel on a fresh Ubuntu 22.04 server with LiteSpeed Enterprise.
  2. Updated all packages and rebooted the server after installation.
  3. CyberPanel is on the latest version and latest commit.
  4. Deployed WordPress from the manage button and installed another WordPress instance using WordPress Manager. As you know, by default, PHP 7.3 and 7.4 are not installed, so I installed PHP 7.4 as well.
  5. Everything is working perfectly, with no issues at all.

Could you please open a ticket and provide your server access so I can check it on your server? https://platform.cyberpersons.com/ Thank you.

usmannasir commented 4 months ago

Will close this issue for no answer, if pertains can open new.