/DigitalAustinSite

Code running the Digital Austin Papers website

Primary LanguageShellApache License 2.0Apache-2.0

DigitalAustinSite

Code running the Digital Austin Papers website

Getting started on CentOS 7

Note: This section is very outdated and none of this is necessary after the 2023 dependency upgrades, but it took me a few minutes to write so I'm leaving it here.

I had to set this up on CentOS 7 because it's the only platform with PHP 5.4 that's still available on any major hosting service.

In writing this guide, I will assume that you're comfortable with Ubuntu but hearing the name "CentOS" has you like 🤯.

CentOS uses the yum package manager by default. For ease of use, you should start by upgrading to dnf, which is a lot more similar to apt. (dnf is the official replacement for yum in future Red Hat-related distributions).

  1. yum install dnf
  2. When the droplet is set up, go ahead and update everything with dnf update && dnf upgrade

DAP is a LAMP stack site, and this article was perfect for getting Apache and friends up and running. You should be able to stop after the "Check whether PHP is working by visiting the following URL" step.

Now that MariaDB is installed:

  1. Create a user named dap with a password of dap.
  2. Create a database named dap.
  3. Grant all privileges on the dap database to the dap user.

(If you don't know how to do those, Google them. Remember that MariaDB is a drop-in replacement for MySQL so anything about MySQL also applies to MariaDB.)

SELinux makes your system more secure, but it messes up the local file permissions for PHP in Apache. There's probably an official way to fix it, but for now let's disable SELinux by following this article.

Now you can copy the files from this repo to /var/www/html. (Hint: Clone the repo on your dev machine and ask Jamie for a Transmit key.)

You should be able to access the homepage by opening your server's IP address in your browser. If not, try rebooting or restarting Apache (systemctl restart httpd).