Re: Apache Configuration

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
+ (text/plain)
Delete this message
Reply to this message
Author: Lisa Kachold
Date:  
To: Main PLUG discussion list
Subject: Re: Apache Configuration
In Apache and subsequently in the VirtualHost entries you can define
DocumentRoot however you like:

It's not going to be changed by a "rpm install" etc.

Your configuration for DocumentRoot points to:
DocumentRoot /var/www/www.myurl.com

Therefore to access your PhpMyAdmin, you would need to place it into:

/var/www/www.myurl.com/phpmyadmin/

# mv /var/www/phpMyAdmin-3.4.3.1 /var/www/www.myurl.com

and

change:

<DirectoryMatch "/var/www/phpMyAdmin-3.4.3.1-
>
> english">



to

<DirectoryMatch "/var/www/www.myurl.com/phpMyAdmin-3.4.3.1-
>
> english">


FACT: You cannot server a directory outside of DocumentRoot without both a
symlink and an allow symlinks statement in your apache configuration option
(in your VirtualHost configuration)

As you can see, you don't have either:

    <DirectoryMatch "/var/www/phpMyAdmin-3.4.3.1-

>
> english">
>       AllowOverride All
>       Options None
>       Order allow,deny
>       Allow from all
>     </DirectoryMatch>




On Wed, Jul 6, 2011 at 4:50 PM, Steve Phariss <> wrote:

> I have a test apache install with several Virtual hosts, I am trying to
> install myPhpAdmin in a directory off of /var/www but I can not get it to be
> recognized (404 error)
>
> the virtual host contents are in directories off of /var/www (i.e.
> /var/www/www.myurl.com and /var/www/phpMyAdmin-3.4.3.1-english
>
> The server is working correctly and serving the appropriate domains, I just
> can not get www.myurl.com/phpMyAdmin-3.4.3.1-english to work......
>
> Any help would be great......
>
> <VirtualHost *:80>
>     ServerAdmin *********************
>     ServerName www.myurl.com
>     DirectoryIndex index.html #index.mhtml
>     DocumentRoot /var/www/www.myurl.com
>     AddType  text/html  .html #.mhtml
>         # Set Perl Variable SiteName with name of site for handler.pl
>         #PerlSetVar site myurl
>         #PerlRequire /var/www/handler.pl
>     <LocationMatch "(\.html|\.txt|\.pl|\.mhtml|dhandler|autohandler)$">
>       #SetHandler perl-script
>       #PerlHandler HTML::Mason
>     </LocationMatch>
>     <DirectoryMatch "/var/www/phpMyAdmin-3.4.3.1-english">
>       AllowOverride All
>       Options None
>       Order allow,deny
>       Allow from all
>     </DirectoryMatch>
>     ScriptAlias /cgi-bin/ "/var/www/www.myurl.com/cgi-bin/"
>     <Directory "/var/www/www.myurl.com/cgi-bin">
>       AllowOverride All
>       Options None
>       Order allow,deny
>       Allow from all
>     </Directory>
>     ErrorLog syslog:local1
>     ErrorLog /var/log/httpd/www.myurl.com.error
> CustomLog /var/log/httpd/www.myurl.com.access common
> </VirtualHost>

>
> <VirtualHost *.80>
> .
> .
> .
> </VirtualHost>
>
> ---------------------------------------------------
> PLUG-discuss mailing list -
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>




--
(602) 791-8002 Android
(623) 239-3392 Skype
(623) 688-3392 Google Voice
**
HomeSmartInternational.com <http://www.homesmartinternational.com>
---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss