How to Restart LSWS or MySQL from CyberPanel ? IntroductionCyberPanel is a user-friendly hosting control panel that simplifies server management for web hosting professionals. Whether you need to restart your LiteSpeed Web Server (LSWS) or MySQL database server, CyberPanel provides an intuitive interface to perform these essential server management tasks. This guide walks you through the process of restarting both LSWS and MySQL from your CyberPanel dashboard. Why Restart LSWS and MySQL?Restarting LSWS and MySQL servers is essential for maintaining optimal server performance. Here are the main reasons why you might need to restart these services:Performance Optimization: Over time, services may consume additional memory or encounter resource bottlenecks. A restart helps free up resources and improves overall server performance.Applying Configuration Changes: After modifying configuration files for LSWS or MySQL, a restart is required to apply the changes.Resolving Service Issues: If a service is experiencing issues or becoming unresponsive, restarting often resolves temporary problems.Memory Leak Resolution: A restart clears any memory leaks that may have accumulated during the service operation.Updates and Patches: After installing updates or security patches, restarting ensures the new versions are active. How to Restart LSWS from CyberPanelStep-by-Step InstructionsAccess your CyberPanel dashboard with administrative credentials.Navigate to the Services section from the main menu.In the Services list, locate “MySQL” or “MariaDB” (depending on your server configuration).Click the “Restart” button next to the MySQL service. The restart icon is typically a circular refresh icon or a restart button.A confirmation prompt will appear asking you to confirm the MySQL restart operation.Click “Confirm” to proceed with restarting the MySQL service.The system will initiate the MySQL restart process.Allow a few moments for the restart to complete. You will receive a notification once the process is finished.A success message will confirm that MySQL has been restarted successfully. Best Practices for Server RestartsFollow these best practices when restarting services from CyberPanel:Schedule Restarts During Off-Peak Hours: Perform service restarts during periods of low traffic to minimize impact on your users and website functionality.Inform Users in Advance: If possible, notify your website visitors about scheduled maintenance windows.Monitor Services After Restart: After restarting services, verify that all services are running properly and your websites are accessible.Keep Backups: Always maintain current backups before performing any server maintenance operations.Check Error Logs: Review error logs after restart to ensure there are no issues with your services.One Service at a Time: Restart only one service at a time to isolate any potential issues.Wait Between Restarts: If restarting multiple services, allow sufficient time between each restart for the system to stabilize.Document Changes: Keep a record of when restarts were performed and for what reason to help with future troubleshooting. Key NotesService Names: Depending on your CyberPanel version, MySQL may be listed as MariaDB. Both represent your database engine.Non-Disruptive Restarts: LiteSpeed Web Server (LSWS) is designed to handle “graceful” restarts, meaning it attempts to finish serving current web requests before restarting.SSH Alternative: If the CyberPanel dashboard is unresponsive, you can restart these services via SSH using:systemctl restart lscpd (CyberPanel Service)systemctl restart lsws (LiteSpeed Web Server)systemctl restart mariadb (Database)Resource Spikes: It is normal to see a temporary spike in CPU usage immediately after a restart as the system re-initializes caches. ConclusionKnowing how to restart LSWS and MySQL is a fundamental skill for any server administrator. Whether you are clearing a memory leak, applying critical configuration updates, or simply optimizing performance, CyberPanel’s built-in service management tools make the process seamless. By following best practices—such as scheduling restarts during low-traffic periods and monitoring logs—you can ensure your hosting environment remains stable, fast, and reliable for your users. Need Help? If you face any issues updating your nameservers or need further assistance, our support team is always available: Email: support@bigcloudy.com Submit a support ticket FAQ Will restarting LSWS take my website offline?Yes, but only for a few seconds. LiteSpeed is highly efficient, and a restart typically happens so quickly that most users won’t even notice a delay. How often should I restart my MySQL/MariaDB server?You should only restart it when necessary, such as after changing my.cnf configurations or if the service becomes sluggish. Frequent, unnecessary restarts can clear your query cache, temporarily slowing down database-heavy sites. What is the difference between "Start," "Stop," and "Restart"?Start: Turns on a service that is currently off.Stop: Completely shuts down the service (your site or database will go offline).Restart: Stops and then immediately starts the service again to refresh it. Why does the restart button fail sometimes?If a service fails to restart, it is usually due to a syntax error in a configuration file (like httpd.conf or my.cnf). CyberPanel cannot start a service if the underlying configuration is broken. Can I automate server restarts?While you can set up “Cron Jobs” to restart services, it is generally not recommended. It is better to identify and fix the root cause of service instability rather than relying on automated restarts.