Cpanel

WHM Cpanel sshd: /var/empty/sshd must be owned by root and not group or world-writable

 

Error: WHM Cpanel sshd: /var/empty/sshd must be owned by root and not group or world-writable is reported via email notifications.

Note: Our server is running Centos

 

Server cpanel2.interactivewebs.com
Primary IPAddress xxx.xxx.xxx.xxx
Service Name sshd
Service Status failed ⛔
Notification The service “sshd” appears to be down.
Service Check Method The system’s command to check or to restart this service failed.
Number of Restart Attempts 19
Service Check Raw Output (XID cg7fzv) The “sshd” service is down.

The subprocess “/usr/local/cpanel/scripts/restartsrv_sshd” reported error number 3 when it ended.

Startup Log Dec 07 02:34:37 xx.interactivewebs.com systemd[1]: Failed to start OpenSSH server daemon.
Dec 07 02:34:37 xx.interactivewebs.com systemd[1]: Unit sshd.service entered failed state.
Dec 07 02:34:37 xx.interactivewebs.com systemd[1]: sshd.service failed.
Log Messages Dec 7 02:34:37 cpanel2 sshd: /var/empty/sshd must be owned by root and not group or world-writable.
Memory Information
Used 1.12 GB
Available 14.01 GB
Installed 15.13 GB
Load Information 0.00 0.01 0.07
Uptime 1 hour, 30 minutes, and 42 seconds
IOStat Information avg-cpu: %user %nice %system %iowait %steal %idle 4.15 0.01 0.18 0.02 0.00 95.64 Device: tps kB_read/s kB_wrtn/s kB_read kB_wrtn sda 7.43 185.24 24.84 1007925 135152 dm-0 4.69 146.09 17.67 794896 96128 dm-1 0.02 0.41 0.00 2228 0 dm-2 2.62 33.66 6.80 183144 36976
Top Processes
PID Owner CPU% Memory % Command
5182 root 18.07 0.09 /usr/local/cpanel/scripts/restartsrv_cpanel_dovecot_solr
5080 root 5.88 0.17 tailwatchd – chkservd – cpanel-dovecot-solr check
5138 root 1.20 0.01 dovecot/auth -w
5167 root 0.72 0.00 [whostmgrd – ser]
5108 dovecot 0.68 0.02 dovecot/auth

 

The Fix

1. Login to WHM and click on terminal

Screenshot 2018 12 07 21 36 49

Type these 3 commands into there terminal window:

# chown root:root /var/empty/sshd 
# chmod 711 /var/empty/sshd 
# ls -ld /var/empty/sshd

 

2. Restart the ssh Daemon in WHM

WHM ssh

 

Cpanel WordPress Site Error The uploaded file exceeds the upload_max_filesize directive in php.ini

Cpanel Wordpress Site Error The uploaded file exceeds the upload_max_filesize directive in php.ini

While working with a Cpanel Website running Wordpress, you attempt to upload a file and receive an error: 

“The uploaded file exceeds the upload_max_filesize directive in php.ini”

To fix for ALL Accounts in Cpanel

Login to the WHM Administration system. Note that this is usually the HOST provider that has access to this.

Softare >> MultiPHP INI Editor

Screenshot 2018 04 01 13 04 47

Then for the Different PHP Version in the Dropdown, selecting for example ea-php55  or ea-php56

Edit the post_max_size to something bigger that the default 8M

AND or

Edit the upload_max_filesize to something bigger than the default 2M

Screenshot 2018 04 01 13 07 43

To Fix for the Account you are working in.

Loged in as the Account holder,

Software MultiPHP INI Editor

Screenshot 2018 04 01 13 08 42

Select the location that you will apply this modification to. This should be the site or sub domain you are experiencing the problem with. (In our example we have the wordpress.projectcentre.com.au)

Edit the post_max_size to something bigger that the default 8M

AND or

Edit the upload_max_filesize to something bigger than the default 2M

Screenshot 2018 04 01 13 10 02

This applies to Cpanel April 2018 V68