First of all, we need to install Apache and PHP on our Linux server.
Please refer to: http://www.cnblogs.com/dagege/p/5949620.html
Two. Turn off the Firewall service and turn off SELinux
Please refer to: http://www.cnblogs.com/dagege/p/5947251.html
Three. We use the FTP service or the RZ command to place the file in the root directory of Apache/var/www/html
Sample file Download: Http://files.cnblogs.com/files/dagege/liuyanban.zip
[[email protected]/]# cd/var/www/html/[[email protected] html]# Ls-la total usage 8drwxr-xr-x. 3 root root 55 October 22:31. drwxr-xr-x. 4 root 31 October 11 15:40.. -rw-r--r-- 1 root root 123 October 22:31 index.php-rw-r--r-- 1 root root 3704 September 15:05 juezhen.phpdrwxr- Xr-x 2 root root 6 October 22:30 messages[[email protected] html]# chmod o+w messages/#给messages目录设置普通有用户的写入权限
Four. Start the httpd service
[Email protected] html]# systemctl start Httpd.service
Website using apache+php to implement message board function under Linux