Among the supported features are page caching, RSS feeds, printable versions of pages, news flashes, blogs, search, and support for language internationalization.
In order for Joomla to function one will need the following components installed and configured:
- An HTTP server with support for PHP(in the following example Apache HTTP Server will be used)
- Actual PHP libraries
- An SQL engine(PostgreSQL, MySQL)
However don't be discouraged. It is the scope of this article: to simplify the installation & configuration to get you underway as soon as possible.
In place of a PHP server
Install the AUR package.
Start by installing all of the necessary packages:
For MySQL(MariaDB) or PostgreSQL see #Choosing between MySQL and PostgreSQL
After following the instructions you should have a running copy of Apache.
Now to enable PHP support we need to get back to editing
PHP is known not to work with
mod_mpm_event.so module. So we need to disable it in favor of
mod_mpm_prefork.so like this:
#LoadModule mpm_event_module modules/mod_mpm_event.so LoadModule mpm_prefork_module modules/mod_mpm_prefork.so
Now we need to add(uncomment) the following line after the
LoadModule php7_module modules/libphp7.so
Add the handler:
AddHandler php7-script php
Append at the end of the
And we're done!
See MariaDB to install.
After the base installation and configuration has been completed, it is time to perform some more detailed setup.
First, create the database for your future website:
$ mysqladmin -u root -p create joomla
The naming convention is optional, but for the sake of clarity the database will be called 'joomla'
It is recommended to avoid using root MySQL account for everyday tasks. In order to create another user one must first invoke mysql interface with:
$ mysql -u root -p
It will prompt you for MySQL's root password. If everything went OK and MySQL server is running, you sould end up with MariaDB prompt akin to this one:
In order to create a privileged user issue a following command:
GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES, \ LOCK TABLES ON joomla.* TO '$USER'@'localhost' IDENTIFIED BY '$PASSWD';
If you are setting up a personal server feel free to experiment with the $USER and $PASSWD values.
- The password you enter here will be saved in ~/.mysql_history;
- It is impromptu that you get rid of the lines containing your password from that file;
Now, to apply these settings:
FLUSH PRIVILEGES; quit
Now to setup our PHP server. We will be running it using Apache.
A minimal config goes as follows:
- Comment out
;output_buffering = 4096
- Edit the following value for a more verbose error reporting
error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT display_errors = On
- Optional: enable logging
log_errors = On
- Enable MySQL support(uncomment the following options):
To test whether PHP was configured properly add this line somewhere in the body of a simple html page file:
<?php echo '<p>Hello World</p>'; ?>
Save this as some_page.php
Now restart httpd and navigate to http://localhost/some_page.php
By now you should have a working instance of Apache with PHP and MySQL up and running.
Now to get started with joomla, copy the contents of /usr/share/webapps/joomla to your document root.
Navigate to your localhost
You should be presented with the Joomla! installation screen.
The file Cache Storage is not supported on this platform
It is most likely that Apache doesn't have write permissions on $DocumentRoot/cache
Since by default Apache is ran as 'http' user, those must be tweaked accordingly for
Choosing between MySQL and PostgreSQL
When choosing between MySQL(MariaDB) and PostgreSQL one should consider that MySQL's design is supposed to be fast and light vs more solid all-in-one PostgreSQL approach. For the purpose of this article MySQL was chosen because:
- it is more lightweight
- it is licensed under GPL(vs MIT)