Home >Backend Development >PHP Problem >What should I do if php does not have a configuration file?

What should I do if php does not have a configuration file?

藏色散人
藏色散人Original
2021-09-03 09:37:312397browse

Solution to the problem that php does not have a configuration file: 1. Copy the "php.ini-development" file to the etc directory and rename it to php.ini; 2. Go to the php official website to download a source code package and rename it operate.

What should I do if php does not have a configuration file?

The operating environment of this article: windows7 system, PHP7.0 version, DELL G3 computer

What should I do if php does not have a configuration file?

php configuration file requires the user to manually modify the configuration name:

php.ini location

1. You need to find one in the php compilation directory. Copy php.ini-development or php.ini-production to the directory /data/home/server/php-7.0.0/etc and rename it to php.ini

2, or you can go to the php official website Download a source code package, copy php.ini-development or php.ini-production under the source code package to the directory /data/home/server/php-7.0.0/etc, and rename it to php.ini

Note: When compiling php, some php parameters have been specified. You can view these parameters through phpinfo.

Recommended learning: "PHP Video Tutorial"

The above is the detailed content of What should I do if php does not have a configuration file?. 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