For the past few months, my WordPress server, on an unmanaged virtual private server (VPS), has been freezing once or twice a month. I had to power cycle it to get it up and running again. I found out that the server’s Ubuntu 20.04 LTS (Long-Term Support) operating system was…
Leave a CommentTag: PHP
Update: I’ve provided updated instructions using the latest Ubuntu 24.04 LTS at Ubuntu 24.04 LTS and WordPress From Scratch. My website has been running on an unmanaged virtual private server (VPS), using Ubuntu 14.04, from DigitalOcean since 6 years ago. Unfortunately, the latest WordPress (as of version 5.2) requires at…
Leave a CommentTo facilitate web development, I wanted the same environment on my Windows 10 desktop as exists on my Ubuntu VPS server. With WSL (Windows Subsystem for Linux), I can have the same LEMP (Linux, Nginx, MySQL, and PHP) setup on my Windows 10 desktop. See my previous post, Install Subversion…
5 CommentsIn the past, whenever I needed a web server on Windows, I would install the XAMPP distribution (comes with Apache, PHP, and MySQL) and call it a day. This time, I wanted to use Nginx instead of Apache as the web server. Below are the steps I took to install…
16 CommentsI downloaded a HTML5 and Javascript demo. When I attempted to browse to it, I encountered the infamous “XMLHttpRequest cannot load file:///” error. The latest Chrome (and other modern browsers) won’t allow cross domain (a.k.a. cross origin) communication, which would occur when a page from one website domain attempts to…
Leave a CommentSee my previous post in my unmanaged VPS (virtual private server) series, Nginx HTTPS SSL and Password-Protecting Directory, to learn how to configure Nginx to enable HTTPS SSL access and password-protect a directory. In this post, I will explore how to upgrade LEMP and Ubuntu. Upgrade LEMP While one can…
Leave a CommentUpdate: I’ve provided updated instructions using the latest Ubuntu 20.04 LTS at Ubuntu 20.04 to WordPress From Scratch. Before this post, I was hosting my website using a shared web hosting provider. Shared web hosting is convenient because the provider takes care of the software platform and its security updates…
4 CommentsI recently needed to handle a file upload using PHP and was pleasantly surprised by how easy it was. I am sharing my file upload test script below. Create a file named “upload.php” with the following content: <?php { // Handle GET or POST if ($_SERVER[’REQUEST_METHOD’] === ‘POST’)…
Leave a CommentWe decided to migrate from a virtual OpenSuSE Linux server running on my desktop to a dedicated server hosting company. Unfortunately, I missed the OpenSuSE selection as an operating system choice and ended up choosing Ubuntu 64bit. Below are the initial steps I took to setup our development environment on…
Leave a CommentRecently, I had to setup a LAMP environment on a temporary CentOS 5.6 Linux server. (CentOS is the open source equivalent to the Red Hat Linux operating system.) Pleasantly, using Yum (Yellow dog Update, Modified), which is the CentOS and Red Hat RPM package manager, makes the task super simple.…
1 Comment