Home >Backend Development >PHP Tutorial >thinkphp5.0虚拟主机配置不成功,大神

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

WBOY
WBOYOriginal
2016-06-23 13:13:381427browse




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


没有起作用
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn