Home  >  Article  >  Backend Development  >  What should I do if apache does not have php.ini?

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

藏色散人
藏色散人Original
2022-01-17 10:08:092111browse

The solution to the problem that apache does not have php.ini: 1. Download PHP and add the code that introduces php in the apache configuration file httpd.conf; 2. Rename the "php.ini-development" file to php. ini; 3. Restart apache.

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

The operating environment of this article: windows7 system, php7.0.24 version, DELL G3 computer

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

PHP under windows does not need to be installed. Download one version of php (such as php7.0.24) from the official website, unzip it and put it in a folder (such as c:/php), and then Add the code that introduces php to the apache configuration file httpd.conf:

<IfModule mime_module>
AddType application/x-httpd-php .php
LoadModule php7_module "c:/php/php7apache2_4.dll"
PHPIniDir "c:/php"
</IfModule>

Then rename the php.ini-development file in the php folder to php.ini and restart apache.

Recommended learning: "PHP Video Tutorial"

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