Now we have a suitably configured host and the Joomla application has been deployed it's time to do the initial configuration. For this we need to create the superuser and connect to the database to deploy the initial content.
Initial Configuration
The first task to complete is to create the super user and load the database content so we actually have a Joomla application to work with.
Once that is complete Joomla can do some basic self-checks and we can work through the rest of the initial configuration. Since I'm building this on a private network there are some things I don't have to immediately worry about so I can start exploring more quickly but of course it's really important to keep track of what's been done and what has been deferred.
Point your browser at your newly installed Joomla! system, maybe something like http://joomlacube-dev.example.com, and you should be greeted by the Joomla installer.

So pick your installation language - you can add more later - and give a name for the site that will be used in the Title bar and then click on the Setup Login Data button.
If you get a nice red screen saying something went wrong, the good news is it means Apache2 at least is working. Did you remember to change the ownership of all the Joomla! files to www-data:www-data after you extracted the .zip file? If you get a 404 error (or a page full of helpful search results and adverts) then you've got a more fundamental issue with Apache2, and if systemctl start apache2 doesn't fix it then you need to sort that and then come pack. Diagnosing Apache2 issues is not something I can address here but then maybe one day I'll add that as an article...
The next step is to set the initial Super User account you'll use to at least complete the rest of the setup.

All Joomla! users have a real name that gets displayed, a login name and a password that only the user should know. I recommend you have a different name for the real name and username for your Super User and preferably use a pass phrase with capitals and numbers too. Later you can also add 2FA protection, but if your login pages can be reached over the internet you can bet somebody is going try and break in so don't make it easy for them. Using long random passwords is also advisable for privileged accounts and using something like KeePass to safely record them means you really haven't got an excuse not to.
When you're click on the Setup Database Connection to go to the nest step

So if you're following the series and your using a lab machine as I have, then you can connect using MySQLi and localhost as shown. If your working in a hosting environment then you'll need to use the appropriate details they provide - which may well be the same.
Use the same database username and password and the same database name that you created in Create Joomla Database.
The table prefix, which must end with an underscore _ character serves two purposes:
- It lets us have multiple Joomla! (and maybe other apps) in a single MariaDB database. A lot of hosting providers only allow a single database, at least on their cheaper plans, so this will let you have a main Joomla! site and maybe additional sites for pre-production or other projects.
- Prefixing all the table names also breaks certain classes of web attacks, or at least makes them harder. If I know there is a j4users table in the database, I may be able to craft an attack on that table and gain access to some useful info. If that table is actually called vo61n_j4users in this site, and I don't know the prefix it makes it harder to succeed. Some people quite legitimately regard this a pointless security-by-obscurity, but every little helps.
Click the install button to complete the installation and database initialisation and after a few seconds we should be greeted with confirmation.

Click onto the Open Administrator and the installer will complete and be deactivated and the Joomla Administrator Login page will open and prompt you for your login credentials. And yes, I do need to adjust the PHP config at a later step.

