linux下使用Apache+php实现留言板功能的网站
时间:2022-05-27 00:16:02|栏目:Linux|点击: 次
一.首先我们的linux服务器上要安装Apache和php
php的安装方法和Apache方法如同一辙
请参考:https://www.jb51.net/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 总用量 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目录设置普通有用户的写入权限
您可能感兴趣的文章
- 06-17Linux进程信号的发送和保存方法
- 06-17Linux卸载自带jdk并安装新jdk版本的图文教程
- 06-17Linux系统中卸载与安装JDK的详细教程
- 06-17Linux系统配置NAT网络模式的详细步骤(附图文)
- 06-17Linux中的计划任务(crontab)使用方式
- 06-17Apache配置域名跳转的详细步骤
- 06-17Linux fsync系统调用方式
- 06-17Linux磁盘扩容lvm的使用详解
- 06-17Linux与Windows跨平台文件共享的实现方案
- 06-17Linux如何实现给/根目录扩容


阅读排行
推荐教程
- 05-27Linux命令学习总结之rmdir命令
- 05-27阿里云linux服务器安全设置(防火墙策略等)
- 05-10Ubuntu系统安装ANSYS2021R1
- 05-27SecureCRT中文显示乱码问题的解决方法
- 06-12linux系统SSL证书部署https单/多站点
- 05-10ANSYS2021R1安装方法Linux centos Ubuntu系统
- 05-27apache密码生成工具htpasswd使用详解
- 11-07Clash Linux服务器安装详细教程
- 05-27Apache下开启SSI配置使html支持include包含的方法
- 05-27Linux下大量SYN_SENT连接问题的解决方法