Home > Article > Backend Development > What should I do if php does not have a php.ini file?
Solution to the problem that php does not have a php.ini file: First find the "php.ini-development" file in the php compilation directory; then copy it to "/data/home/server/php-7.0.0/etc "Directory; finally rename it to "php.ini".
Recommended: "PHP Video Tutorial"
php.ini location
You need to find a php.ini-development or php.ini-production directory in the php compilation directory and copy it to the /data/home/server/php-7.0.0/etc directory and rename it to php.ini
Or you can download a source code package from the PHP official website and copy the 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
php run
When compiling php, some php parameters have been specified. You can view these parameters through phpinfo
The above is the detailed content of What should I do if php does not have a php.ini file?. For more information, please follow other related articles on the PHP Chinese website!