1. Configure apache to call the "php language module (engine)" to execute the php code. Apache's main configuration file httpd.conf is required. Its location is: apache installation directory/conf/httpd.conf
#2. Find the location of "Loading Module": and in At the last position of this series of LoadModules, add this line: "LoadModule actions_module modules/mod_actions.so", the module file in the php5 language package. Among them, the php5 language module name is a fixed name, which is: php5_module, php5 language package, In fact, it is the folder of the php language package
3. At the end of the apache configuration file, write: LoadModul php5_module "H:/amp/php/php5apache2_2.dll"
4. Start a new line to set the file with php suffix, which will be executed by this php language module. "AddType application/x-httpd-php .php"
5. Restart Apache
Recommended tutorial: PHP video tutorial
The above is the detailed content of How to configure php in apache. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Zend Studio 13.0.1
Powerful PHP integrated development environment

WebStorm Mac version
Useful JavaScript development tools

SublimeText3 English version
Recommended: Win version, supports code prompts!

SublimeText3 Chinese version
Chinese version, very easy to use

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool
