Home > Backend Development > PHP Problem > Apache cannot load PHP module

Apache cannot load PHP module

王林
Release: 2023-02-26 20:32:01
Original
3019 people have browsed it

Apache cannot load PHP module

The solution to the problem that apache cannot load the php module is:

1. Execute the command vi /etc/selinux/config

SELINUX=enforcing
Copy after login
Copy after login

is modified to:

SELINUX=disabled
Copy after login

2. Confirm the same content in /etc/sysconfig/selinux

SELINUX=enforcing
Copy after login
Copy after login

is modified to:

SELINUX=disabled //(如果已经是disabled就不用改了)
Copy after login

3. Restart apache

Recommended tutorial: PHP video tutorial

The above is the detailed content of Apache cannot load PHP module. 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