ITEC464 MariaDB PHP WordPress Installationf23
ITEC464 MariaDB PHP WordPress Installationf23
Introduction: This lab will take you through the installation of MariaDB, and the creation of a basic
database to be used for a new WordPress installation. You’ll also install PHP as the server-side language
used by WordPress. Finally, completing the installation of WordPress.
Assumptions:
Azure Ubuntu VM has been assigned and you can log in. You may have completed some of these
steps in class, if so, start after that point.
Be sure to take screenshots of your work (put them at the end of this document) to prove completing
each step. When in doubt take a screenshot, place it at the end of this document in the place indicated.
Answer all questions in your own words in the places provided.
INSTALL OF MARIADB
Once logged into your VM, open a terminal window in the VM, type:
v. 11/2121
You can split this Microsoft Word document by using the View – Split menu options. Put the screenshot area on the bottom and the
instructions in the top of the split. Page 1 of 9
ITEC464 LAB: Installation of MariaDB, PHP, and WordPress on Ubuntu VM
SCREENSHOT!
sudo mysql_secure_installation
continue below…
v. 11/2121
You can split this Microsoft Word document by using the View – Split menu options. Put the screenshot area on the bottom and the
instructions in the top of the split. Page 2 of 9
ITEC464 LAB: Installation of MariaDB, PHP, and WordPress on Ubuntu VM
INSTALL PHP
Run the following command to install PHP and
supporting modules [all on one line, no carriage
returns]
SCREENSHOT!
v. 11/2121
You can split this Microsoft Word document by using the View – Split menu options. Put the screenshot area on the bottom and the
instructions in the top of the split. Page 3 of 9
ITEC464 LAB: Installation of MariaDB, PHP, and WordPress on Ubuntu VM
SCREENSHOT!
(example: wp_woolinski )
Run the permissions command to give the user full access (this is a one line command, NO
carriage returns) use EXACTLY THE wp_lastname you used above! Case sensitive
example:
GRANT ALL ON WP_464smith.* TO ‘wp_smith’@’localhost’ IDENTIFIED BY
‘York7800’ WITH GRANT OPTION;
FLUSH PRIVILEGES;
EXIT;
Install Wordpress
Download the latest WP release
We’ll download to the /tmp directory and extract it
there. Then move the package to the core location
that Apache will use as the published source for your
v. 11/2121
You can split this Microsoft Word document by using the View – Split menu options. Put the screenshot area on the bottom and the
instructions in the top of the split. Page 4 of 9
ITEC464 LAB: Installation of MariaDB, PHP, and WordPress on Ubuntu VM
installation:
curl https://wordpress.org/latest.tar.gz
--output wordpress.tar.gz
SCREENSHOT!
type
ls -al /var/www/html to see the
moved directory.
v. 11/2121
You can split this Microsoft Word document by using the View – Split menu options. Put the screenshot area on the bottom and the
instructions in the top of the split. Page 5 of 9
ITEC464 LAB: Installation of MariaDB, PHP, and WordPress on Ubuntu VM
<VirtualHost *:80>
ServerAdmin tiger@localhost
DocumentRoot /var/www/html/wordpress/
ServerName localhost
ServerAlias 464lastname < -- Put your last name here
<Directory /var/www/html/wordpress/>
Options +FollowSymlinks
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
reload apache
v. 11/2121
You can split this Microsoft Word document by using the View – Split menu options. Put the screenshot area on the bottom and the
instructions in the top of the split. Page 6 of 9
ITEC464 LAB: Installation of MariaDB, PHP, and WordPress on Ubuntu VM
Install WordPress
Success!
Click Log in
v. 11/2121
You can split this Microsoft Word document by using the View – Split menu options. Put the screenshot area on the bottom and the
instructions in the top of the split. Page 7 of 9
ITEC464 LAB: Installation of MariaDB, PHP, and WordPress on Ubuntu VM
This completes the lab. Shutdown your VM and stop the VM in the Azure labs.
v. 11/2121
You can split this Microsoft Word document by using the View – Split menu options. Put the screenshot area on the bottom and the
instructions in the top of the split. Page 8 of 9
i