GetSimple Support Forum
Apache 2.4 - Printable Version

+- GetSimple Support Forum (
+-- Forum: GetSimple (
+--- Forum: Installation & Setup (
+--- Thread: Apache 2.4 (/showthread.php?tid=5325)

Apache 2.4 - jay_m - 2013-10-31

I don't know if you guys can help me or not. My host is now offering the option to host the site on a server that is using Apache 2.4. Along with this change are some other unrelated benefits that have encouraged me to change over.

The issue is that apparently there are some significant changes in how Apache 2.4 uses the .htaccess files. The is the note from my host:

Quote:If your .htaccess files use the “Order” directive, they won’t work with Apache 2.4. It handles authentication and authorization using a new framework. It’s very easy to adapt .htaccess files to the new format, but it has to be done by hand or you will get the dread “Internal Server Error” after switching your site. The official Apache documentation has a very concise and easy-to-follow summary of what needs to be changed when you make the switch.

Is any aware of this issue or how to work around it. I have tried to migrate my site to the new server and have mostly gotten it to work but some things are causing me issues. I am looking for any guidelines on how to use GS on an Apache 2.4 server or any resources that would be a good "simple" reference for what needs to be modified.

Thanks for anything.

RE: Apache 2.4 - Kolyok - 2013-10-31

Since the 'order' directive is heavily used in GetSimple CMS you will need to:
1. Wait until (if) an official method will come from GetSimple or
2. Try to use Apache 2.2 or
3. Manually modify all the .htaccess files to fit the new directives (check below the documentation)

Note: Apache 2.4 normally should have the new module mod_access_compat for backwards compatibility, check your Apache 2.4 install if you have it.

From the Apache documentation:
In this example, all requests are denied.
Quote:Apache 2.2 configuration:
Order deny,allow
Deny from all
Quote:Apache 2.4 configuration:
Require all denied

In this example, all requests are allowed.
Quote:Apache 2.2 configuration:
Order allow,deny
Allow from all
Quote:Apache 2.4 configuration:
Require all granted

In the following example, all hosts in the domain are allowed access; all other hosts are denied access.
Quote:Apache 2.2 configuration:
Order Deny,Allow
Deny from all
Allow from
Quote:Apache 2.4 configuration:
Require host

For more info see (since theres other changes in 2.4 aswell): Upgrading to 2.4 from 2.2 - Apache HTTP Server

A quick hack that should work would be (found on stackoverflow):
Quote:#Apache 2.2
<IfModule !mod_authz_core.c>
Order deny,allow
Deny from all

#Apache 2.4
<IfModule mod_authz_core.c>
Require all denied

RE: Apache 2.4 - shawn_a - 2014-01-10

I have made fix attempts in 3.3.2 for this
Let me know if you can test or if you see any problems

RE: Apache 2.4 - SlavaP - 2014-02-17

(2014-01-10, 04:53:13)shawn_a Wrote: I have made fix attempts in 3.3.1 for this
Let me know if you can test or if you see any problems
Do you mean that version 3.3.1 should work on apache 2.4 now?
It still don't work Sad - 500 error after login attempt to admin zone.

RE: Apache 2.4 - shawn_a - 2014-02-17

updated this was bumped to 3.3.2, updated post, and the link clearly shows the milestone.

RE: Apache 2.4 - SlavaP - 2014-02-18

I clear all in catalogue and try to install clean v.3.3.1
Receive 500 error on admin/install.php and found this in cPanel error log:
Quote:[Mon Feb 17 18:00:29.554094 2014] [:warn] [pid 162862] [client ***.***.***.***:*****] mod_fcgid: stderr: PHP Fatal error: Call to undefined function dom_import_simplexml() in /home/*******/public_html/*********.com/admin/inc/basic.php on line 215

Apache 2.4.6
PHP 5.4.21
Linux server

Maybe it helps.

Hmm, seems my hoster missed php extention.
Another CMS says 'Module DOM is required'

Will investigate it, sorry.