Difference between revisions of "WebServer - Basic LAMP Stack Install"

From The TinkerNet Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 +
* Proven on Mint 19.3
 +
* Tested on SparkyLinux 5.11 ... You'll have to [https://tecadmin.net/install-mysql-server-on-debian9-stretch/ fix the missing MySQL] thing first)
 +
 
===Install the LAMP Stack===
 
===Install the LAMP Stack===
  
*<code>sudo apt install apache2libapache2-mod-php php-xml php-mbstring php-apcu php-intl imagemagick inkscape php-gd php-cli php-cgi php mysql-server mysql-client php-mysql</code>  
+
*<code>sudo apt install apache2libapache2-mod-php php-xml php-mbstring php-apcu php-intl imagemagick inkscape php-gd php-cli php-cgi php mysql-server mysql-client php-mysql</code>
  
 
====Configure MySQL====
 
====Configure MySQL====

Revision as of 22:33, 30 June 2020

Install the LAMP Stack

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

Configure MySQL

& 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;

(Hint: This'd be a good time to create yourself as that user with your non-admin password of choice...)