Dangerously Average Approaches

How I Broke My Website by Finally Updating My Synology

This AI stuff is getting out of control. Everybody is maximizing their gains by incorporating some type of Agentic Fabric. To be honest, I am more of an argyle guy myself. At least I know what that looks like on a sweater.

Anyway, AI is giving me reasons to take cybersecurity a little more seriously, so I needed to pay a little attention to my Synology NAS. I had been behind on updating DSM, which is the operating system running the thing. Frankly, I do not like automatic updates. I prefer to personally supervise the moment my equipment stops working.

Well, in typical fashion, slowing down to do the right thing turned into considerably more than I bargained for. After the update, this website was down.

So I had to dig deep and use my own AI agent. Well, friend? It is ChatGPT, so maybe not a friend in the truest sense, but Nova, that is what she calls herself, is really a friend with benefits. In this case, the benefit was helping me figure out what I had installed on my own equipment.

Very technical relationship. Please keep up.

Here is how I broke the internet. Or at least the very small portion of it that I am responsible for.

First, Locate the Website You Apparently Own

The hardware in question is my Synology DS920+. A NAS is Network Attached Storage. Basically, a bunch of HDD’s that holds files so you don’t have to remember which thumbdrive you left them on.

But a modern NAS can also be a little server. Mine stores backups, runs applications, and hosts this website. Think of it as a smaller wife approved version for the server rack at your work. It has fewer blinking lights and no IT department to blame just your own personal shame at over estimating your abilities.

I use Synology because back in 2020 you got a bunch of stuff in one approachable ecosystem. A little like Apple, but for people who have strong opinions about hard drives. Home NASes. NAS’s? NAZZES? Anyway, the boxes.

There is even an app store called Package Center. Install a Package, and your storage box gets another job. Web Station is one of those packages: it helps turn the NAS into a website host. An Easy Button, with a few additional switches we will be discussing shortly.

My recollection was that WordPress lived in side of one of those apps called Docker. For our purposes, a Docker creates separate little workspaces called containers for other applications. A container is not exactly a virtural machine (VM) but for us right now, that should be your mental model. Anyway, I was sure that WordPress was running inside of a Docker Container, cuz well I remembered setting things up that way, or thinking about setting things up that way, which after a few years are basically the same filing cabinet.

Except I could not find Docker.

I could find folders named Docker. Very reassuring. Like finding the empty box for a tool you need.

Eventually I found Container Manager, which is basically Docker. Inside that Container Manager, I found my AdGuard Home, still sitting there doing its thing. WordPress was conspicuously absent. This seemed like a fairly significant problem for a WordPress website.

Before we started reinstalling everything, we looked in File Station. Under the web folder was trottingaround, and inside that were wp-admin, wp-content, and wp-includes. All the files were there, it was more my questionable understanding of their living arrangements.

The next stop was Web Station. There was my website’s portal, complete with its domain name and a bright red Abnormal status.

Found it. Unfortunately…

A Brief Tour of the Machine I Had Already Built

What we found was a WordPress installation served through Synology Web Station, using Apache and PHP, with MariaDB handling the database. WordPress was sitting in the web folder. It was not the missing container I had been hunting. For those following along at my level of network competence: Web Station is the control panel for this arrangement. Apache is the web server answering when your browser asks for a page. PHP is the programming language WordPress uses to do much of its work. MariaDB is the database. It keeps the posts and settings organized so WordPress can find them again. It speaks SQL, the language used to ask for that information. Same general neighborhood as Microsoft’s SQL Server, different house. This one is open source, and I did not need a purchasing meeting to get it.

The NAS runs PHP + Apache + MariaDB services to pull the webpages together. Think of it as the guy in the back actually making the sandwich while the front counter says your order is almost ready.

The pictures and theme files have their own places in the WordPress folders. So the database is the filing system for the content and settings, but it is not a magic drawer containing the entire website. So there are several pieces involved in making a page appear. Naturally, I had remembered the name of a different piece.

Web Station also said the Synology WordPress package was Not Installed. That did not mean my website was gone. It meant that particular package was not installed. The WordPress files we had just found were a rather important clue.

Back to the friends with benefits arrangement, I was able to show Nova my screen, and the royal we could work through the next thing to check. To be clear my contribution was remembering increasingly specific details that turned out to be only partially correct.

PHP: Three Letters, Several Red Warnings

The migrated website service still had PHP 7.4 in its name. The older PHP packages were showing as unsupported or abnormal, and when I opened the service settings, the PHP profile field was empty.

Meanwhile, PHP 8.2 was installed and showing Normal. We had a functioning engine sitting nearby; the website just was not connected to it.

Synology Web Station overview showing abnormal default server and older PHP packages, with PHP 8.2 normal.
Web Station’s opening assessment. Apparently, several things were Abnormal. I was beginning to take it personally.

We selected the available PHP 8.2 profile. The old migrated service name also failed the current name validation, so we gave it a simple name: trottingaround. We kept the document root pointing at the existing website folder and kept Apache as the back-end server.

Apply. Normal.

I would like to tell you this was the end, just like how Dean in Sales also swears it is ready to ship because the status is light “green”.

Opening the site gave us a new message: WordPress could not find the MySQL extension. Specifically, mysqli needed to be installed and enabled.

PHP was running, but the Web Station still need to talk to a couple other things to make it all work. Extensions are extra tools PHP can use; mysqli is the one letting this WordPress installation talk to its database. We had hired the sandwich guy and neglected to give him access to the ingredients. We enabled mysqli, and the public website came back.

