Loading...
 
Skip to main content

Features / Usability


Re: Re: Re: Locked out after HTTPS change. Help!

posts: 215

In templates_c/ delete everything but: index.php
In temp/public/ delete everything but: .htaccess and index.php
In lib/test/core/temp/cache/ delete everything but: index.php
In modules/cache/delete everything but: index.php and README
In temp/cache/ delete everything but: index.php

To clear the folders you can use these commands:

Copy to clipboard
ls -1d ./templates_c/* |grep -v -e index.php | xargs -r /bin/rm ls -1d ./temp/public/* |grep -v -e index.php | xargs -r /bin/rm ls -1d ./lib/test/core/temp/cache/* |grep -v -e index.php | xargs -r /bin/rm ls -1d ./modules/cache/* |grep -v -e index.php -e README | xargs -r /bin/rm ls -1d ./temp/cache/* |grep -v -e index.php | xargs -r /bin/rm


Updated Some how I listed the commands twice. I edited and removed the duplicates.
Updated again - I improved the code so there is no warning message if there are no files to delete in the folder, and removed the check for a .htaccess file since "ls -1d" does not list hidden files.

There are no comments at this time.