Installing LAMP -- am I dumb?
Task
Here's the story: I had a Tikiwiki, installed on my web hosting. After some time I decided that it was an overkill, so I backed up the SQL database and the application and removed this wiki from hosting. Now the only hosting I use is GitHub Pages for static HTML pages. So, I decided to recover information from this wiki, what could be easier, right? LAMP (Linux + Apache + MySQL + PHP) was the most popular use case for Linux a while ago. I have Ubuntu 23.04, it's the most popular distribution, so what could go wrong? Well, here adventures begin.
All went wrong
So, the first idea was to install Apache, PHP, and MariaDB locally and just restore everything. It's not so clean method, because you install lots of packages and services to your system and if you don't need them, you have to clean up. But let's go for it. Well, Tikiwiki doesn't support PHP 8, which is shipped with Ubuntu. But you can install PHP 7.4 on Ubuntu, right? Well, you have to add an external repository and now only Ubuntu 22.04 is supported. I googled it, but I didn't find a solution. And I'm not going to change the distribution because of this task.
OK, what else can we do? We have Docker, right? We even have a LAMP stack for Docker, that's great! Apache worked, I could connect to the MariaDB server and restore the database. The issue with Docker is that you need to use TCP for database connection, not Unix sockets. Tikiwiki couldn't connect to the database, I tried to change the server name to 127.0.0.1, but it didn't help. The new installation of Tikiwiki couldn't connect to the database server as well.
OK, but we can have a virtual machine with any distribution and install everything there! That's right, you can choose VirtualBox or Gnome Boxes (which use KVM and QEMU), for example. The trick here was that I couldn't install VirtualBox – again, because Ubuntu 23.04 wasn't supported by VirtualBox. Gnome Boxes worked fine, but I thought of a simpler solution. By the way, I didn't find any easy way or receipt to fix the resolution in Gnome Boxes.
Solution
Ok, I just need to extract some articles, which are stored in some format in the database. So, I restored the database and dumped these articles into one file using SQL query. Then I converted these articles from Markdown to org using Pandoc, and now I have a single org file, that's it. Note: I thought at first that it was Markdown and used Pandoc converter from markdown, but TikiWiki has it's own syntax, which is also supported by Pandoc.
Conclusions
In this case, I have lots of questions:
- If PHP is still alive, then how do people develop using it? If you are a PHP developer, you have some apps which require PHP 7.4. Does no one of these developers use Ubuntu 23.04? Do all of them use pre-built Docker containers with their apps?
- Tikiwiki has issues with docker containers, so does no one of its developers use Docker?
- Why is PHP 7.4 considered outdated in Ubuntu, if it's still used on all the hostings by default? Which makes people use some strange external repository to install PHP 7.4.
- Does no one use VirtualBox on Ubuntu 23.04?
- Is everyone fine working with a small screen size in Gnome Boxes?
For me, it's at least strange, you know. :)