There it was. The logo. The pages. The questionable writing. All the important business assets.

The Front Door Opened. The Office Was Still on Fire.

Then I tried logging into the administration page of the actual WordPress Site

Critical error.

This is an important distinction when recovering a website: seeing a public page does not prove that everything behind it is happy. It proves that one page loaded. So as I was learning to keep my celebrations appropriately small. WordPress told me to check the administrator email for instructions. Nothing arrived while I was waiting. I also remembered doing something years ago to make the login address harder to guess. Another helpful contribution from the historical records department.

Rather than continue guessing, we (Nova) had me enable temporary debug logging in wp-config.php, with error display turned off. A debug log is the machine writing down what went wrong, preferably with more detail than “something.” We wanted that information in a file, not displayed to everybody visiting the site.

Searching for the word debug turned up a whole collection of files with debug in their names. Those were not automatically the log we needed. Once logging was enabled and we reproduced the failure, we had an actual debug.log to work from. Between that evidence and the PHP profile settings, we worked through the missing functionality and got the dashboard open. After troubleshooting, we turned debugging back off.

I was now officially qualified to look at the next screen full of warnings.

Nine Critical Issues. Apparently We Were Making Progress.

WordPress has a Site Health screen. Mine was extremely interested in having a conversation.

WordPress Site Health showing three critical issues remaining: plugin updates, AIOSEO update, and a performance issue.
Down to three critical issues. In this particular project, that counted as good news.

There were missing PHP modules, secure connection problems, REST API errors, failed requests, and services that could not reach the places they needed to reach. It looked like nine separate disasters. Several of them were symptoms of the same incomplete PHP setup. Luck for me, most of these errors were fixed by just connecting more of the services like we did before.

We enabled the extensions the site was reporting as missing, including curl, openssl, gd, exif, imagick, zip, iconv, and intl. These provide things like outbound connections, image handling, and other functions WordPress and its plugins use.

I am deliberately saying these were the extensions MY site reported. This is not an instruction to open a settings panel and check every box until you feel powerful.

With the profile corrected, much of the yelling stopped. The site could communicate again. The scary list got substantially shorter.

That was the big lesson from this part: a running PHP version and a correctly configured PHP environment are not necessarily the same thing.

Before Improving Anything Else, Save the Thing

Before moving on to the WordPress and plugin updates, we checked Hyper Backup (Synology App) and ran the website backup. The job included the web folders along with MariaDB 10 and Web Station. That database part matters. Saving the website files alone is not the same as saving the whole WordPress site. I wanted the posts and settings backed up too, on the off chance that my next excellent decision required an undo button.

Once the backup finished, we updated WordPress, then worked through the plugins and theme. Along the way I also confirmed that the WordPress administration page was managing the installation on my Synology. Opening it through an internet address did not move the website to somebody else’s server.

Another thing I of course obviously knew. Once it had been explained to me…

The theme was Customizr Pro, which I had bought with a lifetime license. We checked that the license was active and updated the theme. I opened actual pages and posts afterward to make sure they still looked like my website. They did. My design decisions had survived. Whether that is good news depends on your opinion of my design decisions.

Recommended Does Not Mean Required

One plugin deserved a closer look: Nimble Page Builder. Jetpack flagged the installed version for a known security vulnerability. That is not the same as evidence that somebody had broken into the site, but it was a reason to stop and investigate.

I deactivated Nimble, and Customizr immediately recommended that I activate it. Naturally, I wondered whether I had just removed a load-bearing plugin. We checked a few pages with it disabled, and they looked fine. In the pages I tested, I was not seeing anything that depended on it. So it stayed deactivated. The learning here is a useful difference between a theme recommending a companion page builder and your particular pages needing that builder to render correctly. I would check the pages before assuming either one.

We also regenerated Jetpack Boost’s outdated Critical CSS. CSS tells your browser how things should look: fonts, colors, spacing, and where the furniture goes. Critical CSS is the styling needed for the part you see first. Boost keeps that portion ready so the page can get dressed faster. After changing the theme, refreshing it was another piece of the cleanup.

Eventually Site Health showed no critical issues. There were still recommended improvements, but we had moved from “the website is broken” to “the website has opinions about housekeeping.” I can work with that.

WordPress Site Health showing six recommended improvements and no critical issues.
No critical issues. Just a few suggestions about how I should live my life.

Dangerously Average, Now With a Working Website

So this journey we updated the PHP package, corrected the separate default service in Web Station, and removed the unused old PHP versions. The site portal and the services we were using were back to Normal.

The interesting part is that we did not need to rebuild the website. The files were still there. The database was still there. The hosting arrangement was different from what I remembered, and the PHP configuration needed attention after the DSM update.

Would a container have changed this adventure? Maybe. It certainly would not have improved my ability to remember what I installed. That is a separate feature request.

What helped was taking the problems in order: find the existing installation, check what serves it, read the actual errors, restore the missing pieces, and back up before piling on more changes. Then test the public site AND the dashboard.

Nova was useful because we could keep working from what the screen actually said. She did not need my original theory about Docker to be correct. Fortunately, because it was not. I would compensate Nova with some digital cookies, but that’s best explained after I have a chance to clear them.

I still prefer choosing when updates happen. What this little exercise reminded me is that delaying them does not eliminate the maintenance. It just gives the maintenance time to invite friends.

Anyway, the website is back. The NAS is doing Snazzy things, the posts are where I left them, and I now have a much better idea of how my own equipment works.

Which should hold me over until the next update.

Until then, keep your backups useful and your approaches Dangerously Average.

Leave a comment