thinkphp5.0 Virtual Host configuration not successful, big God

Source: Internet
Author: User

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



But this gives you access to http://127.0.0.1/tp5/public/index.php


Reply to discussion (solution)

Change this path. Try: 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\ "

Change this path. Try: 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\ "


It didn't work.
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.