施勢帆老師的教學網站

 找回密碼
 立即註冊
搜索
熱搜: 活動 交友 discuz
查看: 598|回復: 0

LAMP

[複製鏈接]

607

主題

617

帖子

2888

積分

管理員

Rank: 9Rank: 9Rank: 9

積分
2888
發表於 2022-3-24 15:49:19 | 顯示全部樓層 |閱讀模式
ftp://120.96.56.3

root / 123456

ifconfig ens33 192.168.3.xx

route   add  -net  192.168.3.0  netmask  255.255.255.0  ens33
route  add  default  gw  192.168.3.254
ping www.hinet.net



https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-centos-7

systemctl stop firewalld.service

systemctl disable firewalld.service

yum -y install httpd

systemctl start httpd.service

systemctl enable httpd.service

yum -y install mariadb-server mariadb

systemctl start mariadb

mysql_secure_installation

systemctl enable mariadb.service

yum -y install php php-mysql

systemctl restart httpd.service

https://www.opencli.com/linux/centos-7-install-phpmyadmin

yum install epel-release

yum -y install phpmyadmin

vi /etc/httpd/conf.d/phpMyAdmin.conf
裡面會找到 “Require ip” 及 “Allow from” 的設定,將 127.0.0.1 改成你的 ip,然後重新啟動 Apache:

systemctl restart httpd

cd

wget ftp://120.96.56.3/wordpress-5.5.3-zh_TW.zip

unzip wordpress-5.5.3-zh_TW.zip

mysql -u root -p

create database wordpress;

exit

setenforce 0

mv wordpress /var/www/html

http://192.168.3.xx/wordpress

https://computingforgeeks.com/how-to-install-php-7-3-on-centos-7-fedora/


yum -y install http://rpms.remirepo.net/enterprise/remi-release-7.rpm

yum -y install epel-release yum-utils

yum-config-manager --disable remi-php54

yum-config-manager --enable remi-php73

yum -y install php php-cli php-fpm php-mysqlnd php-zip php-devel php-gd php-mcrypt php-mbstring php-curl php-xml php-pear php-bcmath php-json

php -v

yum install php-mysql

yum install php-mysqlnd

chown -R apache.apache /var/www/html

systemctl restart httpd.service

http://192.168.3.xx/wordpress

回復

使用道具 舉報

您需要登錄後才可以回帖 登錄 | 立即註冊

本版積分規則

Archiver|手機版|小黑屋|施勢帆老師的教學網站

GMT+8, 2024-11-22 04:34 , Processed in 0.071045 second(s), 19 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回復 返回頂部 返回列表