Home     About Us     RSSRSS

Archives: Cpanel

Cpanel: Website show 403 Forbidden Error

April 16, 2016 by @HKw@! | No Comments | Filed in centos, Control Panel, Cpanel, Linux

I just received a complain from my customer said that he unable to view his website from the web browser. It show Error 403 Forbidden.

403 Forbidden Error

As mention by my customer, he created the account vis cPanel and restored the backup file from
previous hosting. All files are owned by user terminal and group terminal. Directory and file
permission should be correct as they’re carried over from the previous hosting.

I tried to check logon to the server to do further checking. I notice that the ownership of the public_html folder is not set correctly

[19:23:22 cpanel root@7520653 /home/terminal]cPs# ll |grep public_html
drwxr-x---   6 terminal terminal 4.0K Apr 15 18:01 public_html/

Permission for public_html were set to user.user instead of user.nobody. I proceed to change the ownership to terminal.nobody

[19:26:00 cpanel root@7520653 /home/terminal]cPs# ll |grep public_html

drwxr-x---   6 terminal nobody   4.0K Apr 15 18:01 public_html/

After did the changed, the website able to load.

As summary, public_html ownership and permission should set to 0750 and username.nobody. Subfolder inside public_html no need to do any change.

 

 

WHM/Cpanel: /tmp (/usr/tmpDSK) 100% Full

October 28, 2014 by @HKw@! | No Comments | Filed in centos, Control Panel, Cpanel, Linux

Came across an issue today where my customer sending us an email about their Websites that hosted on CPanel server is not responding.

I logged in to their CPanel Server and check the Disk Space, i noticed that /tmp folder already 100% usage.

DF

In Linux environment, /tmp folder is used to dump temporary files. (more…)

Cpanel: How to restart Services via command line

June 10, 2013 by @HKw@! | No Comments | Filed in centos, Control Panel, Cpanel, Linux

cpanelI just received a call from my customer said that his MySQL down and could not restart from WHM.

If a service will not restart from WHM, we can try to try restart it from the command line.

First, try to ssh in to the Server and login as a root user. Just try to restart the service using the Cpanel server’s restart script.

Syntax of the command

/usr/local/cpanel/scripts/restartsrv $service.

Note: Replace $service with the services name that you wish to restart

 

Example:

root@techkaki.com [~]# /usr/local/cpanel/scripts/restartsrv mysql


(more…)