SimplerCloud Pte Ltd

×
×

Suddenly I'm not able to access my WHM/cPanel control panel, why?

Back

If you are using symbolic link option to move /usr/local/cpanel folder from the root-disk to the data-disk (e.g. /usr/local/cpanel --> /data/local/cpanel), you might experience an isssue whereby the symbolic link was broken and a new /usr/local/cpanel folder was being created. This is because of cPanel update script (upcp) which doesn't recognise the symbolic link and breaks the link when the script was run.

To verify that this is the case, try to run:

service cpanel status

to check whether the service is running or not. If there is no response after you key in the command, that means the problem might be due to the broken symbolic link. Check to confirm if this is the case:

cd /usr/local
ls -la | grep cpanel

If you don't see the symbolic link, that means the link is broken.

To resolve the problem, you need to change the symbolic link to a bind mount so that the link will not be broken when the cPanel update script runs. This is how to do it:

- cd /usr/local (go to /usr/local folder)
- mv cpanel cpanel.bak (move the newly created /usr/local/cpanel folder to /usr/local/cpanel.bak)
- mkdir cpanel (create a new cpanel folder)
- mount --bind /data/local/cpanel cpanel (create a bind mount for /usr/local/cpanel --> /data/local/cpanel)
- /scripts/upcp (run the cPanel update script)
- service cpanel status (verify that the cPanel service is up)
- grep cpanel /etc/mtab >> /etc/fstab (add the bind mount entry into fstab so that it will be mounted automatically when the servelet restarts)

Was this article helpful?
Dislike0 Like0
Views: 1297