[prev in list] [next in list] [prev in thread] [next in thread]
List: apache-httpd-users
Subject: [users@httpd] alias issue on mac
From: Érico <ericomtx () gmail ! com>
Date: 2013-12-27 17:15:01
Message-ID: CAORQCT+epEwqjbEAVJ8tA9hzz2bCr3XHoJ=_S1RC4cmbhxP2QQ () mail ! gmail ! com
[Download RAW message or body]
Hi
I have compile httpd local in my macbook ( macos 10.6.8 ) and I am trying
to configure an alias to use mysqladmin
For this I have created the following alias in my http.conf :
....
#ServerName www.example.com:80
ServerName localhost:80
....
<IfModule alias_module>
....
# directives as to Alias.
#
ScriptAlias /cgi-bin/ "/Users/ericomtx/development/apache2/cgi-bin/"
....
Alias /mysql/ "/Users/ericomtx/development/php/MySQL-Admin_3_4_0_full/"
<Directory "/Users/ericomtx/development/php/MySQL-Admin_3_4_0_full/">
#Options Indexes FollowSymLinks
#DirectoryIndex index.html index.php
#AllowOverride AuthConfig
DirectoryIndex index.html index.php
Order allow,deny
Allow from all
#Deny from all
</Directory>
....
when I try to access :
http://localhost/mysql/ ...
I get the following log error :
[Fri Dec 27 14:29:34 2013] [notice] Apache/2.2.26 (Unix) configured --
resuming normal operations
[Fri Dec 27 14:29:39 2013] [error] [client 127.0.0.1] (13)Permission
denied: access to /mysql/ denied (filesystem path
'/Users/ericomtx/development/php/MySQL-Admin_3_4_0_full') because search
permissions are missing on a component of the path
[Fri Dec 27 14:29:42 2013] [error] [client 127.0.0.1] (13)Permission
denied: access to /mysql/ denied (filesystem path
'/Users/ericomtx/development/php/MySQL-Admin_3_4_0_full') because search
permissions are missing on a component of the path
please check the access permission for the path :
ericomtxmacbookpro:MySQL-Admin_3_4_0_full ericomtx$ pwd
/Users/ericomtx/development/php/MySQL-Admin_3_4_0_full
ericomtxmacbookpro:MySQL-Admin_3_4_0_full ericomtx$ ls -l
total 232
-rwxrwxrwx@ 1 ericomtx staff 212 Jan 28 2007 PASS.php
-rwxrwxrwx@ 1 ericomtx staff 129 Feb 12 2006 blank.php
-rwxrwxrwx@ 1 ericomtx staff 9730 Jan 28 2007 config.php
-rwxrwxrwx@ 1 ericomtx staff 1598 Aug 9 2005 favicon.ico
drwxr-xr-x@ 16 ericomtx staff 544 Jan 28 2007 functions
-rwxrwxrwx@ 1 ericomtx staff 18351 Dec 12 2005 gpl.txt
drwxr-xr-x@ 22 ericomtx staff 748 Jan 28 2007 img
-rwxrwxrwx@ 1 ericomtx staff 1572 Nov 11 2006 index.php
also ... httpd proccess :
ericomtxmacbookpro:logs ericomtx$ sudo lsof -i :80
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
httpd 11727 root 4u IPv6 0xffffff80133e4e80 0t0 TCP *:http
(LISTEN)
httpd 11728 daemon 4u IPv6 0xffffff80133e4e80 0t0 TCP *:http
(LISTEN)
httpd 11729 daemon 4u IPv6 0xffffff80133e4e80 0t0 TCP *:http
(LISTEN)
httpd 11730 daemon 4u IPv6 0xffffff80133e4e80 0t0 TCP *:http
(LISTEN)
httpd 11731 daemon 4u IPv6 0xffffff80133e4e80 0t0 TCP *:http
(LISTEN)
httpd 11732 daemon 4u IPv6 0xffffff80133e4e80 0t0 TCP *:http
(LISTEN)
httpd 11733 daemon 4u IPv6 0xffffff80133e4e80 0t0 TCP *:http
(LISTEN)
also ... my conf file contains only php modlue reference :
...
#
# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO
you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Statically compiled modules (those listed by `httpd -l') do not need
# to be loaded here.
#
# Example:
# LoadModule foo_module modules/mod_foo.so
#
LoadModule php5_module modules/libphp5.so
...
a question :
is it mandatory to have the 2 mod_alias and mod_vhost_alias referenced to
use them ?
also, is it required to have their so libs located on modules dir to use
them in http.conf ?
I am asking this because I also use macports ... and its httpd has many
modules referenced and located in modules dir
please can someone help us put with these 3 question plus the access
permission issue ?
Regards
=C9rico
[Attachment #3 (text/html)]
<div dir="ltr"> <br>Hi <br><br>I have compile httpd local in my macbook ( macos \
10.6.8 ) and I am trying to configure an alias to use mysqladmin <br><br>For this I \
have created the following alias in my http.conf : <br>....<br>
#ServerName <a href="http://www.example.com:80" \
target="_blank">www.example.com:80</a> <br>ServerName localhost:80 \
<br>....<br><IfModule alias_module> <br>....<br># directives as to \
Alias.<br>#<br>ScriptAlias /cgi-bin/ \
"/Users/ericomtx/development/apache2/cgi-bin/" <br>
....<br>Alias /mysql/ \
"/Users/ericomtx/development/php/MySQL-Admin_3_4_0_full/"<br> \
<Directory "/Users/ericomtx/development/php/MySQL-Admin_3_4_0_full/"><br> \
#Options Indexes FollowSymLinks<br>
#DirectoryIndex index.html index.php<br> #AllowOverride \
AuthConfig<br> DirectoryIndex index.html index.php<br> Order \
allow,deny<br> Allow from all<br> #Deny from all<br>
</Directory> <br>....<br><br>when I try to access :<br><a \
href="http://localhost/mysql/" target="_blank">http://localhost/mysql/</a> \
...<br><br>I get the following log error : <br><br>[Fri Dec 27 14:29:34 2013] \
[notice] Apache/2.2.26 (Unix) configured -- resuming normal operations<br>
[Fri Dec 27 14:29:39 2013] [error] [client 127.0.0.1] (13)Permission denied: access \
to /mysql/ denied (filesystem path \
'/Users/ericomtx/development/php/MySQL-Admin_3_4_0_full') because search \
permissions are missing on a component of the path<br>
[Fri Dec 27 14:29:42 2013] [error] [client 127.0.0.1] (13)Permission denied: access \
to /mysql/ denied (filesystem path \
'/Users/ericomtx/development/php/MySQL-Admin_3_4_0_full') because search \
permissions are missing on a component of the path<br>
\
<br><br>please check the access permission for the path : \
<br>ericomtxmacbookpro:MySQL-Admin_3_4_0_full ericomtx$ pwd<br>
/Users/ericomtx/development/php/MySQL-Admin_3_4_0_full<br>ericomtxmacbookpro:MySQL-Admin_3_4_0_full \
ericomtx$ ls -l<br>total 232<br>-rwxrwxrwx@ 1 ericomtx staff 212 Jan 28 2007 \
PASS.php<br>-rwxrwxrwx@ 1 ericomtx staff 129 Feb 12 2006 blank.php<br>
-rwxrwxrwx@ 1 ericomtx staff 9730 Jan 28 2007 config.php<br>-rwxrwxrwx@ 1 \
ericomtx staff 1598 Aug 9 2005 favicon.ico<br>drwxr-xr-x@ 16 ericomtx staff \
544 Jan 28 2007 functions<br>-rwxrwxrwx@ 1 ericomtx staff 18351 Dec 12 2005 \
gpl.txt<br>
drwxr-xr-x@ 22 ericomtx staff 748 Jan 28 2007 img<br>-rwxrwxrwx@ 1 ericomtx \
staff 1572 Nov 11 2006 index.php<br><br><br>also ... httpd proccess : \
<br>ericomtxmacbookpro:logs ericomtx$ sudo lsof -i :80<br>COMMAND PID USER FD \
TYPE DEVICE SIZE/OFF NODE NAME<br>
httpd 11727 root 4u IPv6 0xffffff80133e4e80 0t0 TCP *:http \
(LISTEN)<br>httpd 11728 daemon 4u IPv6 0xffffff80133e4e80 0t0 TCP *:http \
(LISTEN)<br>httpd 11729 daemon 4u IPv6 0xffffff80133e4e80 0t0 TCP *:http \
(LISTEN)<br>
httpd 11730 daemon 4u IPv6 0xffffff80133e4e80 0t0 TCP *:http \
(LISTEN)<br>httpd 11731 daemon 4u IPv6 0xffffff80133e4e80 0t0 TCP *:http \
(LISTEN)<br>httpd 11732 daemon 4u IPv6 0xffffff80133e4e80 0t0 TCP *:http \
(LISTEN)<br>
httpd 11733 daemon 4u IPv6 0xffffff80133e4e80 0t0 TCP *:http \
(LISTEN)<br><br><br>also ... my conf file contains only php modlue reference : \
<br>...<br>#<br># Dynamic Shared Object (DSO) Support<br>#<br># To be able to use the \
functionality of a module which was built as a DSO you<br>
# have to place corresponding `LoadModule' lines at this location so the<br># \
directives contained in it are actually available _before_ they are used.<br># \
Statically compiled modules (those listed by `httpd -l') do not need<br>
# to be loaded here.<br>#<br># Example:<br># LoadModule foo_module \
modules/mod_foo.so<br># <br>LoadModule php5_module \
modules/libphp5.so<br>...<br><br>a question :<br>is it mandatory to have the 2 \
mod_alias and mod_vhost_alias referenced to use them ? <br>
<br>also, is it required to have their so libs located on modules dir to use them in \
http.conf ?<br><br>I am asking this because I also use macports ... and its httpd has \
many modules referenced and located in modules dir <br>
<br>please can someone help us put with these 3 question plus the access permission \
issue ?<br><br>Regards<br>Érico<br></div>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic