Exercises
It’s time to apply the knowledge you’ve acquired in this chapter by using the CLI to perform some basic operations.
To complete the exercises proposed in this chapter, you will need to have SSH access to your web hosting. If you are not sure of this, check with your hosting service provider.
Exercise 1 – accessing Joomla’s CLI
Access your Joomla installation via SSH and locate the root folder – for example, public_html
. Then, navigate to your root folder and then to the cli
folder using the cd
command. Start the CLI using the php joomla.php
command and press Enter.
Check the available commands by using php
joomla.php list
.
Exercise 2 – Scheduled Tasks via the CLI
Using your Joomla CLI, check whether the website has some Scheduled Tasks configured. Use the php joomla.php scheduler:list
command and press Enter.
Disable the two scheduled tasks we created in the exercises in Chapter 9, Planning Operations with Scheduled...