Type in the username and password you just created on the Login Data page (I hope you didn't use ExampleAdmin as the user) and click the Log in button to get started.
First Login

The one thing you can't miss is on the System menu is a big red banner warning that the server is using PHP 7.4.3 which is now out of support. Since this is a development system I'm not too worried about that right now as it still works, but before we move to the Production system I will need to check the PHP version there [Spoiler: of course Mythic Beasts are up to date] and make sure the Test (or maybe pre-prod) instance has the same version so I can be sure it works ahead of launch.
Enable the anonymous stats collection if you like and then we need to work through any other warnings.
Installation Configuration alerts
System > Information: Installation Messages
I had 3 initial warnings and two messages

Taking the three warnings first:

Curiously under System > Setup : Global configuration > Server : Server there is a setting for Path to Temp Folder that points to the [Joomla install directory]/tmp so not entirely sure why it's complaining the PHP temporary folder is not set. From reading a few forum posts it seems this can be ignored if everything is working fine as there are defaults if it's not explicitly set.


The post_max_size and upload_max_filesize parameters are both in the official Joomla! documentation to be modified before installation, so if you see either of these it means you've been naughty and not read the manual first, like about 90% of people. Or you're being clever and waiting until Joomla! is installed so you can confirm exactly which php.ini file it is using so you can modify the right one.
As the Super User you have access to the System > Information : System Information. Click on the PHP Information tab.

You can either edit the appropriate parameters in the active php.ini file - /etc/php/7.4/apache2/php.ini in this case - but that risks being overwritten on any future update to PHP. A better approach is to create a specific configuration file the additional .ini files directory which in this case is /etc/php/7.4/apache2/conf.d.
From a command prompt change to to the /etc/php/7.4/apache2/conf.d directory. You will need root access to create the 50-joomla.ini file which should contain the following lines:
; Joomla config for php.ini
post_max_size=16M
upload_max_filesize=16M
output_buffering=off
Save the file and then chmod 644 50-joomla.ini to make it readable by PHP. Note: This sets the minimum recommendation. You might find you need to increase this futher if you're uploading large files - I've seem some recommendation for 128M and even 256M.
The last line also disables the output buffering which was flagged on at the end of installation. You hadn't forgotten about that had you?
Now this is great while you're working off a local dev or test host under your control, but on your live site you may not be able to do this. I've seen references to putting a php.ini or .htaccess file in the Joomla application directory otherwise it's probably best to contact your hosting provider on how to do this. I'll include the config for Mythic Beasts in the article for the live upload.
Configure mail
Note: If you want to reconfigure this later you must have the super-user role.
The mail configuration can be found under System > Setup : Global configuration > Server : Mail and give three options.
The default option is PHP mail, which needs extra work and from my experience with Nextcloud is problematic. Since I have an internal mail server already that will send internally without any further configuration this is the easiest option for me.
| Mail Setting | Value | Comment |
| Send Mail | Yes | |
| From Email | For testing this will be both the sender and recipient. For real use it can be any address your mail server will accept | |
| From Name | Joomla Email | Any name will do here |
| Mailer | SMTP | |
| SMTP Host | myinternalmailhost.example.com | The hostname of your mail server |
| SMTP Port | 25 | Standard SMTP |
| SMTP Security | None | Not needed for my internal mail setup |
| SMTP Authentication | No | Not needed for my internal mail setup |
For the production instance I will expect to set up secure submission using TLS with a named user.
There's also the option to use a call to a local sendmail program as well if you prefer.
Click the Save button to keep your changes. If you go back to the Home Dashboard and look for the Latest Actions tile you should see it's recorded the fact that you've just changed the settings of the application configuration too. Big Brother is watching!
Who Are You?
During installation an initial super-user was created. A good security practice is to grant the minimum permissions neccessary to users and I do not want to use the super-user on a routine basis as it's far too powerful and I also don't want to see its name published anywhere. By default articles show who they were written by so to me it makes sense to make sure usernames do not reflect the author names. It may be a little bit of security-by-obscurity but there's no point in making it too easy.
Talking of which, all the while I'm working on the Development system a simple password is fine, but once we start moving into test then not only should passwords be suitably complex but it's time to check out the 2FA capability and certainly by the time we're ready to upload to the Production site 2FA should be mandatory for any sort of admin role and preferably for all users with the ability to change content.
Creating a user is simple enough. Login to the administrative URL with an administrator user, which for the first time will be your super-user then click on Users > Manage > New

The Users: New form just asks a few basic questions. On the Account Details tab it wants a friendly/formal name that will appear on articles, the actual login name and password and an email address.

The first issue I ran into was I'd used my own email for the super-user and Joomla will not allow two users to have the same email address. A simple workaround was to use a different email address for now. I also set the option to Require Password Reset and it then complained it couldn't send email when I saved the user, so this needs looking into. Another future article methinks.
The next step is to decide on the rights for the user. Click on the Assigned User Groups tab.

As this will be my "working" user for content creation I assigned the Registered, Author, Editor and Publisher groups and clicked the Save button. Logging in as my user didn't actually let me do anything useful at this point so I added the Administrator user as well so I can access the admin functions to create articles. Click save again and close.
I need to look at this in more detail before we move this to Production, but for now I have a sufficiently powerful user for creating the site. My suspicion is at some point I'll drop the Administrator role from this user and create myself a specific administrator user and it's probably worth also creating a backup superuser account just in case the primary one gets locked. But that's a task for another day. I'm also not convinced I need to be registered, author and editor if I'm also a publisher, again this is something to look into.
Update: It looks like roles inherit rights from higher in the tree, so I just needed administrator and publisher. Still need to fully investigate though as there's a complex permissions system behind all this.
First Post
Now that I have a working user to play with, it's time to create some content. As mentioned in Hello World I'm sharing my Joomla setup journey so these first steps provide some good content, but of course it's yet more fun to be learning how to use a content management system by creating content from scratch. As mentioned in that post Joomla has the following basic concepts:
- Articles
- Categories
- Menus
At this point I'm just wanting to prove Joomla is working so we're effectively splitting into parallel streams of completing initial setup, finalising the technology stack and starting content creation in the First Posts article.
I already have the default "uncategorised" category, so that'll do for now. And the default Main Menu will also do for initial testing so lets create a first article which as is traditional for the first time doing something in tech I've titled "Hello World".
To start with this is created as a simple stub for testing purposes. To create an article is simply a case of logging in to the administration URL with our freshly created working user and going to Content > Articles > New

Every article needs a title, which in this case is "Hello World" and some initial text which to start with I put a simple description for what the article is (hopefully) going to be.
As this is just a stub I set the Status to Unpublished, maybe I can make that the default at some point? I only have the one category so far, the default "Uncategorised" and the last setting to change is to set Access to "Registered" so only logged-in users (i.e. me) get to see it for now. With all this in place, I can click the "Save & Close" button to create my first article.
As a quick checkout, I switch the status to published and access to public and save and then open a new browser session to view the result.
I see nothing...
Ooops. This is not quite what I was expecting. The "Hello World" is published and set to public access, so it should be visible on the home menu.

Looking at the default Main Menu and playing with the Blog Layout settings had no effect. It was already set to All Categories and there was no other selection criteria, and nothing in the other tabs that could explain it. I then went back to the details tab, and in particular the Menu Item Type which was set to Featured Articles. Hmm.
On the Content > Articles list is a column marked Featured with a grey circle next to the Hello World article. Clicking on that makes it turn into a gold star and makes the article a featured article.

Remember the Menu Item Type? Featured articles. Ah-ha! Now the home page displays the intro to the article as expected

So I'm calling that a successful initial validation. I have created a user and published some content. Now the real work can begin. The last step is remove the featured article status from Hello World and to set the access back to Registered so that it doesn't appear on the site until we're ready.
To-Do List Additions
- Look at options for PHP 8.0+ on Ubuntu 20.04 LTS
- Understand the permissions system
Note: This is based on a brand new Joomla 4.2.8 install in February 2023, on Ubuntu 20.04 LTS. If you have a different version, themes or templates it may look different.