Skip to main content

How to install Joomla 4 on web hosting

| Gianluca Gabella | Joomla!
share on facebook share on twitter share on linkedin

Index:


Article updated! Here's how to install Joomla 4 on your web hosting!

This is it! Joomla4 is finally stable and ready for production sites (or at least for the most basic ones, for the more complex ones always evaluate first whether or not to use such a recent version), so let's discover the new major release of Joomla starting from the very beginning... the installation!

Let's prepare our test environment

First of all, let us prepare our test environment. We will need a web hosting and a mysql database.

  • Web hosting: if you don't have one available I recommend Hosting Dev from Host.it, it is free and perfectly capable of hosting a Joomla installation
  • MySql database: We will also need a database to host our site. A classic MySQL is more than fine, as long as the version is 5.5.3+.

If you have decided to use Hosting Dev, the control panel you will use will be a DirectAdmin. You can create a new database by clicking on "Manage MySQL/MariaDB" and then clicking on "Create a new database".

Enter the fields as you wish (for the password, you can also generate a random one). The result will look something like this:

installazione creazione del database

Make a note of these details because you will need them later.

Once you have your FTP credentials (for uploading files) and MySql credentials (for the database) download the Joomla4 installation file from here. The file we need is the first one: the latest release available.

Upload it to your web space with an FTP client such as FileZilla, and unpack it following our guide.

If everything went well, you will find all the Joomla4 installation files correctly unzipped in your web space.

Let's install!

Let us go via browser to our newly created test site. The first screen that will come up will be as follows:

installazione prima schermata

We can immediately choose the language 'Italian' or 'English', whatever you prefer.

Then enter the name of the site. In this case I will call it J'oomla4 Test'.

Let's click on "Setup Login Data".

Enter the administrator's data

The second screen is as follows:

installazione dati amministratore

There are four fields to be entered:

  • Administrator's first name and surname
  • Administrator's username
  • Password (there is also a password strength indicator, which will let you know graphically if the password you enter is good or too weak)
  • Administrator's email address

Make a note of what you have entered in these fields (especially username and password) because you will need them to log in to the control panel.

Once you have entered the data, click on "Setup Database Connection".

Configuring the database

The next step concerns the configuration of the database on which our Joomla installation will rely.

installazione database

You already have the data, they are the ones provided by your Host.co.uk test hosting.

  • Type of datase: leave MySQLi
  • Hostname: is usually localhost, in my case it is mysqlhost
  • Username: is the username of the MySQL user
  • Password: is the password of the MySQL user (both the psw and the user you created by creating the database)
  • Database name
  • Database password

Leave the last two fields unchanged and click on "install joomla".

Warning! If you are installing on a database whose hostname is something other than 'localhost' (as in my case), you will get these messages

  • You are trying to use a database host which is not on your local server. For security reasons, you need to verify the ownership of your web hosting account. Please read the documentation for more information.
  • To confirm that you are the owner of this website please delete the file named "XXX.txt" we have created in the "installation" folder of your Joomla site. Then select "Install Joomla" to continue.

installazione messaggi localhost

Don't panic! It is simply telling you that inside the FTP-accessible 'installation' folder there is a file called '_JoomlaPBBjUGDUn2h0L5KqVBILU.txt' (this is in my case, but the file name changes every time). All you have to do is delete it.

Once you have deleted the file (for example with FileZilla) go back to the installation screen and click on "install joomla" again (last button at the bottom!).

Installation completed!

If everything was successful, you will see a screen like the following:

installazione completata

Now you can click on the big red "Remove Installation folder" button (click OK in the control window that opens immediately afterwards). This step serves to remove from the server all installation files that you absolutely must not keep online (otherwise you risk someone else coming and doing big damage to your site).

The end :-)

Joomla! is installed! You can go directly from your browser to your test site and what you will see will be the homepage of Joomla 4 (still empty of course):

joomla 4 homepage

To go to the control panel of your new site, simply add the classic "/administrator" to the URL.

Have fun with Joomla 4! We will update in the coming weeks to see all the improvements and new features in detail.


If you liked this article, please share it!

share on facebook share on twitter share on linkedin
condividi su Facebookcondividi su Twittercondividi su LinkedIncondividi su WhatsAppcondividi su Telegram