Size: 13797
Comment:
|
Size: 11038
Comment: Major re-write to update installation instructions for Joomla! 4. Did not affect Ubuntu Server Settings, or LAMP Server.
|
Deletions are marked like this. | Additions are marked like this. |
Line 4: | Line 4: |
'''NOTE:''' Joomla! version 3.10 and version 4.0 will be released on August 17, 2021. This Wiki, may not be the proper procedure to install Joomla! 4.0. {{attachment:IconsPage/important.png}} This guide was written for Ubuntu Server 20.04 and Joomla 3.9.28. The guide may be applicable for other version of Joomla!, Ubuntu or other Debian based distributions, but they have not been tested. If you have success with using this guide on other versions of Ubuntu or other Debian based distributions please feel free to add a note to this document. |
{{attachment:IconsPage/important.png}} This guide was written for Ubuntu Server 20.04 and Joomla 4.0 The guide may be applicable for other version of Joomla!, Ubuntu or other Debian based distributions, but they have not been tested. If you have success with using this guide on other versions of Ubuntu or other Debian based distributions please feel free to add a note to this document. |
Line 52: | Line 50: |
== Download Joomla! == | == DOWNLOAD JOOMLA! == |
Line 57: | Line 55: |
SOURCEPKG=3-9-28/Joomla_3-9-28-Stable-Full_Package.zip SOURCEWWW=https://downloads.joomla.org/cms/joomla3/3-9-28/Joomla_3-9-28-Stable-Full_Package.zip?format=zip |
SOURCEPKG=Joomla_4-0-3-Stable-Full_Package.zip SOURCEWWW=https:https://downloads.joomla.org/cms/joomla4/4-0-3/Joomla_4-0-3-Stable-Full_Package.zip?format=zip |
Line 76: | Line 74: |
sudo chown -R www-data:www-data /var/www | sudo chown -R www-data:www-data /var/www/joomla |
Line 85: | Line 83: |
== Your Apache Virtual Host == | == YOUR APACHE VIRTUAL HOST == |
Line 99: | Line 98: |
DocumentRoot /var/www/mynewsite | DocumentRoot /var/www/joomla |
Line 113: | Line 112: |
=== Main Configuration === With the above requirements met, a database created and the required Joomla! files in place, you are ready to install Joomla!. '''Start the Joomla! web installer by opening your favorite browser and browsing to the site's domain name. On host installation you will use http://www.mynewsite.com.''' Joomla! will try to identify the Select Language field automatically from your browser's language. You can change this if needed. ==== Fill in the following information. ==== '''Site Name:''' the name of your website — this can be changed at any point later in the Site Global Configuration page. Description: enter a description of the website. This is a global fallback meta description used on every page which will be used by search engines. Generally, a maximum of 20 to 25 words is optimal. Again, this can be changed on the Site Global Configuration page at any time. For more on metadata, see Global Metadata Settings and Entering search engine meta-data. '''Admin Email Address:''' the admin email address. Enter a valid email in case you forget your password. This is the email address where you'll receive a link to change the admin password. '''Admin Username:''' Joomla! uses a default "admin" as the username for the Super User. You can leave it as is, change it now (which a good Security measure) or use My Profile in the Administration interface to change it later. '''Admin Password:''' remember that super user has maximum control of the site (frontend & backend), so try to use a difficult password. Use My Profile in the Administration interface to change it later. Confirm the password in the Confirm Admin Password box. '''Site Offline:''' click the Yes or No box. Yes - this means when installation is complete, your Joomla! website will display the 'Site is offline' message when you browse to yoursitename.com to view the home page. No - this means the site is live when you browse to yoursitename.com to view the home page. You can use the Site Global Configuration in the Administration interface to change the Offline status at any time. '''When everything on the first page is completed, click the next button to proceed.''' === Database Configuration === ==== Configuration Settings ==== You will need to enter the information about the database you will use for Joomla! now. It was suggested to write this information down under "PreCreate the MySql Database, the "JoomlaUser" and Grant Permissions to the Database" section. These instructions are a reference to installing with a MySQLi database. The instructions on the installation page are self explanatory, but here they are again: '''Database Type:''' MySQLi is the common database used '''Hostname:''' Where is your database located? Common is localhost '''Username:''' the username used to connect to the database '''Password:''' the password for the database's username '''Database Name:''' the name of the database '''Table Prefix:''' one is generated automatically, but you can change it. For example, jos3_ can be used. ''Just don't forget to put the underscore character (_) at the end of the prefix.'' '''Old Database Process:''' should the installer backup or delete existing tables during the installation of new tables? Click, Yes or No to select the choice. All these choices can be edited on the Site Global Configuration page, under Server options after the installation is completed. Note, you will break your installation if you change these settings after installation unless you have a complete copy of the current database being used by the Joomla! installation. Common uses would be to update the username and password of the database or to complete a move of an existing installation to a new host with different parameters. '''When all the information has been filled in, click the next button to proceed.''' === Finalize === ==== Overview ==== It is now time to finalize the Joomla! installation. The last page of the web browser installation contains all the information about the installation. This includes the options(at the top) for installing sample data and the installation's configurations(at the bottom). ==== Install Sample Data and Email Configurations ==== The first options are for automatically installing sample content to the website and emailing the configuration settings. If you are new to Joomla! it would be beneficial to install some sample data to see how Joomla! works. You can at this time choose to have the configuration settings emailed to you. If the Email Configuration choice is selected, the Email Password choice will appear. The email password is off by default for security. You can choose to have the password included, just click Yes. Time to check the configurations of your install and the environment of the installation. === Configuration Check === ==== Checking Your Configuration ==== If everything is in order, you will see the install at the top of the overview page. If not, this is the place to check and see what may be causing an issue. The section is broken into 4 groups: '''Main Configuration:''' All the website specific information, such as the website name, description, admin username, etc. '''Database Configuration:''' Contains the information about the database Joomla! will use. '''Pre-Installation Check:'''' These requirements must all be shown as Yes, otherwise you will not be able to install Joomla! With the exception of the PHP Version, the rest are usually controlled in the PHP.INI configuration file. Typical PHP settings that might cause the install to fail and may need adjusting include the following with suggested values: (1) memory_limit (64M), (2) max_execution_time (30), (3) post_max_size (30M), (4) upload_max_filesize (30M). For more information, see PHP.INI configuration file file. '''Recommended Settings:''' these are settings are recommended in your PHP configuration, but will not prevent Joomla! from being installed. You can refer to the above instructions on how they may be changed. If everything is correct and all checks are passed, you may now click the Install button in the top right corner of the Overview page. '''This will start the actual installation process.''' After you click the Install button, you should see a progress bar with additional information of the installation. Once the installation completes, you should see the success page! === Finishing Up === ==== Success and Finishing Up the Installation ==== '''Congratulations! Joomla! 3 is now installed.''' If you want to start using Joomla! right way without installing extra languages there is one last step to complete the installation. You must delete the Installation Folder. Click on Remove Installation folder and a success message will appear. Now you can navigate to the Administrator log in by clicking Administrator or go right to your site by clicking Site. === Installing Extra Languages === Before you complete your installation by deleting the Installation Folder, click on: __Extra steps: Install languages__ This will continue the installation of Joomla! by taking you to a new installation page. A list of language packs is displayed. Check the language or language packs you wish to install. Remember the following: Language packs included in custom distributions will not be listed at this stage as they are already installed. A version of the packs proposed will match the Joomla Major version (3.0.x, 3.1.x, etc.). The minor version of the pack may not correspond, e.g. you are installing version 3.3.3 and a 3.3.2 language pack is shown. Unmatched language packs in the above example may have untranslated strings. The unmatched language packs will be offered as an update when the packs are updated by the registered Translation teams. The available update will be shown in the Control panel as well as in Extensions Manager → Update. This behavior is similar to Extensions Manager __Install Languages__. Click __Next__ and a progress bar will be display while the language pack or packs are downloaded. ==== Choose Default Language ==== When the download is complete you can choose the default language for the Site and the Administrator interface. '''Make your choices for default languages. ''' You may also choose to activate the multilingual features of Joomla! at this time too. Click Yes next to Activate the multilingual feature, two additional choices will appear. '''Install localized content,''' yes or no. This will automatically create one content category for each language installed and one featured article with dummy content for each content category installed. '''Enable the language code plugin,''' yes or no. If enabled, the plugin will add the ability to change the language code in the generated HTML document to improve SEO. When you completed all the choices of language installation, click Next to proceed. === Finalize === ''You will now be presented with a very similar Congratulations! Joomla! is now installed.'' The difference will be a notation of the default Administrator and Site language settings, if they were set. You will also not see the Extra Steps message in the bottom right. '''Now you can delete the Installation Folder.''' Click on __Remove Installation folder__ and a success message will appear. '''Now you can navigate to the Administrator.''' Log in by clicking __Administrator__ or go right to your site by clicking __Site__. ____ Congratulations and welcome to the world of Joomla! |
Once the above requirements are met, a database created and the required Joomla! files in place, you are ready to install Joomla!. Enter https://www.yoursitename.com into your browser, and you should see the installation screen. === MAIN CONFIGURATION === Joomla will try to '''Select the Language''' automatically from your browser's language. You can change this if needed. Fill in the following information. * '''Site Name:''' The name of your website — this can be changed at any point later in the Site Global Configuration page. When everything on the first page is completed, click the '''Setup Login Data''' button to proceed: {{attachment:joomla1.png||align="right"}} === LOGIN DATA === You should now see the login data screen. Fill in the following information. * '''Real Name:''' The name of the Super User. This is how Joomla will greet you when you log in! * '''Super User account username:''' The username for the '''Super User'''. Avoid using admin (a good Security measure) or use My Profile in the Administration interface to change it later. * '''Admin Password:''' Remember that Super User has maximum control of the site (frontend & backend), so try to use a difficult password. Use My Profile in the Administration interface to change it later. * '''Super User Email Address:''' The Super User email address. Enter a valid email in case you forget your password. This is the email address where you'll receive a link to change the admin password. When everything on the second page is completed, click the '''Setup Database Connection''' button to proceed. {{attachment:joomla2.png||align="right"}} === DATABASE CONFIGURATION === Grab the information you wrote down when you Created your MySql Database, above. These instructions are a reference to installing with a MySQLi database. They are on the installation page and are self explanatory, but here they are for reference: * '''Database Type:''' MySQLi is the common database used * '''Hostname:''' Where your database is located. Common is localhost, but some hosts use a specific database server such as dbserver1.yourhost.com * '''Username:''' The username used to connect to the database * '''Password:''' The password for the database's user * '''Database Name:''' The name of the database * '''Table Prefix:''' This is generated automatically and can be a helpful security step, but you can change it. For example, jos3_ can be used. Just don't forget to put the underscore character (_) at the end of the prefix. * '''Connection Encryption:''' specifies how the connection to the database should be encrypted. If you don't know - then it's best to stick to the default. However, this allows enterprises with two way SSL encryption to the database to provide it. All these choices and more can be edited on the Site Global Configuration page, under Server Options after the installation is completed. Note, you will break your installation if you change these settings after installation unless you have a complete copy of the current database being used by the Joomla installation. Common uses would be to update the username and password of the database or to complete a move of an existing installation to a new host with different parameters. After you click the '''Install Joomla''' button, you should see the Joomla logo spinning. Once the installation completes, you should see the success page! {{attachment:joomla3.png||align="right"}} == FINISHING UP THE INSTALLAION == Congratulations! Joomla! 4 is now installed. If you want to start using Joomla right way without installing extra languages there is one last step to complete the installation. You must delete the '''Installation Folder'''. Click on '''Remove installation folder''' and a success message will appear. Now you can navigate to the '''Administrator Dashboard''' log in by clicking '''Complete & Open Admin''' or go right to your site by clicking '''Complete & Open Site'''. You may see a section with recommended PHP settings. * '''Recommended Settings:''' These settings are recommended in your PHP configuration, but will not prevent Joomla! from being installed. You can refer to the above instructions on how they may be changed if there is a need to do so. {{attachment:joomla4.png||align="right"}} '''INSTALLING EXTRA LANGUAGES''' Now you have a decision to make. If you wish to complete the installation without Installation Extra Languages,delete the 'installation folder'. As part of the Joomla installation process you are given the opportunity to install additional languages before you complete the installation by deleting the Installation Folder.To do this click on the Install Additional Languages button. This will take you to an extra installation page allowing you to select the languages you require. A list of language packs is displayed. Select up to 3 languages you wish to install (more than 3 at once can cause timeout issues - you can install more later). Remember the following: * Language packs included in custom distributions will not be listed at this stage as they are already installed. * A version of the packs proposed will match the Joomla Major version (4.0.x, 4.1.x, etc.). The minor version of the pack may not correspond, e.g. you are installing version 4.0.3 and a 4.0.2 language pack is shown. * Unmatched language packs may have un-translated strings. * The unmatched language packs will be offered as an update when the packs are updated by the registered Translation teams. The available update will be shown in the Control panel as well as in '''Extensions''' '''Manager → Update.''' This behaviour is similar to '''Extensions Manager → Install Languages.''' Click '''Next''' and a progress bar will be display while the language pack or packs are installed. {{attachment:joomla5.png||align="right"}} '''1. CHOOSE DEFAULT LANGUAGE.''' When the installation of the languages is complete you will now be presented with a very similar '''Congratulations,Your Joomla site is ready'''. The difference will be a list of the installed languages allowing you to select the default language for the Site and the Administrator interface. * Select the default language you wish to use. * When you have selected the default language, click the '''Set default language''' button to confirm. * A system message will be displayed confirming Joomla has set the default ADMINISTRATOR and SITE language. That message can be closed. {{attachment:joomla6.png||align="right"}} '''2. FINALISE''' You must now delete the '''Installation Folder'''. Click on '''Remove Installation folder.''' You will get a confirmation message and now can navigate to the Administrator Dashboard log in by clicking '''Complete & Open Admin''' or go right to your site by clicking '''Complete & Open Site.''' _________ '''Congratulations and welcome to the world of Joomla!''' |
This guide was written for Ubuntu Server 20.04 and Joomla 4.0 The guide may be applicable for other version of Joomla!, Ubuntu or other Debian based distributions, but they have not been tested. If you have success with using this guide on other versions of Ubuntu or other Debian based distributions please feel free to add a note to this document.
Joomla! Community Documentation
Joomla! provides an online collaborative community manual for Joomla! users, developers or anyone interested in learning more about Joomla! Currently, they have over 4000 articles written and maintained by Joomla! community members.
PREPARE FOR INSTALLATION
This guide assumes you have installed a LAMP SERVER. See: LAMP_SERVER. NOTE: The command line in the instructions to install the LAMP SERVER are incorrect, the correct command line is: sudo tasksel install lamp-server^
- (Note the caret ^ at the end of the command line.)
There are several prerequisites before you start installing Joomla!.
1. Recommended PHP.INI Settings
PHP settings must be adjusted to install. The settings are usually in "/etc/php/7.4/apache2/php.ini"
The values for PHP.INI below are suggested values only.
memory_limit - Minimum: 64M Recommended: 128M or better upload_max_filesize - Minimum: 30M post_max_size - Minimum: 30M max_execution_time: Recommended: 30
2. Create the MySql Database, the "JoomlaUser" and Grant Permissions to the Database
_Write this Information Down_
sudo mysql -u root -p CREATE DATABASE joomla; CREATE USER 'joomlauser'@'localhost' IDENTIFIED BY 'new_password_here'; GRANT ALL ON joomla.* TO 'joomlauser'@'localhost'; FLUSH PRIVILEGES; EXIT;
SECURITY NOTE You do not want Joomla to use the mysql 'root user' to access the database. The above command creates a mysql user (other than the mysql root user) with privileges to use the joomla database. You will need to chose the yourusername and yourpassword.
3. Activate Uncomplicated FireWall
sudo ufw enable sudo ufw allow 'Apache Full'
An introduction to UFW can be found here: UFW
DOWNLOAD JOOMLA!
1. Set two variables for downloading and extracting Joomla.
SOURCEPKG=Joomla_4-0-3-Stable-Full_Package.zip SOURCEWWW=https:https://downloads.joomla.org/cms/joomla4/4-0-3/Joomla_4-0-3-Stable-Full_Package.zip?format=zip
2. Create a temporary directory to download and extract the Joomla package.
mkdir joomla cd joomla wget $SOURCEWWW unzip $SOURCEPKG rm -f $SOURCEPKG
3. Move the files and change ownership
cd .. sudo mv joomla /var/www sudo chown -R www-data:www-data /var/www/joomla
4. Change File and Directory Permissions
sudo find /var/www/joomla/ -type f -exec chmod 644 {} + sudo find /var/www/joomla/ -type d -exec chmod 755 {} +
YOUR APACHE VIRTUAL HOST
1. Create your Virtual Host
sudo cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/mynewsite.conf sudo nano /etc/apache2/sites-available/mynewsite.conf
2. Copy the following into your newly created Virtual Host
<VirtualHost *:80> ServerName mynewsite.com ServerAlias www.mynewsite.com ServerAdmin webmaster@mynewsite.com DocumentRoot /var/www/joomla LogLevel error </VirtualHost>
3. Enable your Virtual Host
sudo a2ensite mynewsite sudo a2dissite 00-default.conf sudo systemctl restart apache2.service
START INSTALL
Once the above requirements are met, a database created and the required Joomla! files in place, you are ready to install Joomla!.
Enter https://www.yoursitename.com into your browser, and you should see the installation screen.
1. MAIN CONFIGURATION
Joomla will try to Select the Language automatically from your browser's language. You can change this if needed. Fill in the following information.
Site Name: The name of your website — this can be changed at any point later in the Site Global Configuration page. When everything on the first page is completed, click the Setup Login Data button to proceed:
2. LOGIN DATA
You should now see the login data screen. Fill in the following information.
Real Name: The name of the Super User. This is how Joomla will greet you when you log in!
Super User account username: The username for the Super User. Avoid using admin (a good Security measure) or use My Profile in the Administration interface to change it later.
Admin Password: Remember that Super User has maximum control of the site (frontend & backend), so try to use a difficult password. Use My Profile in the Administration interface to change it later.
Super User Email Address: The Super User email address. Enter a valid email in case you forget your password. This is the email address where you'll receive a link to change the admin password.
When everything on the second page is completed, click the Setup Database Connection button to proceed.
3. DATABASE CONFIGURATION
Grab the information you wrote down when you Created your MySql Database, above.
These instructions are a reference to installing with a MySQLi database. They are on the installation page and are self explanatory, but here they are for reference:
Database Type: MySQLi is the common database used
Hostname: Where your database is located. Common is localhost, but some hosts use a specific database server such as dbserver1.yourhost.com
Username: The username used to connect to the database
Password: The password for the database's user
Database Name: The name of the database
Table Prefix: This is generated automatically and can be a helpful security step, but you can change it. For example, jos3_ can be used. Just don't forget to put the underscore character (_) at the end of the prefix.
Connection Encryption: specifies how the connection to the database should be encrypted. If you don't know - then it's best to stick to the default. However, this allows enterprises with two way SSL encryption to the database to provide it.
All these choices and more can be edited on the Site Global Configuration page, under Server Options after the installation is completed. Note, you will break your installation if you change these settings after installation unless you have a complete copy of the current database being used by the Joomla installation. Common uses would be to update the username and password of the database or to complete a move of an existing installation to a new host with different parameters.
After you click the Install Joomla button, you should see the Joomla logo spinning. Once the installation completes, you should see the success page!
FINISHING UP THE INSTALLAION
Congratulations! Joomla! 4 is now installed. If you want to start using Joomla right way without installing extra languages
there is one last step to complete the installation. You must delete the Installation Folder. Click on Remove installation folder and a success message will appear. Now you can navigate to the Administrator Dashboard log in by clicking Complete & Open Admin or go right to your site by clicking Complete & Open Site. You may see a section with recommended PHP settings.
Recommended Settings: These settings are recommended in your PHP configuration, but will not prevent Joomla! from being installed. You can refer to the above instructions on how they may be changed if there is a need to do so.
INSTALLING EXTRA LANGUAGES
- Now you have a decision to make. If you wish to complete the installation without Installation Extra Languages,delete
- the 'installation folder'.
- As part of the Joomla installation process you are given the opportunity to install additional languages before you complete the installation by deleting the Installation Folder.To do this click on the Install Additional Languages button. This will take you to an extra installation page allowing you to select the languages you require.
A list of language packs is displayed. Select up to 3 languages you wish to install (more than 3 at once can cause timeout issues - you can install more later). Remember the following:
- Language packs included in custom distributions will not be listed at this stage as they are already installed.
- A version of the packs proposed will match the Joomla Major version (4.0.x, 4.1.x, etc.). The minor version of the pack may not correspond, e.g. you are installing version 4.0.3 and a 4.0.2 language pack is shown.
- Unmatched language packs may have un-translated strings.
- The unmatched language packs will be offered as an update when the packs are updated by the registered Translation teams.
The available update will be shown in the Control panel as well as in Extensions
Manager → Update. This behaviour is similar to Extensions Manager → Install Languages.
Click Next and a progress bar will be display while the language pack or packs are installed.
1. CHOOSE DEFAULT LANGUAGE.
When the installation of the languages is complete you will now be presented with a very similar Congratulations,Your Joomla site is ready. The difference will be a list of the installed languages allowing you to select the default language for the Site and the Administrator interface.
- Select the default language you wish to use.
When you have selected the default language, click the Set default language button to confirm.
- A system message will be displayed confirming Joomla has set the default ADMINISTRATOR and SITE language. That message can be closed.
2. FINALISE
You must now delete the Installation Folder. Click on Remove Installation folder. You will get a confirmation message and now can navigate to the Administrator Dashboard log in by clicking Complete & Open Admin or go right to your site by clicking Complete & Open Site. _
Congratulations and welcome to the world of Joomla!