Troubleshooting PHP 8.3 mbstring issues on Ubuntu with Nginx
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.
Troubleshooting bash script errors - a guide to fixing line endings and hidden characters
If you’ve ever encountered strange errors while running a bash script, you’re not alone. Errors like : not found
and Syntax error: end of file unexpected (expecting "then")
can be particularly frustrating, especially when the script appears to be perfectly fine. This a situation that I had recently involving such errors and this article shows how I was able to resolve them, focusing on line endings and hidden characters.
How to create and use a Python virtual environment in your web project
Managing dependencies in a web project can be challenging, especially when different projects require different versions of the same packages. Virtual environments offer a solution by isolating project dependencies. This article will guide you through creating and using a Python virtual environment in a web project, specifically when using PHP to execute Python scripts.
A step-by-step guide to resolving line ending issues in Git
If you've ever worked in a cross-platform development environment, you've likely encountered line ending issues. These can manifest as warnings in Git, such as:
Using Terminal shortcuts like a pro for efficient command-line navigation
Have you ever wanted to use Terminal with a more fluid style and increase your speed and efficiency? This article was inspired by watching a colleague navigate long lines of command navigation using only the arrow keys. While my pain threshold is high, seeing this during a group presentation was painful. It's time to sharpen your shortcuts for command-line navigation. Improving your understanding of Terminal can significantly boost your productivity as a developer.
How to track the history of Jira tickets moving in and out of a specific fix version
Managing and tracking the progress of Jira tickets is crucial for ensuring that projects stay on track. One common requirement is to monitor how Jira tickets move in and out of specific fix versions. This is useful for the team members who need to keep an eye on release planning and version control.
How to efficiently use find and replace in VS Code
When it comes to text editing, Visual Studio Code (VS Code) is one of the most popular tools among developers. One of its powerful features is the Find and Replace function, which can save you countless hours of manual editing. In this article, we'll explore how to use this function to replace all spaces with a newline character, and then go a step further to find spaces followed by alphabetic characters (excluding numerics), and replace them with newlines.
Upgrading Nginx on Ubuntu to due vulnerabilities CVE-2024-32002, CVE-2024-32004 and CVE-2024-32465
The current Nginx version running is 1.18.0. It seems like the Nginx version from the default Ubuntu repositories is still 1.18.0, which might not have the latest security patches. To resolve this, you can add the official Nginx repository to get the latest stable version.
1. Backup your current Nginx configuration
It's a good practice to back up your current Nginx configuration before making any changes:
Overcoming startup challenges with Apache Solr on Ubuntu 24.04
Recently, after upgrading to Ubuntu 24.04, we encountered a significant challenge with our Apache Solr service—it refused to restart. This post documents the steps I took to diagnose and resolve the issues, providing a clear guide for anyone facing similar troubles.
Initial troubleshooting
The journey began with a simple command to check the status of our Solr service:
How to empty a file on your server
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.