What's new


By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Auto fix for file permissions and ownership cPANEL


Staff member
Feb 18, 2019
Hata kodu :

[core:crit] [pid 10219] (13)Permission denied: AH00529: /home/yutt23/public_html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/home/yutt23/public_html/' is executable
suPHP ve FastCGI, dosya ve klasörlerin, diğer işleyicilerden gelen permissions/ownership kümesine sahip olmasını gerekir. Bu izinleri ayarlamadan “Forbidden, Internal Server Error” hataları ile karşılaşırsınız.

çalıştırmadan önce sunucunuzun tam yedekleme yapın.

Bu fixperms betiği sadece cPanel sunucuları içindir. Cpanel’in dahili komut dosyalarına ve dosya yapısına bağlıdır.Plesk,cwp veya diğer panellerde denediğinizde çalışmama imkanı yüksektir.

suPHP veya FASTCGI kullanmıyorsanız bu scripti kullanmayın.

Fixperms - for one single user
To use the fixperms script, simply log into your server as root, wget the file from GutHub, then run it. Type in the cPanel username and it will run only for that particular account.

It does not matter which directory you are in when you run fixperms. You can be in the user’s home directory, the server root, etc. The script will not affect anything outside of the particular user’s folder.

wget https://raw.githubusercontent.com/PeachFlame/cPanel-fixperms/master/fixperms.shchmod +x fixperms.shsudo sh ./fixperms.sh -a KULLANICI-ADI

If you would like fix the permissions for every user on your cPanel server, simply use the ‘-all’ option:

sudo sh ./fixperms.sh -all

Verbosity of Fixperms
By default, the script runs in a ‘quiet’ mode with minimal display. However, if you’re like me, you may want to see everything that is happening. You can turn on verbosity and have the script print to the screen everything that is being changed. I find this extremely useful when fixing large accounts that have many files. You can watch the changes as a sort of ‘progress bar’ of completion. The ‘-v’ option can be used per account or with all accounts.

For one single account:

sh ./fixperms.sh -v -a USER-NAME
For all accounts:

sh ./fixperms.sh -v -all
Top Bottom