More apache woes

I am trying to bring my laptop opensuse configuration up even with my desktop as I work from both.
I have installed the LAMP stack as I was directed for my desktop and it all went smoothly.
However, When I try to browse to http://localhost/~redrider,, I get the following firefox error;

A quick google search seemed to indicate that there is an issue with apache2 but I don’t know so I came here looking for the REAL answer.

Also, google chrome cannot access it either


Access forbidden!            You don't have permission to access the requested object.     It is either read-protected or not readable by the server.      
  If you think this is a server error, please contact the [EMAIL="root@linux-2gh0.site"]webmaster[/EMAIL].  
  Error 403    [localhost](http://localhost/)
     Sat Jul 28 11:47:11 2012
  Apache/2.2.21 (Linux/SUSE)

About my system:

OS Information
OS: Linux 3.1.10-1.16-desktop x86_64
Current user: redrider@linux-2gh0.site
System: openSUSE 12.1 (x86_64)
KDE: 4.8.4 (4.8.4) “release 513”

Acer aSPIRE

CPU Information
Processor (CPU): Intel(R) Pentium(R) CPU P6100 @ 2.00GHz
Speed: 1,999.00 MHz
Cores: 2

Memory Information
Total memory (RAM): 3.5 GiB
Free memory: 113.0 MiB (+ 991.9 MiB Caches)
Free swap: 2.0 GiB

Once again, I cannot see files and folders from my browser - listed below is my default server config file
Screen shoot of console ls -l of localhost/~redrider.


#
# Global configuration that will be applicable for all virtual hosts, unless
# deleted here, or overriden elswhere.
# 

DocumentRoot "/srv/www/htdocs"

#
# Configure the DocumentRoot
#
<Directory "/srv/www/htdocs">
        # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important.  Please see
    # http://httpd.apache.org/docs-2.2/mod/core.html#options
    # for more information.
Options None
        # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
AllowOverride None
        # Controls who can get stuff from this server.
Order allow,deny
 Allow from all
</Directory>

# Aliases: aliases can be added as needed (with no limit). The format is 
# Alias fakename realname
#
# Note that if you include a trailing / on fakename then the server will
# require it to be present in the URL.  So "/icons" isn't aliased in this
# example, only "/icons/".  If the fakename is slash-terminated, then the 
# realname must also be slash terminated, and if the fakename omits the 
# trailing slash, the realname must also omit it.
#
# We include the /icons/ alias for FancyIndexed directory listings.  If you
# do not use FancyIndexing, you may comment this out.
#
Alias /icons/ "/usr/share/apache2/icons/"

<Directory "/usr/share/apache2/icons">
 Options Indexes MultiViews
 AllowOverride None
 Order allow,deny
 Allow from all
</Directory>

# ScriptAlias: This controls which directories contain server scripts.
# ScriptAliases are essentially the same as Aliases, except that
# documents in the realname directory are treated as applications and
# run by the server when requested rather than as documents sent to the client.
# The same rules about trailing "/" apply to ScriptAlias directives as to
# Alias.
#
ScriptAlias /cgi-bin/ "/srv/www/cgi-bin/"

# "/srv/www/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "/srv/www/cgi-bin">
 AllowOverride None
 Options +ExecCGI -Includes
 Order allow,deny
 Allow from all
</Directory>

# UserDir: The name of the directory that is appended onto a user's home
# directory if a ~user request is received.
#
# To disable it, simply remove userdir from the list of modules in APACHE_MODULES 
# in /etc/sysconfig/apache2.
#
<IfModule mod_userdir.c>
        # Note that the name of the user directory ("public_html") cannot simply be
    # changed here, since it is a compile time setting. The apache package
    # would have to be rebuilt. You could work around by deleting
    # /usr/sbin/suexec, but then all scripts from the directories would be
    # executed with the UID of the webserver.
UserDir public_html
        # The actual configuration of the directory is in
    # /etc/apache2/mod_userdir.conf.
Include /etc/apache2/mod_userdir.conf
</IfModule>


# Include all *.conf files from /etc/apache2/conf.d/.
#
# This is mostly meant as a place for other RPM packages to drop in their
# configuration snippet.
#
# You can comment this out here if you want those bits include only in a
# certain virtual host, but not here.
#
Include /etc/apache2/conf.d/*.conf

# The manual... if it is installed ('?' means it won't complain)
Include /etc/apache2/conf.d/apache2-manual?conf
ServerName linux-2gh0.site

ServerAdmin root@linux-2gh0.site

UserDir enabled redrider


please excuse my not getting back sooner as I am having internet connection issues.
my default server config file


#
# Global configuration that will be applicable for all virtual hosts, unless
# deleted here, or overriden elswhere.
# 

DocumentRoot "/srv/www/htdocs"

#
# Configure the DocumentRoot
#
<Directory "/srv/www/htdocs">
        # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important.  Please see
    # http://httpd.apache.org/docs-2.2/mod/core.html#options
    # for more information.
Options None
        # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
AllowOverride None
        # Controls who can get stuff from this server.
Order allow,deny
 Allow from all
</Directory>

# Aliases: aliases can be added as needed (with no limit). The format is 
# Alias fakename realname
#
# Note that if you include a trailing / on fakename then the server will
# require it to be present in the URL.  So "/icons" isn't aliased in this
# example, only "/icons/".  If the fakename is slash-terminated, then the 
# realname must also be slash terminated, and if the fakename omits the 
# trailing slash, the realname must also omit it.
#
# We include the /icons/ alias for FancyIndexed directory listings.  If you
# do not use FancyIndexing, you may comment this out.
#
Alias /icons/ "/usr/share/apache2/icons/"

<Directory "/usr/share/apache2/icons">
 Options Indexes MultiViews
 AllowOverride None
 Order allow,deny
 Allow from all
</Directory>

# ScriptAlias: This controls which directories contain server scripts.
# ScriptAliases are essentially the same as Aliases, except that
# documents in the realname directory are treated as applications and
# run by the server when requested rather than as documents sent to the client.
# The same rules about trailing "/" apply to ScriptAlias directives as to
# Alias.
#
ScriptAlias /cgi-bin/ "/srv/www/cgi-bin/"

# "/srv/www/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "/srv/www/cgi-bin">
 AllowOverride None
 Options +ExecCGI -Includes
 Order allow,deny
 Allow from all
</Directory>

# UserDir: The name of the directory that is appended onto a user's home
# directory if a ~user request is received.
#
# To disable it, simply remove userdir from the list of modules in APACHE_MODULES 
# in /etc/sysconfig/apache2.
#
<IfModule mod_userdir.c>
        # Note that the name of the user directory ("public_html") cannot simply be
    # changed here, since it is a compile time setting. The apache package
    # would have to be rebuilt. You could work around by deleting
    # /usr/sbin/suexec, but then all scripts from the directories would be
    # executed with the UID of the webserver.
UserDir public_html
        # The actual configuration of the directory is in
    # /etc/apache2/mod_userdir.conf.
Include /etc/apache2/mod_userdir.conf
</IfModule>


# Include all *.conf files from /etc/apache2/conf.d/.
#
# This is mostly meant as a place for other RPM packages to drop in their
# configuration snippet.
#
# You can comment this out here if you want those bits include only in a
# certain virtual host, but not here.
#
Include /etc/apache2/conf.d/*.conf

# The manual... if it is installed ('?' means it won't complain)
Include /etc/apache2/conf.d/apache2-manual?conf
ServerName linux-2gh0.site

ServerAdmin root@linux-2gh0.site

UserDir enabled redrider


this is a screen shot of the console ls -l home/redrider/public_html

http://i3.photobucket.com/albums/y68/coasterad/consolepuublichtml.jpg

**And this is a screen shot of localhost/~redrider - note the differences in file content. I have add the folder “class2” to htdocs but there is no change in my public listing
**
http://i3.photobucket.com/albums/y68/coasterad/localhostredrider.jpg

http://i3.photobucket.com/albums/y68/coasterad/mainhost.jpg

On 2012-07-28 19:56, coasterad wrote:
>
> this is a screen shot of the console ls -l home/redrider/public_html
>
> [image:
> http://i3.photobucket.com/albums/y68/coasterad/consolepuublichtml.jpg]

Nono. That photo is useless.

Post like this:


Telcontar:~ # ls -l /home/apin/public_html/
total 4
-rw-r--r-- 1 apin users 48 Oct  7  2005 .directory
Telcontar:~ #

Complete disclosure, both the command and its output in one go - no need for photos :slight_smile:

For the browser view, use lynx or links.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

what is lynx?

On 2012-07-28 21:46, coasterad wrote:
>
> what is lynx?

A text web browser, so that you can paste it here.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

I really need to solve this issue before thursday, I do not understand about the picture thing but PLEASE, just look at what I have posted and help if you can.

This is the directory listinng for /home/redrider/public_html
thi picture above shows the browser view


redrider@linux-2gh0:~/public_html> ls -l
total 12
drwxrwxrwx 9 redrider users 4096 May  2 18:25 class2
drwxrwxr-x 9 redrider users 4096 May  2 18:25 drupal from backupp drive windoows
drwxr-xr-x 7 redrider users 4096 Jul  7 09:37 phpMyAdmin-3.5.2-english
redrider@linux-2gh0:~/public_html> pwd
/home/redrider/public_html
redrider@linux-2gh0:~/public_html> 



On 2012-07-30 13:56, coasterad wrote:
>
> I really need to solve this issue before thursday, I do not understand
> about the picture thing but PLEASE, just look at what I have posted and
> help if you can.
>
> This is the directory listinng for /home/redrider/public_html
> thi picture above shows the browser view
>

I’m sorry, but the photos you posted do not say much. The browser photo, for example, doesn’t
show the bar, so I do not see where you are pointing the browser to, it could be anywhere. If I
do what I hope you are doing, but with links, I can post the result here:


>                                                                     Index of /~apin
>                                                         Index of /~apin
>
>  Icon Name                               Last modified      Size  Description
>
>      ---------------------------------------------------------------------------
>
>  [DIR] Parent Directory                                        -
>     ] Restorer7.exe                      20-Jun-2012 15:00   15M
>     ] drupal from backupp drive windoows 30-Jul-2012 17:37    0
>  [DIR] public_html/                       20-Nov-2004 21:16    -
>
>      --------------------------------------------------------------------------
>
>     Apache/2.2.17 (Linux/SUSE) Server at localhost Port 80

As you can see, it works.


>   redrider@linux-2gh0:~/public_html> ls -l
>   total 12
>   drwxrwxrwx 9 redrider users 4096 May  2 18:25 class2
>   drwxrwxr-x 9 redrider users 4096 May  2 18:25 drupal from backupp drive windoows
>   drwxr-xr-x 7 redrider users 4096 Jul  7 09:37 phpMyAdmin-3.5.2-english
>   redrider@linux-2gh0:~/public_html> pwd
>   /home/redrider/public_html
>   redrider@linux-2gh0:~/public_html>
>
> --------------------

The output above misses data about the permissions of the public directory itself, but it might
be enough. My mistake. This is better:


> cer@Telcontar:~> l /srv/www/home/apin/
> total 15388
> drwxrwxr-x 3      504 crypta     4096 Jul 30 17:37 ./
> drwxr-xr-x 5 root     root       4096 Jan 28  2007 ../
> -rwxr--r-- 1 moriarty users  15723824 Jun 20 15:00 Restorer7.exe*
> -rw-r--r-- 1 root     root          0 Jul 30 17:37 drupal from backupp drive windoows
> drwxr-xr-x 2 root     root       4096 Jan 28  2007 public_html/


I wanted to see the “dots” directories. Never mind.

You can also have a look at the apache logs, in this case, the “/var/log/apache2/access_log”
file. In my case the last lines show:


> ::1 - - [30/Jul/2012:17:40:36 +0200] "GET /~apin HTTP/1.0" 301 310 "-" "Lynx/2.8.7rel.1 libwww-FM/2.14 SSL-MM/1.4.1 OpenSSL/1.0.0c"
> ::1 - - [30/Jul/2012:17:40:38 +0200] "GET /~apin/ HTTP/1.0" 200 998 "-" "Lynx/2.8.7rel.1 libwww-FM/2.14 SSL-MM/1.4.1 OpenSSL/1.0.0c"
> 127.0.0.1 - - [30/Jul/2012:17:40:49 +0200] "GET /~apin HTTP/1.1" 301 310 "-" "Links (2.2; Linux 2.6.37.6-0.20-desktop x86_64; 127x24)"
> 127.0.0.1 - - [30/Jul/2012:17:40:49 +0200] "GET /~apin/ HTTP/1.1" 200 998 "-" "Links (2.2; Linux 2.6.37.6-0.20-desktop x86_64; 127x24)"

Also the error_log content could be interesting to look at.

What we need to know is what directory you are really serving from. Have you modified
mod_userdir.conf? If so, post it. Even better, post it anyway.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

access_log




127.0.0.1 - - [30/Jul/2012:09:56:56 -0400] "GET /icons/blank.gif HTTP/1.1" 304 - "http://localhost/~redrider/" "Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20100101 Firefox/14.0.1"
127.0.0.1 - - [30/Jul/2012:09:56:56 -0400] "GET /icons/back.gif HTTP/1.1" 304 - "http://localhost/~redrider/" "Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20100101 Firefox/14.0.1"
127.0.0.1 - - [30/Jul/2012:09:56:56 -0400] "GET /icons/folder.gif HTTP/1.1" 304 - "http://localhost/~redrider/" "Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20100101 Firefox/14.0.1"
127.0.0.1 - - [30/Jul/2012:09:56:56 -0400] "GET /~redrider/ HTTP/1.1" 200 700 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20100101 Firefox/14.0.1"
127.0.0.1 - - [30/Jul/2012:09:56:56 -0400] "GET /icons/blank.gif HTTP/1.1" 304 - "http://localhost/~redrider/" "Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20100101 Firefox/14.0.1"
127.0.0.1 - - [30/Jul/2012:09:56:56 -0400] "GET /icons/back.gif HTTP/1.1" 304 - "http://localhost/~redrider/" "Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20100101 Firefox/14.0.1"
127.0.0.1 - - [30/Jul/2012:09:56:56 -0400] "GET /icons/folder.gif HTTP/1.1" 304 - "http://localhost/~redrider/" "Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20100101 Firefox/14.0.1"
127.0.0.1 - - [30/Jul/2012:09:57:42 -0400] "GET /~redrider/ HTTP/1.1" 200 700 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20100101 Firefox/14.0.1"
127.0.0.1 - - [30/Jul/2012:09:57:42 -0400] "GET /icons/back.gif HTTP/1.1" 304 - "http://localhost/~redrider/" "Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20100101 Firefox/14.0.1"
127.0.0.1 - - [30/Jul/2012:09:57:42 -0400] "GET /icons/blank.gif HTTP/1.1" 304 - "http://localhost/~redrider/" "Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20100101 Firefox/14.0.1"
127.0.0.1 - - [30/Jul/2012:09:57:42 -0400] "GET /icons/folder.gif HTTP/1.1" 304 - "http://localhost/~redrider/" "Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20100101 Firefox/14.0.1"
127.0.0.1 - - [30/Jul/2012:10:00:01 -0400] "GET /~redrider/ HTTP/1.1" 200 700 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20100101 Firefox/14.0.1"
127.0.0.1 - - [30/Jul/2012:10:00:07 -0400] "GET /~redrider/ HTTP/1.1" 200 700 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20100101 Firefox/14.0.1"
127.0.0.1 - - [30/Jul/2012:10:00:07 -0400] "GET /icons/blank.gif HTTP/1.1" 304 - "http://localhost/~redrider/" "Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20100101 Firefox/14.0.1"
127.0.0.1 - - [30/Jul/2012:10:00:07 -0400] "GET /icons/back.gif HTTP/1.1" 304 - "http://localhost/~redrider/" "Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20100101 Firefox/14.0.1"
127.0.0.1 - - [30/Jul/2012:10:00:07 -0400] "GET /icons/folder.gif HTTP/1.1" 304 - "http://localhost/~redrider/" "Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20100101 Firefox/14.0.1"
127.0.0.1 - - [30/Jul/2012:10:00:09 -0400] "GET /~redrider/ HTTP/1.1" 200 700 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20100101 Firefox/14.0.1"
127.0.0.1 - - [30/Jul/2012:10:00:09 -0400] "GET /icons/blank.gif HTTP/1.1" 304 - "http://localhost/~redrider/" "Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20100101 Firefox/14.0.1"
127.0.0.1 - - [30/Jul/2012:10:00:09 -0400] "GET /icons/back.gif HTTP/1.1" 304 - "http://localhost/~redrider/" "Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20100101 Firefox/14.0.1"
127.0.0.1 - - [30/Jul/2012:10:00:09 -0400] "GET /icons/folder.gif HTTP/1.1" 304 - "http://localhost/~redrider/" "Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20100101 Firefox/14.0.1"
127.0.0.1 - - [30/Jul/2012:10:00:10 -0400] "GET /~redrider/ HTTP/1.1" 200 700 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20100101 Firefox/14.0.1"
127.0.0.1 - - [30/Jul/2012:10:00:10 -0400] "GET /icons/back.gif HTTP/1.1" 304 - "http://localhost/~redrider/" "Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20100101 Firefox/14.0.1"
127.0.0.1 - - [30/Jul/2012:10:00:10 -0400] "GET /icons/blank.gif HTTP/1.1" 304 - "http://localhost/~redrider/" "Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20100101 Firefox/14.0.1"
127.0.0.1 - - [30/Jul/2012:10:00:10 -0400] "GET /icons/folder.gif HTTP/1.1" 304 - "http://localhost/~redrider/" "Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20100101 Firefox/14.0.1"
127.0.0.1 - - [30/Jul/2012:10:00:10 -0400] "GET /~redrider/ HTTP/1.1" 200 700 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20100101 Firefox/14.0.1"
127.0.0.1 - - [30/Jul/2012:10:00:10 -0400] "GET /icons/blank.gif HTTP/1.1" 304 - "http://localhost/~redrider/" "Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20100101 Firefox/14.0.1"
127.0.0.1 - - [30/Jul/2012:10:00:10 -0400] "GET /icons/back.gif HTTP/1.1" 304 - "http://localhost/~redrider/" "Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20100101 Firefox/14.0.1"
127.0.0.1 - - [30/Jul/2012:10:00:10 -0400] "GET /icons/folder.gif HTTP/1.1" 304 - "http://localhost/~redrider/" "Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20100101 Firefox/14.0.1"
127.0.0.1 - - [30/Jul/2012:10:00:19 -0400] "GET /~redrider/ HTTP/1.1" 200 700 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20100101 Firefox/14.0.1"
127.0.0.1 - - [30/Jul/2012:10:00:19 -0400] "GET /icons/back.gif HTTP/1.1" 304 - "http://localhost/~redrider/" "Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20100101 Firefox/14.0.1"
127.0.0.1 - - [30/Jul/2012:10:00:19 -0400] "GET /icons/folder.gif HTTP/1.1" 304 - "http://localhost/~redrider/" "Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20100101 Firefox/14.0.1"
127.0.0.1 - - [30/Jul/2012:10:00:19 -0400] "GET /icons/blank.gif HTTP/1.1" 304 - "http://localhost/~redrider/" "Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20100101 Firefox/14.0.1"
127.0.0.1 - - [30/Jul/2012:10:00:20 -0400] "GET /~redrider/ HTTP/1.1" 200 700 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20100101 Firefox/14.0.1"
127.0.0.1 - - [30/Jul/2012:10:00:20 -0400] "GET /icons/blank.gif HTTP/1.1" 304 - "http://localhost/~redrider/" "Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20100101 Firefox/14.0.1"
127.0.0.1 - - [30/Jul/2012:10:00:20 -0400] "GET /icons/back.gif HTTP/1.1" 304 - "http://localhost/~redrider/" "Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20100101 Firefox/14.0.1"
127.0.0.1 - - [30/Jul/2012:10:00:20 -0400] "GET /icons/folder.gif HTTP/1.1" 304 - "http://localhost/~redrider/" "Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20100101 Firefox/14.0.1"
127.0.0.1 - - [30/Jul/2012:10:02:21 -0400] "GET /~redrider/ HTTP/1.1" 200 700 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20100101 Firefox/14.0.1"
127.0.0.1 - - [30/Jul/2012:10:02:21 -0400] "GET /icons/blank.gif HTTP/1.1" 304 - "http://localhost/~redrider/" "Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20100101 Firefox/14.0.1"
127.0.0.1 - - [30/Jul/2012:10:02:21 -0400] "GET /icons/back.gif HTTP/1.1" 304 - "http://localhost/~redrider/" "Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20100101 Firefox/14.0.1"
127.0.0.1 - - [30/Jul/2012:10:02:21 -0400] "GET /icons/folder.gif HTTP/1.1" 304 - "http://localhost/~redrider/" "Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20100101 Firefox/14.0.1"
127.0.0.1 - - [30/Jul/2012:10:02:29 -0400] "GET /~redrider/ HTTP/1.1" 200 700 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20100101 Firefox/14.0.1"
127.0.0.1 - - [30/Jul/2012:10:03:28 -0400] "GET /~redrider/ HTTP/1.1" 200 700 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20100101 Firefox/14.0.1"
127.0.0.1 - - [30/Jul/2012:10:03:28 -0400] "GET /icons/blank.gif HTTP/1.1" 304 - "http://localhost/~redrider/" "Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20100101 Firefox/14.0.1"
127.0.0.1 - - [30/Jul/2012:10:03:28 -0400] "GET /icons/back.gif HTTP/1.1" 304 - "http://localhost/~redrider/" "Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20100101 Firefox/14.0.1"
127.0.0.1 - - [30/Jul/2012:10:03:28 -0400] "GET /icons/folder.gif HTTP/1.1" 304 - "http://localhost/~redrider/" "Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20100101 Firefox/14.0.1"
127.0.0.1 - - [30/Jul/2012:10:20:52 -0400] "GET /~redrider/ HTTP/1.1" 200 700 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20100101 Firefox/14.0.1"
127.0.0.1 - - [30/Jul/2012:10:20:52 -0400] "GET /icons/blank.gif HTTP/1.1" 304 - "http://localhost/~redrider/" "Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20100101 Firefox/14.0.1"
127.0.0.1 - - [30/Jul/2012:10:20:52 -0400] "GET /icons/folder.gif HTTP/1.1" 304 - "http://localhost/~redrider/" "Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20100101 Firefox/14.0.1"
127.0.0.1 - - [30/Jul/2012:10:20:52 -0400] "GET /icons/back.gif HTTP/1.1" 304 - "http://localhost/~redrider/" "Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20100101 Firefox/14.0.1"


mod_userdir.config


#
# UserDir: The name of the directory that is appended onto a user's home
# directory if a ~user request is received.
#

<IfModule mod_userdir.c>
    # Note that the name of the user directory ("public_html") cannot easily be
    # changed here, since it is a compile time setting. The apache package
    # would have to be rebuilt. You could work around by deleting
    # /usr/sbin/suexec, but then all scripts from the directories would be
    # executed with the UID of the webserver.
    # 
    # To rebuild apache with another setting you need to change the 
    # %userdir define in the spec file. 

    # not every user's directory should be visible:
    UserDir disabled root

    # to enable UserDir only for a certain set of users, use this instead:
    #UserDir disabled
    #UserDir enabled user1 user2


    # the UserDir directive is actually used inside the virtual hosts, to 
    # have more control
    #UserDir public_html

    <Directory /home/*/public_html>

        AllowOverride FileInfo AuthConfig Limit Indexes
        Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec

        <Limit GET POST OPTIONS PROPFIND>
            Order allow,deny
            Allow from all
        </Limit>

        <LimitExcept GET POST OPTIONS PROPFIND>
            Order deny,allow
            Deny from all
        </LimitExcept>

    </Directory>

</IfModule>


Hi
Why do you have a home directory down in the srv tree?? It’s designed to be in your user home directory…


/home/username/public_html = http://your_server/~username

I do not know - where do you see that?


redrider@linux-2gh0:/srv> ls -l
total 8
drwxr-xr-x 2 root root 4096 Oct 25  2011 ftp
dr-xr-xr-x 6 root root 4096 Jul 27 13:07 www
redrider@linux-2gh0:/srv> su


redrider@linux-2gh0:/srv/www> ls -l
total 16
drwxr-xr-x 2 root root 4096 Jul 27 11:13 cgi-bin
drwxr-xr-x 4 root root 4096 Jul 27 11:13 htdig
dr-xr-xr-x 5 root root 4096 Jul 28 14:05 htdocs
drwxr-xr-x 2 root root 4096 May 31 08:41 perl-lib
redrider@linux-2gh0:/srv/www> 



redrider@linux-2gh0:/srv/www/htdocs> ls -l
total 28
drwxrwxrwx 9 root     root  4096 Jul 28 13:44 class2
-rw-r--r-- 1 root     root   302 Mar 13  2006 favicon.ico
drwxr-xr-x 2 root     root  4096 Jul 27 11:12 gif
-rw-r--r-- 1 root     root    44 Nov 20  2004 index.html
-rw-r--r-- 1 root     root  2356 Oct 22  2011 info2html.css
drwxr-xr-x 7 redrider users 4096 Jul  7 09:37 phpMyAdmin-3.5.2-english
-rw-r--r-- 1 root     root    26 Feb 16 05:07 robots.txt
redrider@linux-2gh0:/srv/www/htdocs> 



Hi
Ahh my bad, that was Carlos’s output…

So what is you user public_html structure?


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 3.0.34-0.7-default
up 1 day 15:13, 2 users, load average: 0.36, 0.29, 0.30
CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU

On 2012-07-30 20:42, malcolmlewis wrote:

> Hi
> Ahh my bad, that was Carlos’s output…

It is a public home directory under the www path, in order to have restrictive permissions in
the real home tree. It is not under the server root’s path.

The confusing thing about coasterad public dir is that some directories do not show on the web,
with the same permissions. It might be that apache is serving another different tree as
home-public.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)


redrider@linux-2gh0:~/public_html> ls -l
total 12
drwxr-xr-x 9 redrider users 4096 May  2 18:25 class2
drwxrwxr-x 9 redrider users 4096 May  2 18:25 drupal from backupp drive windoows
drwxr-xr-x 7 redrider users 4096 Jul  7 09:37 phpMyAdmin-3.5.2-english
redrider@linux-2gh0:~/public_html> 


Hi
So create a index.html file in there (~/public_html) and see if it loads

http://localhost/~redrider/index.html


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 3.0.34-0.7-default
up 1 day 16:35, 2 users, load average: 0.41, 0.34, 0.36
CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU

I created and index.php file in /home/public_html and it does work

so I copied a directory over but, again, the browser won’t display it. it displayed the new index file after I renamed it but not the new directory - is really weird