Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 May 2006 05:15:49 GMT
From:      Brian Gourlie <bgourlie@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   www/98045: phpmyadmin post-installation example for adding alias to httpd.conf causes syntax error when starting httpd
Message-ID:  <200605280515.k4S5FnES096150@www.freebsd.org>
Resent-Message-ID: <200605280530.k4S5UH4E094230@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         98045
>Category:       www
>Synopsis:       phpmyadmin post-installation example for adding alias to httpd.conf causes syntax error when starting httpd
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-www
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun May 28 05:30:17 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Brian Gourlie
>Release:        6.1
>Organization:
>Environment:
FreeBSD dev 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sun May  7 04:32:43 UTC 2006     root@opus.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
The post-installation notes following the installation of phpmyadmin give an example for adding a phpmyadmin alias to the httpd.conf.  See post-installing output:

To make phpMyAdmin available through your web site, I suggest
that you add something like the following to httpd.conf:

    Alias /phpmyadmin/ "/usr/local/www/phpMyAdmin/"

    <Directory "/usr/local/www/phpMyAdmin/">
        Options none
        AllowOverride Limit

        Order Deny, Allow
        Deny from all
        Allow from 127.0.0.1 .example.com
    </Directory>


This example will cause a syntax error when starting httpd, because of the following line:

        Order Deny, Allow

The whitespace between "Deny, Allow" causes the syntax error, httpd prompting the user that it is not a valid argument for the "Order" directive. 


>How-To-Repeat:
Install phpmyadmin from the ports directory
>Fix:
Change the line in the example from:

        Order Deny, Allow

To:

        Order Deny,Allow

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200605280515.k4S5FnES096150>