How to change the location of `web root` folder of EasyPHP?

后端 未结 4 891
梦毁少年i
梦毁少年i 2021-02-20 06:19

Currently on my Windows 7 machine, it is C:\\Program Files (x86)\\EasyPHP-5.3.8.1\\www

I want to point it into another location on drive D, says D:\\c

4条回答
  •  灰色年华
    2021-02-20 06:52

    You need to right click on the icon on the Easyphp icon on the taskbar and select configuration->Apache. This will open httpd.conf in a notepad window.

    You need to modify it as follows:

    DocumentRoot "D:/code"
    (...)
    # DocumentRootDirectory 
    
        Options Indexes FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all
     
     (...)
     NameVirtualHost 127.0.0.1
     
       DocumentRoot "D:/code/"
       ServerName localhost
     
    

提交回复
热议问题