To install PHP on your system, follow these steps:

1. Update your system by running the following commands:
“`
sudo apt update
sudo apt upgrade
“`

2. Install PHP by running the following command:
“`
sudo apt install php
“`

3. Verify the installation by running the following command:
“`
php –version
“`

You should see the version of PHP installed on your system.

4. (Optional) Install additional PHP extensions if needed. For example, if you want to install the MySQL extension, run the following command:
“`
sudo apt install php-mysql
“`

5. Restart the web server to apply the changes. For example, if you’re using Apache, run the following command:
“`
sudo systemctl restart apache2
“`

Now PHP is installed on your system and ready to be used. You can create PHP files ending with the .php extension and access them through a web server to execute PHP code.