Anda di halaman 1dari 2

firewall-cmd --permanent --add-service=http

firewall-cmd --permanent --add-service=https

Instalacin Apache
sudo yum install httpd
sudo systemctl start httpd.service
http://your_server_IP_address/
sudo systemctl enable httpd.service
Instalacin Base de datos Mysql
sudo yum install mariadb-server mariadb
sudo systemctl start mariadb
sudo mysql_secure_installation
Instalacin de PHP
sudo yum install php php-mysql
sudo systemctl restart httpd.service
sudo vi /var/www/html/info.php
<?php phpinfo(); ?>

Instalacin phpMyAdmin
Step 1: Add the EPEL Repository
phpMyAdmin is part of Extra Packages for Enterprise Linux (EPEL), which is a com
munity repository of non-standard packages for the RHEL distribution. First, well
install the EPEL repository:
rpm -iUvh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarc
h.rpm
Step 2: Install phpMyAdmin
First, youll follow a simple best practice: ensuring the list of available packag
es is up to date before installing anything new.
yum -y update
Then its a matter of just running one command for installation via apt-get:
yum -y install phpmyadmin
Step 3: Find Your IP Address
Find your IP address with any of the following sites:
Whats My IP Address?
What Is My IP?
My IP Address
Step 4: Basic Configuration for phpMyAdmin
To secure phpMyAdmin we should lock down access to a specific IP address. When t
he phpMyAdmin package is installed, an Apache Virtual Host file is added to conf
igure web access. Lets edit that file:

vim /etc/httpd/conf.d/phpMyAdmin.conf
# Apache 2.4
<RequireAny>
# Require ip 127.0.0.1
# Require ip ::1
Require all granted
</RequireAny>

Anda mungkin juga menyukai