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

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

藏色散人
藏色散人Original
2020-08-12 10:39:285957browse

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".

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

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!

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