Difference between revisions of "WebServer - Basic LAMP Stack Install"
Jump to navigation
Jump to search
(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...") |
|||
Line 1: | Line 1: | ||
− | === Install the LAMP Stack === | + | ===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 inkscape php-gd php-cli php-cgi</code> | *<code>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</code> | ||
+ | |||
+ | ==== Configure MySQL ==== | ||
+ | |||
*<code>sudo mysql_secure_installation</code> | *<code>sudo mysql_secure_installation</code> | ||
+ | *([[WebServer - MySQL Notes|Extra Instructions if you've never configured MySQL before]]) | ||
− | ==== & Test it ==== | + | ====& Test it==== |
*<code>sudo vi /var/www/html/info.php</code> | *<code>sudo vi /var/www/html/info.php</code> | ||
Line 15: | Line 19: | ||
Browse to [http://ServerAddress/ http://ServerAddress/info.php] & you should see a whole bunch of info about your PHP subsystem. | Browse to [http://ServerAddress/ http://ServerAddress/info.php] & you should see a whole bunch of info about your PHP subsystem. | ||
− | ==== Set up at least one user in mysql ==== | + | ====Set up at least one user in mysql==== |
− | * <code>sudo mysql -u root -p</code> | + | |
+ | *<code>sudo mysql -u root -p</code> | ||
CREATE USER 'someone'@'localhost' IDENTIFIED BY 'password'; | CREATE USER 'someone'@'localhost' IDENTIFIED BY 'password'; | ||
EXIT; | EXIT; |
Revision as of 01:21, 26 June 2020
Contents
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
Configure MySQL
sudo mysql_secure_installation
- (Extra Instructions if you've never configured MySQL before)
& 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;