win8.1 phpstudy cannot set the site path
牧云软件园
牧云软件园 2018-07-04 16:21:51
0
11
1692

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

牧云软件园
牧云软件园

牧云软件园

reply all(1)
无忌哥哥

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 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.
    牧云软件园 author 2018-07-04 16:27:21
  • reply 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.
    无忌哥哥 author 2018-07-04 16:30:38
  • reply The index.php file is in the www directory and not in other directories.
    牧云软件园 author 2018-07-04 16:32:37
  • reply Is your WWW directory under the PHPstudy file?
    无忌哥哥 author 2018-07-04 16:41:41
  • reply No, it's somewhere else
    牧云软件园 author 2018-07-04 16:43:50
  • reply <VirtualHost _default_:80> DocumentRoot "E:\phpStudy\PHPTutorial\WWW" <Directory "E:\phpStudy\PHPTutorial\WWW"> Options -Indexes +FollowSymLinks +ExecCGI AllowOverride All Order allow,deny Allow from all Require all granted </Directory> </VirtualHost> <VirtualHost *:80> DocumentRoot "E:\WZTS\www" ServerName localhost ServerAlias ​​gohosts.com <Directory "E:\WZTS\www"> Options FollowSymLinks ExecCGI AllowOverride All Order allow,deny Allow from all Require all granted </Directory> </VirtualHost> When I set the directory, this place remains unchanged. Is it a permissions issue?
    牧云软件园 author 2018-07-04 16:47:17
  • reply 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.
    无忌哥哥 author 2018-07-04 16:59:39
  • reply 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.
    牧云软件园 author 2018-07-04 17:04:40
  • reply 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.
    牧云软件园 author 2018-07-04 17:09:19
  • reply Not updating software configuration files <VirtualHost _default_:80> 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.
    牧云软件园 author 2018-07-04 17:12:13
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template