logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Commands Recognised as "Invalid"...
Author
icbrainy



Joined: 28 Dec 2012
Posts: 5

PostPosted: Thu 17 Jan '13 10:58    Post subject: Commands Recognised as "Invalid"... Reply with quote

Hi again guys,
I've been trying to set up a "console host" in addition to my main "site front" so that I can easily manage MySQL without needing the use of the Workbench (i.e. phpmyadmin). But even when I add the "mod_authz_host" module file to my configuration and correctly referencing it with LoadModule, it says:
Quote:
Invalid command 'Order', perhaps misspelled or defined by a module not included in the server configuration
This is what is in my configuration file as of now:
Code:
AddDefaultCharset utf-8
ErrorLog data/http.log
Listen 80
PidFile data/http.log
ServerSignature Off
ServerTokens Prod

LoadModule authz_core_module mod_authz_core.so
LoadModule authz_host_module mod_authz_host.so

LoadModule headers_module mod_headers.so
   Header Set cache-control no-cache
   Header Set x-frame-options sameorigin

LoadModule alias_module mod_alias.so
   Alias /patch/ patch/

LoadModule buffer_module mod_buffer.so
   SetInputFilter BUFFER
   SetOutputFilter BUFFER

LoadModule mime_module mod_mime.so
   TypesConfig filetypes.ini

LoadModule dir_module mod_dir.so
   DirectoryIndex index.php index.htm
   DirectorySlash off

<FilesMatch .php|.rss>
   LoadModule php5_module php5apache2_4.dll
   SetHandler application/x-httpd-php
</FilesMatch>

<Directory *>
   AllowOverride None
</Directory>

<VirtualHost _default_>
   DocumentRoot www/
</VirtualHost>

<VirtualHost localhost>
   DocumentRoot console/
   <Location *>
      Order Allow,Deny
      Allow from localhost
   </Location>
</VirtualHost>
I have tried using this as an alternative, but it caused my PHP interpreter to malfunction:
Quote:
Require ip 127.0.0.1
Prior to me try to implement these host control directives, my Apache setup has had no errors whatsoever.
Confused Does anybody have any inkings on what I may be doing wrong with this configuration/setup?
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2268
Location: Sun Diego, USA

PostPosted: Thu 17 Jan '13 13:35    Post subject: Reply with quote

in 2.4, Order, Allow & Deny require mod_access_compat.

Regardless, Order, Allow, Deny & Require are only allowed in <Directory> containers or .htaccess files.

When in doubt, look at the "Context" for the directive in the docs. Docs will also tell you what module is needed for the directive if it's not a core directive.

http://httpd.apache.org/docs/2.4/mod/mod_authz_core.html#require
Back to top
icbrainy



Joined: 28 Dec 2012
Posts: 5

PostPosted: Thu 17 Jan '13 19:52    Post subject: Just being sure Reply with quote

Ok, it's working now. Greatly appreciate it glsmith.
Back to top


Reply to topic   Topic: Commands Recognised as "Invalid"... View previous topic :: View next topic
Post new topic   Forum Index -> Apache