-1

When I add this line to Apache, my Apache doesn't start, but when I delete this row on httpd.conf, the apache starts, and I don't know why.

The line code ;

 # Add to the end of the LoadModule section
LoadModule php7_module "C:/php/php7apache2_4.dll"

AddModule mod_php7.c # << This Line !!!

# Add this line inside the <IfModule mod_mime.c> conditional brace
AddType application/x-httpd-php .php

# For syntax highlighted .phps files, also add
#AddType application/x-httpd-php-source .phps
pushkin
  • 9,575
  • 15
  • 51
  • 95
XarzaMora
  • 25
  • 1
  • 6
  • 1
    What are you trying to accomplish? You shouldn't need that line for PHP to work with Apache. – Dave Nov 19 '18 at 21:05

1 Answers1

3

AddModule hasn't been the name of a directive since Apache 1.3. You're likely following some antiquated guide.

covener
  • 17,402
  • 2
  • 31
  • 45