Step 1: Acquire PuTTy (or use the VNC Console tab of your Control Panel)
Step 2: Add additional repository
Code: Select all
rpm -ivh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpmStep 3a: Install MySQL (MariaDB)
Code: Select all
yum -y install mariadb-server mariadbCode: Select all
systemctl start mariadb.service
systemctl enable mariadb.service
Code: Select all
mysql_secure_installationStep 4a: Install Apache
Code: Select all
yum -y install httpdCode: Select all
systemctl start httpd.service
systemctl enable httpd.serviceCode: Select all
firewall-cmd --permanent --zone=public --add-service=http 
firewall-cmd --permanent --zone=public --add-service=https
firewall-cmd --reloadVisit your server's IP address (for example http://192.168.1.100), and if everything went to plan, you should be greeted by the default Apache installation welcome page.
Step 5a: Install PHP
Code: Select all
yum -y install phpCode: Select all
systemctl restart httpd.serviceCode: Select all
yum -y install php-mysqlCode: Select all
systemctl restart httpd.serviceStep 6a: phpMyAdmin (technically option as you can manage mysql via command line)
Code: Select all
yum install phpMyAdminCode: Select all
vi /etc/httpd/conf.d/phpMyAdmin.confYou can only exit, or save and exit, from VIM from the execute phase. And to exit, you type ":q!" and hit ENTER. To save and exit, you enter ":wq" and hit ENTER. Fun, right?!
Now, back to the conf file, since most ISP assigned IP addresses can (and will) change, you will simply want to comment out the entire section between:
Code: Select all
<Directory /usr/share/phpMyAdmin/>
and
</Directory>Step 6c: Change phpMyAdmin authentication type
Code: Select all
vi /etc/phpMyAdmin/config.inc.phpCode: Select all
$cfg['Servers'][$i]['auth_type']     = 'cookie';    // Authentication method (config, http or cookie based)?Code: Select all
systemctl restart  httpd.serviceSpecial Notes:
The root directory of your webserver will be in /var/www/html/ and files can be uploaded there to be viewed in the browser.
Also, you do not want to use the root account on MySQL, generally. Log into phpMyAdmin with the root account, and create a secondary account and then use that account. It's useful for keeping your server secure.

