How to find and modify default open url in xampp

XAMPP (Apache+MySQL+PHP+PERL) is a powerful integrated environment package for building XAMPP software station, which is used by a large number of webmasters. After installing XAMPP correctly, the default is that the php program must be placed in the xampp\htdocs folder to run. How to modify the main directory to another disk? For example, the www folder of the D: drive, here is a demonstration for webmasters who use XAMPP to build a website. The same is true for any PHP environment that uses apache.

Tools/Materials

  • Environment: XAMPP (Apache+MySQL+PHP+PERL)
  • Tool: Open httpd.conf file with txt text or DW

method/step

  1. Open the file xampp\apache\conf\httpd.conf

    Detailed explanation of graphics and text of XAMPP modifying Apache default website directory htdocs
    Detailed explanation of graphics and text of XAMPP modifying Apache default website directory htdocs
  2. Find DocumentRoot "I:/xampp/htdocs" in httpd.conf file

    Detailed explanation of graphics and text of XAMPP modifying Apache default website directory htdocs
  3. Modify the content in the httpd.conf file to DocumentRoot "D:/www"

    Detailed explanation of graphics and text of XAMPP modifying Apache default website directory htdocs
  4. 4

    Create a new www folder in the D drive, restart apache, move the file to the www folder, open http://localhost/, done

    Detailed explanation of graphics and text of XAMPP modifying Apache default website directory htdocs


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325829227&siteId=291194637