首页 > 开发 > Apache > 正文

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

2020-04-16 19:29:58
字体:
来源:转载
供稿:网友

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

php的安装方法和Apache方法如同一辙

请参考://www.Cuoxin.com/article/94494.htm

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

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

三.我们通过FTP服务或使用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目录设置普通有用户的写入权限

四.启动httpd服务

[root@localhost html]# systemctl start httpd.service

五.成果

以上所述是小编给大家介绍的linux下使用Apache+php实现留言板功能的网站,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对错新站长站网站的支持!

您可能感兴趣的文章:

linux系统下一个冷门的RAID卡ioc0及其监控mpt-statusLinux shell编程中IO和条件及循环处理的细节问题讨论shell脚本监控linux系统内存使用情况的方法(不使用nagios监控linux)基于Linux下Nagios的安装与配置说明介绍[图]Linux系统下导出ORACLE数据库出现Exporting questionable statistics.错误 处理Linux 自动备份oracle数据库详解linux环境安装node.js开发环境搭建图文教程linux时间同步ntp服务的安装与配置Linux 下的五种 IO 模型详细介绍
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表