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
84
results
Andrew Fletcher
•
Maintaining a Drupal site is usually smooth sailing once the environment is properly set up. However, even in a stable environment, updates to modules can sometimes reveal underlying configuration issues that weren't apparent before. This was the case when I updated a contrib module on a Drupal 10.3 site, which suddenly started throwing errors related to the mbstring PHP extension.
The problem
The problem first surfaced after updating the search_api_attachments contrib module. The Drupal...
Andrew Fletcher
•
The current Nginx version running is 1.18.0. It seems like the Nginx...
Andrew Fletcher
•
Recently, after upgrading to Ubuntu 24.04, we encountered a significant...
Andrew Fletcher
•
When Solr is displaying results on the site, first step is to log in the server...
Andrew Fletcher
•
On a server directory with over 100,000 PDF files, I needed to verify the...
Andrew Fletcher
•
Managing files on a server often includes tasks like clearing logs or resetting configuration files. If you need to empty a file without deleting it, there are several quick and efficient methods to achieve this.
Recently, during a review of log files, I noticed an unusually large file: access_ssl_log.processed, which was a substantial 8.77 GB. After reviewing and backing up the data, I needed to empty the file to free up space and maintain server performance.
-rw-r--r-- 2 root root 667816325...
Andrew Fletcher
•
To review the content of files being generated in the /tmp directory on an...
Andrew Fletcher
•
A growing list of commands I've used and what they do in no specific order
sudo...
Andrew Fletcher
•
To resolve the CVE-2022-48624 vulnerability on Ubuntu using Nginx, it's crucial...
Andrew Fletcher
•
In many terminal text editors, you use find command as reference in Terminal...
Andrew Fletcher
•
In an environment that is running
Ubuntu 20.02
Nginx
Solr
The default Nginx conf is located /etc/nginx/sites-available/ and contains something similar to:
server {
listen 80;
listen [::]:80;
server_name uat.oursite.com;
return 301 http://uat.oursite.com$request_uri;
}
server {
listen 80;
listen [::]:80;
listen 443 ssl;
ssl_certificate /etc/ssl/certs/Bundle.crt;
ssl_certificate_key /etc/ssl/private/MultidomainWildcard.key;
# Security...
Andrew Fletcher
•
You can perform the following steps:
Check Apache Modules
Apache Struts 2 is...
Andrew Fletcher
•
To use OpenAI to summarise text from a PDF using Python 3.11.6, you'll first...
Andrew Fletcher
•
Permission error
Traceback (most recent call last):
File...
Andrew Fletcher
•
To set an environment variable on Ubuntu, can be achieved via a few options....