lampapache+mysql+php
l 就是linux ,a就是apache,m就是apache,p就是php
apache
安裝apache
yum insatll httpd -y
開啟apache服務
service httpd start
設置235運行級別開機啟動
chkconfig --levels 235 httpd on
配置httpd文件
vi /etc/httpd/conf/httpd.conf
ServerName去掉#
重啟httpd服務
service httpd restart
mysql
安裝mysql數(shù)據(jù)庫
yum install mysql mysql-sever -y
開啟mysql數(shù)據(jù)庫
service mysqld start
chkconfig --levels 235 mysqld on
設置mysql數(shù)據(jù)庫密碼
mysql_secure_installation
2y其余回車
登陸數(shù)據(jù)庫
mysql -u root -p
Php
安裝php
yum install php* -y
開啟php
service httpd restart
編寫php測試頁面
vi /var/www/html/info.php
輸入
<?php
phpinfo();
?>
重啟httpd服務
service httpd restart
轉載于:https://blog.51cto.com/12372297/1927682
總結
以上是生活随笔為你收集整理的lampapache+mysql+php的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: WCF系列教程之WCF操作协定
- 下一篇: mysql对数据库的备份和还原