热搜:NVER node 开发 php

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

2024-07-23 12:20:01
thinkphp5.0虚拟主机配置不成功,大神




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


没有起作用