Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apache error: cannot load mod_access_compat.so

Tags:

php

apache

I am trying to run a PHP App and keep getting an error when trying to set up Apache 2.4.
The error is:

httpd: Syntax error on line 72 of C:/Apache24/Apache24/conf/httpd.conf
cannot load modules/mod_access_compat.so into server:
The specified module could not be found.

Does anyone know how to fix this?

like image 390
user1957076 Avatar asked Jan 18 '17 03:01

user1957076


2 Answers

The ServerRoot variable inside of httpd.conf should look like this:

ServerRoot "C:/your/path/to/apache/install"

By default this is ServerRoot "C:/Apache24".

Also remember to check your DocumentRoot directive to make sure it is pointing at the actual website code.

like image 53
Jakub Krawczyk Avatar answered Nov 18 '22 10:11

Jakub Krawczyk


You need to make sure that your Apache24 folder is saved into the C: drive. Your path to the bin folder that contains the httpd.exe should look like this (in windows that is):

C:\Apache24\bin

not:

C:\Apache24\Apache24\bin

This will work once you have navigated to this directory on the command line and typed httpd.exe, after hitting enter if the cursor just moves to the next line and you get no warning then you're goo to go

like image 42
PumpkinBreath Avatar answered Nov 18 '22 12:11

PumpkinBreath