一.首先我們的linux服務(wù)器上要安裝Apache和php
php的安裝方法和Apache方法如同一轍
請(qǐng)參考://www.survivalescaperooms.com/article/94494.htm
二.關(guān)閉防火墻服務(wù),關(guān)閉selinux
請(qǐng)參考:http://www.cnblogs.com/dagege/p/5947251.html
三.我們通過(guò)FTP服務(wù)或使用rz命令將文件放到Apache的根目錄下 /var/www/html
示例文件下載:http://files.cnblogs.com/files/dagege/liuyanban.zip
[root@localhost /]# cd /var/www/html/[root@localhost html]# ls -la總用量 8drwxr-xr-x. 3 root root 55 10月 11 22:31 .drwxr-xr-x. 4 root root 31 10月 11 15:40 ..-rw-r--r-- 1 root root 123 10月 11 22:31 index.php-rw-r--r-- 1 root root 3704 9月 19 15:05 juezhen.phpdrwxr-xr-x 2 root root 6 10月 11 22:30 messages[root@localhost html]# chmod o+w messages/ #給messages目錄設(shè)置普通有用戶的寫(xiě)入權(quán)限 |
四.啟動(dòng)httpd服務(wù)
[root@localhost html]# systemctl start httpd.service |
五.成果
以上所述是小編給大家介紹的linux下使用Apache+php實(shí)現(xiàn)留言板功能的網(wǎng)站,希望對(duì)大家有所幫助,如果大家有任何疑問(wèn)請(qǐng)給我留言,小編會(huì)及時(shí)回復(fù)大家的。在此也非常感謝大家對(duì)錯(cuò)新站長(zhǎng)站網(wǎng)站的支持!
新聞熱點(diǎn)
疑難解答
圖片精選