Could not write xxx permission denied cpanel/WHM

Genellikle sunucu değisikliklerinden sonra yeni sunucuda cpanel’de herhangi bir dosyayı düzenlemeye çalısırken çıkan hatadır. Bu sorunun nedeni cPanel kullanıcı adının değişmesi ve kullanıcı yetkilerini kaybetmesidir. Tam yetki olmasına rağmen herhangi bi dosyayı düzenleme, silme veya izin değiştirme gibi hiçbir işleme izin vermiyor. Sorunu çözmek için SSH’dan
public_html klasörüne git

cd /home/seker/public_html

Dosya sahibini değiştirmek için uygula

[root@server public_html]# chown -R seker:seker

veya

[root@server public_html]# chown -R seker:seker ./*

İşlemleri yapabilmek için sunucuya root bağlantı kurmanız gerekmektedir. Yetkiniz yoksa hosting firmasıyla iletişime geçin.

ECONNREFUSED Hatası

Connection attempt failed with “ECONNREFUSED – Connection refused by server”.

Bu sorunun sebebi pure-ftpd sağlıklı kurulamamasından dolayı filezilla gibi yazılımlarla FTP bağlantısı kurulamayınca sistem tarafından verilen hatadır.

Öncelikle sistemimizde kurulu pure-ftpd’yi yeniden yapılandıralım.
pure-FTPd yazılım versiyonunu ögrenmek için SSH’dan

rpm -qa|grep pure-ftpd

Kurulu versiyon

pure-ftpd-1.0.42-5.cp1156.x86_64

Devredışı bırak

rpm -e --nodeps pure-ftpd-1.0.42-3.cp1156.x86_64

Devredışı bırakıldı

rpm -e --nodeps pure-ftpd-1.0.42-5.cp1156.x86_64
[pure-ftpd] Stopping pure-authd: 1 process (pure-authd) sent signal 9 
disable was successful

Yeniden yapılandırma için SSH’dan /scripts/check_cpanel_rpms –fix uygulayın.

[2016-09-09 16:21:38 +0200]   
[2016-09-09 16:21:38 +0200]   Problems were detected with cPanel-provided files which are RPM controlled.
[2016-09-09 16:21:38 +0200]   If you did not make these changes intentionally, you can correct them by running:
[2016-09-09 16:21:38 +0200]   
[2016-09-09 16:21:38 +0200]   > /usr/local/cpanel/scripts/check_cpanel_rpms --fix
[2016-09-09 16:21:38 +0200]   The following RPMs are missing from your system:
[2016-09-09 16:21:38 +0200]   pure-ftpd-1.0.42-5.cp1156
[2016-09-09 16:24:48 +0200]   Removing 0 broken rpms: 
[2016-09-09 16:24:48 +0200]   rpm: no packages given for erase
[2016-09-09 16:24:49 +0200]   Downloading http://httpupdate.cpanel.net/RPM/11.56/centos/6/x86_64/rpm.sha512
[2016-09-09 16:24:57 +0200]   Successfully verified signature for cpanel (key types: release).
[2016-09-09 16:24:57 +0200]   Downloading http://httpupdate.cpanel.net/RPM/11.56/centos/6/x86_64/pure-ftpd-1.0.42-5.cp1156.x86_64.rpm
[2016-09-09 16:24:58 +0200]   Disabling service monitoring.
[2016-09-09 16:24:59 +0200]   Hooks system enabled.
[2016-09-09 16:24:59 +0200]   Checking for and running RPM::Versions 'pre' hooks for any RPMs about to be installed
[2016-09-09 16:24:59 +0200]   All required 'pre' hooks have been run
[2016-09-09 16:25:04 +0200]   No RPMS need to be uninstalled
[2016-09-09 16:25:04 +0200]   Installing new rpms: pure-ftpd-1.0.42-5.cp1156.x86_64.rpm
[2016-09-09 16:25:04 +0200]   Preparing packages for installation...
[2016-09-09 16:25:04 +0200]   pure-ftpd-1.0.42-5.cp1156
[2016-09-09 16:25:05 +0200]   enable was successful
[2016-09-09 16:25:06 +0200]   Hooks system enabled.
[2016-09-09 16:25:06 +0200]   Checking for and running RPM::Versions 'post' hooks for any RPMs about to be installed
[2016-09-09 16:25:06 +0200]   All required 'post' hooks have been run
[2016-09-09 16:25:06 +0200]   Restoring service monitoring.

NOT : Bu hata whm’nin WHM 58.0 (build 27) versiyonunda tespit edildi.