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 least PHP version 5.6.20 which Ubuntu 14.04 does not support (Ubuntu 14.04 supports PHP 5.5.9). Although DigitalOcean provides upgrade…
Leave a CommentTag: PHP
To 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…
15 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 CommentBefore 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 (though I am still responsible to update a PHP application like WordPress). And if there is a problem…
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 CommentMac OS X 10.6 Snow Leopard comes with Apache and PHP installed by default. However, the Apache HTTP server is not configured to use PHP and is not set to run by default. This post will provide instructions on configuring and starting the built-in Apache server. In addition, this post…
12 Comments