LAMP:Shell Script Install LAMP: Difference between revisions

No edit summary
No edit summary
 
Line 1: Line 1:
This script will update the system, install Apache, MariaDB, PHP 8.1 and all necessary dependencies. And enable PHP module for Apache and restart both Apache and MariaDB. At the end it will run command php -v to verify the installation.
This script will update the system, install Apache, MariaDB, PHP 8.1 and all necessary dependencies. And enable PHP module for Apache and restart both Apache and MariaDB. At the end it will run command <code>php -v</code> to verify the installation.


Please note that PHP 8.1 is currently not available in the default Ubuntu repository, so you will have to add the PPA repository from Ondřej Surý.
Please note that PHP 8.1 is currently not available in the default Ubuntu repository, so you will have to add the PPA repository from Ondřej Surý.
Line 34: Line 34:
</syntaxhighlight>
</syntaxhighlight>


This script will update the system, install Apache, MariaDB, PHP 7.4 and all necessary dependencies. And enable PHP module for Apache and restart both Apache and MariaDB. At the end it will run command php -v to verify the installation.
This script will update the system, install Apache, MariaDB, PHP 7.4 and all necessary dependencies. And enable PHP module for Apache and restart both Apache and MariaDB. At the end it will run command <code>php -v</code> to verify the installation.


Please note that this script is for Ubuntu specifically. If you use other distribution of Linux, it may require some modification.
Please note that this script is for Ubuntu specifically. If you use other distribution of Linux, it may require some modification.