First, our Linux server to install Apache and PHP PHP installation methods and Apache method as a rut
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-Total amount of La8drwxr-xr-x.3Root root -October One A: to. DRWXR-xr-x.4Root root toOctober One the: + ..-rw-r--r--1Root root123October One A: toindex.php-rw-r--r--1Root root3704September + the: toJUEZHEN.PHPDRWXR-xr-x2Root root6October One A: -Messages[[email protected] html]#chmodo+WMessages/#给messages目录设置普通有用户的写入权限
Four. Start the httpd service
[Email protected] html]# systemctl start Httpd.service
Five. Results
Website using apache+php to implement message board function under Linux