1. First of all, we need to install Apache and php on our Linux server. The installation method of php is the same as the Apache method.
Please refer to: http://www.cnblogs.com/dagege/p/5949620.html
2. Turn off the firewall service and selinux.
Please refer to: http://www.cnblogs.com/dagege/p/5947251.html
3. We use the FTP service or use the rz command to put the file in the root directory of Apache/ var/www/html
Sample file download: 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目录设置普通有用户的写入权限
Four. Start the httpd service
[root@localhost html]# systemctl start httpd.service
Five. Results