Skip to main content
103
results
Andrew Fletcher
How to set the Private file path in Drupal using the following steps: Create a private folder in the web root Add a .htaccess file to the private folder Update the settings.php file   Create a private folder in the web root Open a terminal window and navigate to the web root directory of your Drupal site. In your web root add your private folder.  In this instance I'll create a folder named 'prvt-media'.  Use the mkdir command to create a new folder named prvt-media mkdir...
Andrew Fletcher
This page will be a progressive outline of moving those regular run scripts that...
Andrew Fletcher
This issue I have a folder with about 10,000 files in it.  I want to scan...
Andrew Fletcher
Using Homebrew for speed tests... I'm using Speediest CLI - for more details go...
Andrew Fletcher
I'm in an environment where the default branch is staging and I'm attempting to...
Andrew Fletcher
How to count the number of files in a directory.  At some point you'll have a directory or directories that you need to know the number of files in them.  On Linux, the list command (ls) is piped with the wc -l command. ls | wc -lThis command works great if all the files are located in one directory.  What about if you have multiple directories.  Then you will need to use the find command piped with the wc command find <directory> -type f | wc -lThis command only...
Andrew Fletcher
I've recently upgraded the server Ubuntu 20.04 updating the PHP version from 7.4...
Andrew Fletcher
Find by file name To perform a find command in terminal use find / -name...
Andrew Fletcher
Reviewing CKAN extensions and listing the extensions that have been created /...
Andrew Fletcher
Location of the base templates cd...
Andrew Fletcher
I had generated a backup of key directories on the server - see Create a Ubuntu backup shell script.  With a backup in hand, now it was time to test how to unpack a backup and overwrite the directories. First I unpacked the backup to a temporary directory tmp-cc. Now I wanted to replace several of the directories on the server.  Starting with home, var and etc.   But what is an efficient method to overwrite a directory?   Also removing any directories that aren't in the...
Andrew Fletcher
An approach to generating a backup server is using a shell script.  A...
Andrew Fletcher
Finding the issue with a server 500 error The Nginx error logs are showing too...
Andrew Fletcher
Focusing on the ckan.ini file (/etc/ckan/default/ckan.ini).  When I run the...
Andrew Fletcher
Following the instructions on CKAN DataStore with a little...