当前位置:Gxlcms > PHP教程 > thinkphp5.0虚拟主机配置不成功,大神

thinkphp5.0虚拟主机配置不成功,大神

时间:2021-07-01 10:21:17 帮助过:31人阅读


DocumentRoot "D:/develop/upupw/htdocs/tp5/public"
ServerName testtp5.com:80
ServerAlias 127.0.0.1 localhost
ServerAdmin webmaster@testtp5.com
DirectoryIndex index.html index.htm index.php default.php app.php
ErrorLog logs/testtp5.com-error.log
CustomLog logs/testtp5.com-access_%Y%m%d.log comonvhost
php_admin_value open_basedir "D:\develop\upupw\htdocs\tp5\public\;D:\develop\upupw\memcached\;D:\develop\upupw\phpmyadmin\;D:\develop\upupw\temp\;C:\Windows\Temp\"

Options FollowSymLinks
AllowOverride All
Require all granted


Require all denied


Require all denied



但是这样可以访问http://127.0.0.1/tp5/public/index.php


回复讨论(解决方案)

把这路径改了试试:php_admin_value open_basedir " D:\develop\upupw\htdocs\tp5\public\;D:\develop\upupw\memcached\;D:\develop\upupw\phpmyadmin\;D:\develop\upupw\temp\;C:\Windows\Temp\"

把这路径改了试试:php_admin_value open_basedir " D:\develop\upupw\htdocs\tp5\public\;D:\develop\upupw\memcached\;D:\develop\upupw\phpmyadmin\;D:\develop\upupw\temp\;C:\Windows\Temp\"


没有起作用

人气教程排行