search

Home  >  Q&A  >  body text

Should php5apache2_2.dll be added to the Apache service?

The requested operation has failed, the Apache service cannot be restarted, and the prompt when running in cmd is

cannot load E:\phpedu\php5.4\php5apache2_2.dll into server

I am Written like this

#1: Load PHP module

LoadModule php5_module "E:\phpedu\php5.4\php5apache2_2.dll"

#2: Configure php.ini The correct path to the file

PHPIniDir E:\phpedu\php5.4

#3: Add the php type file to the Apache server

AddType application/x-httpd-php .php


我爱Java我爱Java2536 days ago1698

reply all(2)I'll reply

  • Day

    Day2018-01-31 17:24:25

    Please pay attention to whether it is in the path of the corresponding php version to avoid mistakes!

    reply
    0
  • 我爱Java

    The path is correct, php5apache2_2.dll and php.ini are both in php5.4 in phpedu on E drive, and httpd2.2.25 is used.

    我爱Java · 2018-01-31 17:56:00
  • Cancelreply