Control Web Panel

WebPanel => MySQL => Topic started by: chupy on February 06, 2017, 04:59:35 AM

Title: I can not start Mysql
Post by: chupy on February 06, 2017, 04:59:35 AM
(http://i.imgur.com/TqHuX3M.png)

and
(http://i.imgur.com/eGT91Bh.png)
Title: Re: I can not start Mysql
Post by: Sandeep on February 06, 2017, 05:33:21 AM
check the error log
Title: Re: I can not start Mysql
Post by: locvfx on February 20, 2017, 04:23:23 PM
(http://i.imgur.com/TqHuX3M.png)

and
(http://i.imgur.com/eGT91Bh.png)

1. You need to add your hostname :
# hostname sub.domain.com

2. You need to add your public IP to hosts:
# nano /etc/hosts
Add this line
YOUR_SERVER_PUBLIC_IP your_hostname
(ex:  123.233.121.23 ns1.mydomainname.com)

3. You need to add ServerName in your Cwp conf file
# nano /usr/local/cwpsrv/conf/httpd.conf
Add this line:   ServerName your_hostname

If your hostname is reverted to default every time you reboot your server (in your image I see it's ...linode.com), then have a look on this post : http://forum.centos-webpanel.com/centos-6-problems/change-hostname-and-reset-when-reboot-vps/msg5377/#msg5377

One more thing, you need to autostart cwpsrv evertime you reboot the system:
# chkconfig cwpserv on