search

Home  >  Q&A  >  body text

win8.1 phpstudy cannot set the site path

I am using the latest version of phpstudy2018, which has been updated, but when I set my site path, it always displays hello world. This page is the index.php file in the directory that was just installed, not The page of the website I want to debug. This is the interface no matter how I modify it. I don’t know how to fix it. Please give me some advice! ! QQ浏览器截屏未命名.png

牧云软件园牧云软件园2339 days ago1681

reply all(11)I'll reply

  • 无忌哥哥

    无忌哥哥2018-07-04 16:25:03

    Your setting is index.php in the www directory that is opened by default. If you want to open the file you specify, you need to specify the specific directory and browser address.

    reply
    0
  • 牧云软件园

    I just want to open index.php by default, but what I open is always the hello world page. I cannot open the index.php page of the website I want to debug at all.

    牧云软件园 · 2018-07-04 16:27:21
    无忌哥哥

    Is the index.php file you want to open in the www directory, or in another folder? If it is under another folder, either change the website directory, or enter your website directory in the browser.

    无忌哥哥 · 2018-07-04 16:30:38
    牧云软件园

    The index.php file is in the www directory and not in other directories.

    牧云软件园 · 2018-07-04 16:32:37
    无忌哥哥

    Is your WWW directory under the PHPstudy file?

    无忌哥哥 · 2018-07-04 16:41:41
    牧云软件园

    No, it's somewhere else

    牧云软件园 · 2018-07-04 16:43:50
    牧云软件园

    DocumentRoot "E:\phpStudy\PHPTutorial\WWW" Options -Indexes +FollowSymLinks +ExecCGI AllowOverride All Order allow,deny Allow from all Require all granted DocumentRoot "E:\WZTS\www" ServerName localhost ServerAlias ​​gohosts.com Options FollowSymLinks ExecCGI AllowOverride All Order allow,deny Allow from all Require all granted When I set the directory, this place remains unchanged. Is it a permissions issue?

    牧云软件园 · 2018-07-04 16:47:17
    无忌哥哥

    If you don't want to change the things in this configuration file, don't change it randomly. Obviously your configuration like this is useless. You can create a new folder in the directory E:\phpStudy\PHPTutorial\WWW, then put your index.php into this folder, and finally open the index in the browser. php address, the results you want will appear.

    无忌哥哥 · 2018-07-04 16:59:39
    牧云软件园

    I know this is possible, but I can't just copy it out every time I debug a website. It used to be possible to switch directly. That is, a few days ago, I couldn't switch directories. I don't know what happened. I tried to install it back to the original version. If it didn't work, I had no choice. Thanks for the answer.

    牧云软件园 · 2018-07-04 17:04:40
    牧云软件园

    You can modify the website path at will and debug different websites without updating, but it won't work after updating. It is probably because there is a problem with the new files.

    牧云软件园 · 2018-07-04 17:09:19
    牧云软件园

    Not updating software configuration files DocumentRoot "E:\phpStudy\PHPTutorial\WWW" has changed. It will change when you change the directory. More importantly, it will not change in the future. I guess there is a problem with the new files.

    牧云软件园 · 2018-07-04 17:12:13
  • Cancelreply