WebServer - Basic LAMP Stack Install

From The TinkerNet Wiki
Revision as of 00:11, 29 May 2020 by Tinker (talk | contribs) (Created page with "=== Install the LAMP Stack === *<code>apt install apache2 mysql-server mysql-client php php-mysql libapache2-mod-php php-xml php-mbstring php-apcu php-intl imagemagick inksca...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Install the LAMP Stack

  • apt install apache2 mysql-server mysql-client php php-mysql libapache2-mod-php php-xml php-mbstring php-apcu php-intl imagemagick inkscape php-gd php-cli php-cgi
  • sudo mysql_secure_installation

& Test it

  • sudo vi /var/www/html/info.php
<?php 
phpinfo();
?>

Browse to http://ServerAddress/ & you should see the default page.

Browse to http://ServerAddress/info.php & you should see a whole bunch of info about your PHP subsystem.

Set up at least one user in mysql

  • sudo mysql -u root -p
CREATE USER 'someone'@'localhost' IDENTIFIED BY 'password';
EXIT;