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

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了linux下使用Apache+php实现留言板功能的网站相关的知识,希望对你有一定的参考价值。

一.首先我们的linux服务器上要安装Apache和php       

请参考:http://www.cnblogs.com/dagege/p/5949620.html

二.关闭防火墙服务,关闭selinux 

请参考:http://www.cnblogs.com/dagege/p/5947251.html

三.我们通过FTP服务或使用rz命令将文件放到Apache的根目录下 /var/www/html

示例文件下载:http://files.cnblogs.com/files/dagege/liuyanban.zip

 
[[email protected] /]# cd /var/www/html/
[[email protected] 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
[[email protected] html]# chmod o+w messages/  #给messages目录设置普通有用户的写入权限
 

四.启动httpd服务

[[email protected] html]# systemctl start httpd.service

以上是关于linux下使用Apache+php实现留言板功能的网站的主要内容,如果未能解决你的问题,请参考以下文章

使用PHP连接数据库实现留言板功能

PHP实现留言板功能

关于BWVS靶场环境

用PHP完成留言板功能

php+redis实战留言板(todolist)与互粉功能

CentOS 6.3下源码安装LAMP(Linux+Apache+Mysql+Php)环境