5,337
edits
(Created page with "How to setup a lamp stack using Ubuntu.<br> Linux, Apache, MariaDB, PHP<br> ==Setup== ===Install Ubuntu=== Just download and install ===Install Apache=== ===Installing PHP=...") |
(→Setup) |
||
Line 29: | Line 29: | ||
* Always use a version when installing things if you don't want things to break when you do updates | * Always use a version when installing things if you don't want things to break when you do updates | ||
** I.e. <code>php7.3-common</code> instead of <code>php-common</code> | ** I.e. <code>php7.3-common</code> instead of <code>php-common</code> | ||
===Installing MariaDB=== | |||
====Securing for Production==== | |||
MariaDB and MySQL provide a bash command [https://mariadb.com/kb/en/mysql_secure_installation/ <code>mysql_secure_installation</code>].<br> | |||
This command does the following: | |||
* Sets a root password | |||
* Remove anonymous users | |||
* Disallow root login remotely | |||
* Removes test databases | |||
<syntaxhighlight lang="bash"> | |||
sudo mysql_secure_installation | |||
</syntaxhighlight> |