lampapache+mysql+php
生活随笔
收集整理的這篇文章主要介紹了
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數據庫
yum install mysql mysql-sever -y
開啟mysql數據庫
service mysqld start
chkconfig --levels 235 mysqld on
設置mysql數據庫密碼
mysql_secure_installation
2y其余回車
登陸數據庫
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的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: WCF系列教程之WCF操作协定
- 下一篇: mysql对数据库的备份和还原