UPUPW本地环境配置thinkphp5的问题
问题解决参考:
https://blog.csdn.net/lengyue1084/article/details/80001625
看httpd-vhosts.conf的配置:
<VirtualHost *:80> DocumentRoot "E:/fyz/UPUPW_AP7.0/htdocs/fyz.test.com/web" ServerName fyz.test.com:80 ServerAlias fyz.test.com ServerAdmin webmaster@fyz.test.com DirectoryIndex index.html index.htm index.php default.php app.php u.php ErrorLog logs/fyz.test.com-error.log CustomLog logs/fyz.test.com-access_%Y%m%d.log comonvhost php_admin_value open_basedir "E:\fyz\UPUPW_AP7.0\htdocs\fyz.test.com\public\;E:\fyz\UPUPW_AP7.0\Guard\;E:\fyz\UPUPW_AP7.0\phpmyadmin\;E:\fyz\UPUPW_AP7.0\temp\;C:\WINDOWS\Temp\" <Directory "E:/fyz/UPUPW_AP7.0/htdocs/fyz.test.com/web"> Options FollowSymLinks AllowOverride All Require all granted </Directory> <LocationMatch "/(inc)/(.*)$"> Require all denied </LocationMatch> <LocationMatch "/(attachment|attachments|uploadfiles|avatar)/(.*).(php|php5|phps|asp|asp.net|jsp)$"> Require all denied </LocationMatch> </VirtualHost>
由于thinkphp5的入口文件在 public 下所以:
这里也会是在public\ 需要将这个 public\去掉就可以了,去掉之后进行重启就可以