Q:

Config test failed when restarting Apache 2

 ServerAdmin admin@creansys.com
ServerName  creansys.com
ServerAlias www.creansys.com

DocumentRoot /var/www/creansys.com/public_html
<Directory / >
Options FollowSymLinks
Allow Override  All

</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
Allow Override All
Order Allow,Deny
allow From all

</Directory>

When i tried to  restart apache i got following error
Syntax error
allow and deny must be followed by 'from'.
Action 'configtest' failed.
can anybody help me with a solution

A:

You have some typos in your configuration:
Use
<Directory />
    Options FollowSymLinks
    AllowOverride  All
</Directory>

and
<Directory /var/www/>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride all
    Order allow,deny
    Allow from all
</Directory>

After that you should see
% apachectl configtest               
Syntax OK

Why? Because I've tested it on my system, especially for you. ;)

