How to configure php module to apache server

小云云
Release: 2023-03-21 22:46:01
Original
2328 people have browsed it

How to configure the php module to the apache server. This article mainly shares with you the method of configuring the php module to the apache server. I hope it can help you.

Make the following configuration in Apache24/conf/httpd.conf:

Add the following code at the end of the file (note the modified path):

LoadModule php5_module D:/softwere/php/php5apache2_4.dll
AddType application/x-httpd-php .php
LoadModule php5_module modules/libphp5.so
PHPIniDir D:/softwere/php
Copy after login

Then restart apche and

D:\softwere \Apache24\bin>httpd.exe -k started

httpd.exe: Syntax error on line 536 of D:/softwere/Apache24/conf/httpd.conf: Cannot load D:/softwere/ php/php5apache2_4.dll into server: %1 \xb2\xbb\xca\xc7\xd3\xd0\xd0\xa7\xb5\xc4 Win32 \xd3\xa6\xd3\xc3\xb3\xcc\xd0\xf2\xa1\ xa3

The above is the detailed content of How to configure php module to apache server. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!