For those following this thread, the above commands didn totally clean up everything, but this one below will do the trick (requires latest CageFS)
/usr/share/cagefs-plugins/create-htaccess.py --ignore-exclusions --delete-old
Announcement
Collapse
No announcement yet.
Latest CageFS 3.2 and .htaccess problems on cPanel server
Collapse
X
-
> Ryan Smith wrote:
> Is running cagefsctl --securelinks-delete the best way to clean up all the .htaccess files that CageFS 3.2b2 installed all over my system? I keep finding things that these .htaccess files are breaking.
Yes, you can run
Code:cagefsctl --securelinks-delete
Then as Igor stated you can disable this functionality with
Code:cagefsctl --securelinks-disable
Code:cagefsctl --update
Leave a comment:
-
Is running cagefsctl --securelinks-delete the best way to clean up all the .htaccess files that CageFS 3.2b2 installed all over my system? I keep finding things that these .htaccess files are breaking.
Leave a comment:
-
Please remove file .htaccess from /root/cpanel3-skel and /etc/skel directories.
These skeleton directories are copied to home directories of newly created users.
We will exclude these paths from generating .htaccess automatically in the next release of CageFS.
Thank you for patience and understanding.
Leave a comment:
-
There is one more problem. After new account is created under cpanel, one "cagefs deny from all" .htaccess file is created in /home/USER so it makes www not working for that user.
Can you point me out how to get rid of this behavior? Is there any config option/template to remove this behavior?
Leave a comment:
-
Thanks for your reply Anton, that explains everything I need to know.
Leave a comment:
-
Yes, "cagefsctl --securelinks-disable" will prevent generating of htaccesses and index.htmls.
The error while running "cagefsctl --securelinks-delete" is a bug. It will be fixed soon in the next release of CageFS.
Leave a comment:
-
Latest CageFS 3.2 and .htaccess problems on cPanel server
After upgrading CageFS to latest beta I didn notice, that securelinks functionality generated .htaccess files all over the server at nightly upcp run.[br]It was a big mistake enabling this by default as all the sites on the server was down because of it.[br]Additional problem is that using cagefsctl --securelinks-delete is throwing error:[br]Code:[br]Proceed: /root/.cpanel/datastore/[br]Proceed: /root/.matplotlib/[br]Proceed: /lost+found/[br]Proceed: /backup/[br]Proceed: /home2/[br]Proceed: /home2/xxxxx/[br]Proceed: /home2/xxxxx/.cagefs.screen/[br]Proceed: /home2/xxxxx/.cagefs.tmp/[br]Proceed: /home2/xxxxx/.cagefs.cron/[br]Proceed: /home2/xxxxx/public_html/[br]Traceback (most recent call last):[br] File "/usr/share/cagefs-plugins/create-htaccess.py", line 224, in [br] process(delete = True)[br] File "/usr/share/cagefs-plugins/create-htaccess.py", line 181, in process[br] DeleteFileHtaccessInDirs(path+infile+/, deny_dirs_short)[br] File "/usr/share/cagefs-plugins/create-htaccess.py", line 149, in DeleteFileHtaccessInDirs[br] DeleteFileHtaccessInDirs(need_file, dirs)[br] File "/usr/share/cagefs-plugins/create-htaccess.py", line 149, in DeleteFileHtaccessInDirs[br] DeleteFileHtaccessInDirs(need_file, dirs)[br] File "/usr/share/cagefs-plugins/create-htaccess.py", line 143, in DeleteFileHtaccessInDirs[br] if lines[0].strip()==#CageFS autogenerated file:[br]IndexError: list index out of range[br]Error: /usr/share/cagefs-plugins/create-htaccess.py[br]
Code:cagefsctl --securelinks-disable
Code:cagefsctl --update
Tags: None
Leave a comment: