源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

linux下使用Apache+php实现留言板功能的网站

  • 时间:2021-10-04 16:52 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:linux下使用Apache+php实现留言板功能的网站
[b]一.首先我们的linux服务器上要安装Apache和php[/b]   php的安装方法和Apache方法如同一辙 请参考:[url=http://www.1sucai.cn/article/94494.htm]http://www.1sucai.cn/article/94494.htm[/url] [b]二.关闭防火墙服务,关闭selinux [/b] 请参考:http://www.cnblogs.com/dagege/p/5947251.html [b]三.我们通过FTP服务或使用rz命令将文件放到Apache的根目录下 /var/www/html[/b] 示例文件下载:http://files.cnblogs.com/files/dagege/liuyanban.zip
[root@localhost /]# cd /var/www/html/
[root@localhost html]# ls -la
总用量 8
drwxr-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.php
drwxr-xr-x 2 root root 6 10月 11 22:30 messages
[root@localhost html]# chmod o+w messages/  #给messages目录设置普通有用户的写入权限
[b]四.启动httpd服务[/b]
[root@localhost html]# systemctl start httpd.service
[b]五.成果 [/b] [img]http://img.1sucai.cn/uploads/article/2018010710/20180107100147_0_92992.png[/img] 以上所述是小编给大家介绍的linux下使用Apache+php实现留言板功能的网站,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对编程素材网网站的支持!
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部