developer resources
Codebales holds an ever growing number of solutions to problems that we have experienced in our day to day code writing
Selected filter
120
results
Andrew Fletcher
•
I needed the check if a file existed in a directory as the migrate script wasn't recognising the file. To check if a file exists:
FILE={your-directory-path}
if test -f "$FILE"; then
echo "$FILE exists."
fi
If your directory path is /Users/{your name}/Sites/migrate/local_dest_dir/fish/../media/apple-store.png
FILE=/Users/{your name}/Sites/migrate/local_dest_dir/fish/../media/apple-store.png
if test -f "$FILE"; then
echo "$FILE...
Andrew Fletcher
•
Joining a new company / team there is always a lot of new items to...
Andrew Fletcher
•
A bug bear that I have had for a while with Drupal content is how come the...
Andrew Fletcher
•
Updating Drupal from 8.7.10 to 8.8.x or 8.9.x has seen a significant change...
Andrew Fletcher
•
As outlined in an earlier article composer php version, when installing the...
Andrew Fletcher
•
I had been running a few Centos 6 servers just past their EOL (30th November 2020) and it was time to kick in to action a plan I had been working on when I realised EOL was on my doorstep.
A month or so beforehand, I started researching options to upgrade to Centos 7. Okay initially I wanted to jump Centos 7 and charge in to Centos 8 which had a planned EOL of 2029. CentOS 8 had been stable for well over a year. Not bad, closer to two years would have been...
Andrew Fletcher
•
Regular expressions (regex) are extremely useful in extracting information from...
Andrew Fletcher
•
I need to set the default php-version of a subscription to php7.3. The...
Andrew Fletcher
•
Don't worry this is an issue that many Drupal developers have come across....
Andrew Fletcher
•
Working on a new CentOS 7 server, Node wasn't installed. You can...
Andrew Fletcher
•
Using a Centos 6 or 7 server, how to check the current version of Apache?
httpd -vThis command will return a string that is similar to the following:
Server version: Apache/2.4.6 (CentOS)
Server built: Nov 16 2020 16:18:20If you want to find where the httpd binaries are located use the following:
whereis httpdThis command will return something like:
httpd: /usr/sbin/httpd.worker /usr/sbin/httpd.event /usr/sbin/httpd /etc/httpd /usr/lib64/httpd ...
Andrew Fletcher
•
Attempting to load changes in a staging site and the bountiful error page...
Andrew Fletcher
•
Working through migration on a new Centos 7 server, the default mailbox size is...
Andrew Fletcher
•
Running a common composer command, post an upgrade on the server to Centos 7 and...
Andrew Fletcher
•
I'm receiving a server not found when logging in to Plesk from shell or...