Upgrading Nextcloud on Fedora: A Journey from PHP Errors to Success

Step 1: Identifying the Issue

I recently upgraded my Nextcloud instance on a Fedora server and faced several challenges, from compatibility issues with PHP 8.2 to database schema errors. Here’s how I navigated through the process.

Initially, I encountered an error stating my Nextcloud version was incompatible with PHP 8.2. To address this, I decided to upgrade Nextcloud instead of downgrading PHP.

Continue…

How to Change SSH Standard Port on Fedora with SELinux Enforced

When working with linux remotely, SSH is the most important tool you have. SSH enables you to access your server remotely and securely.

But SSH is not perfect in its default installation, and there so many ways to enhance the security of SSH on your system, so you minimize the risk of someone getting unauthorized access to your box.

One of these ways is changing SSH from the standard port (Port 22) to any other non-standard port.

Here, I will change the SSH port from 22 to 22002, as an example.

Continue…

Deploying Python3 Flask App On Apache 2 (Fedora 35 Server)

Since I’m more familiar with the apache web server on fedora, here’s the way to setup the server and deploy a flask app.

There are two ways for doing this, one by installing the wsgi module in apache, then configuring it, while the other method installs the wsgi module via pip, so it’s installed inside your python environment.

I’ll go with the first method, here. [more on the subject can be found in the mod_wsgi — mod_wsgi 4.9.0 documentation]

Continue…

Python Flask – Quick Start

Flask is a python framework to make it easier to handle client requests and create proper server responses. In it’s simplest form, Flask is a module that will enable your application to interact with a client via HTTP protocols.

Continue…

Migrating My Home Server from Arch Linux to Fedora 30

This is outdated, and many information here is not applicable. Refere to the updated version here

Why Migrate the Server?

Arch is an amazing linux distro, but being cutting-edge is the opposite of being stable. For my home server, I don’t need the latest and greatest as much as I need a stable server that does what it does with as less maintenance as possible. Hence, Archlinux is to replaced with a more stable Fedora distro.[Yep, I hate Ubuntu – though I  believe it is a good distro all-around .. just don’t like it, personally].

Storage-wise, I have one harddrive for the system installation, and two identical hard drives (4TB each) making a RAID drive, for the data.

Continue…