what is lamp? lamp is linux+apache+mysql+php.They are all open source software and free.
- change your centos 7 yum source to a faster source and upgrade the os.
1 backup local yum source.
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo_bak
2 get a faster souce
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
then update cache and os
yum -y update
- install apache
yum install httpd
apache point the default root dir to /var/www/html
configuration file is in dir /etc/httpd/conf/httpd.conf
- install mysql
if you want use utf8mb4.the mysql version need higher then 5.5.3
some emoji code need utf8mb4 format.
centos replacing mysql with mariadb.
if you want use mysql.
1 download mysql yum repository
2 add mysql yum repository to system repository list
yum localinstall mysql-community-release-el7-5.noarch.rpm
you can check if it runs successed.
yum repolist enabled | grep "mysql.*-community.*"
3 install mysql
yum install mysql-community-server
systemctl start mysqldor
service mysqld start
modify mysql root password
mysqladmin -u root password "xxxxxxxx"
now mysql install successful.you can try login in it.
- install php
wordpress 5.2 need php 7.2 or higher.But centos 7 only has 5.4 version.
so we need add another yum repository such like mysql.
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
then we can install php 7.2 now.
yum install php72w php72w-cli php72w-common php72w-devel php72w-embedded php72w-fpm php72w-gd php72w-mbstring php72w-mysqlnd php72w-opcache php72w-pdo php72w-xml
- finally we finished installation.
we can start httpd service and edit a index file to test.
open your browser and open the address http://yourip/
we can see the page like following:
if you can’t open the page.maybe it denied by firewall.
firewall-cmd --zone=public --add-port=80/tcp --permanent
if you want access mysql from other computer.also need
firewall-cmd --zone=public --add-port=3306/tcp --permanent
firewall-cmd --zone=public --add-port=3306/udp --permanent
keto puddingJuly 8, 2021 at 12:26 am
keto coleslaw recipe
keto friendly pastaJuly 7, 2021 at 9:28 am
keto teriyaki sauce
keto diet josh axeJuly 7, 2021 at 5:30 am
keto chocolate cheesecake
plenty of fish dating site free searchJune 26, 2021 at 12:29 pm
free malta dating sites
free dating sites bestJune 24, 2021 at 5:58 am
free dating ideas for couples
free shemale dating sitesJune 2, 2021 at 10:12 am
free no credit card dating
interracial dating site freeJune 2, 2021 at 8:07 am
100% free dating sites no fees
free dating sites for gamersJune 1, 2021 at 10:31 pm
list of free dating website
free to message and use dating siteJune 1, 2021 at 5:54 pm
russian girls dating for free
top 10 free russian dating sitesMay 27, 2021 at 1:21 am
swingers dating free
senior dating sites 100% freeMay 21, 2021 at 1:48 am
best free online dating service
free speed dating sitesMay 21, 2021 at 12:00 am
free dating hotlines to call
best online dating websites freeMay 20, 2021 at 6:05 pm
100 free singles online dating
sex dating and relationships websites freeMay 19, 2021 at 10:02 pm
free international dating site
tinder cheatMay 16, 2021 at 3:06 pm
build website platform. LAMP – rock funs