欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

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

程序员文章站 2022-04-21 15:10:36
...

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\"


没有起作用