Home>Article>Operation and Maintenance> In which file is the phpstudypro site information saved?

In which file is the phpstudypro site information saved?

下次还敢
下次还敢 Original
2024-04-02 16:39:16 420browse

PHPstudyPro site information file

PHPstudyPro saves site information in theconf.inifile.

File Location

conf.iniThe file is located in the following directory:

  • Windows:C: \Program Files (x86)\PHPStudyPro\conf.ini
  • macOS:/Applications/PHPStudy.app/conf/conf.ini
  • Linux:/usr/local/phpstudypro/conf/conf.ini

File structure

conf.iniFile Adopts INI format and contains the following parts:

  • Site information:Configuration about each site created in PHPstudyPro, including root directory, domain name, port number, etc.
  • php.ini configuration:PHP configuration file for each site, which can override global PHP.ini settings.
  • Other settings:Settings related to other functions of PHPstudyPro, such as error log location, listening port, etc.

Example

The following is an example of a site section in theconf.inifile:

[web_list] [101] name = MyWebsite root = /path/to/mywebsite index_with = index.html,index.htm,index.php domain = localhost port = 80

Access site information

You can manually edit theconf.inifile in a text editor, or use the management interface of PHPstudyPro to view and modify site information.

  • PHPstudyPro Interface:Go to the "Sites" panel, select a site, and click the "Edit" button.
  • Text Editor:Open theconf.inifile directly and make the required changes.

The above is the detailed content of In which file is the phpstudypro site information saved?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn