king

centos7 apche怎么修改php网站的运行目录?

king linux 2021-04-07 1572浏览 0

centos7 apche怎么修改php网站的运行目录?

案例:

ThinkCMF内容管理框架举例说明,ThinkCMF运行目录为根目录下的public

解决方案:

找到apche的配置文件,默认为:/etc/httpd/conf/httpd.conf文件

编辑打开httpd.conf

找到默认路径如下图:/var/www/html修改为:/var/www/html/public即可解决

centos7 apche怎么修改php网站的运行目录?

修改后:

centos7 apche怎么修改php网站的运行目录?

修改完毕后记得重启下apache

发表评论