Home >Backend Development >PHP Problem >What should I do if php does not have a configuration file?
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.
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!