Page 1 of 3 123 LastLast
Results 1 to 10 of 23

Thread: More apache woes

  1. #1

    Default 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

    Code:
    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 webmaster.  
      Error 403    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

  2. #2

    Default Re: More apache woes

    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.


    Code:
    #
    # 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

  3. #3

    Default Re: More apache woes

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

    Code:
    #
    # 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

  4. #4

    Default Re: More apache woes

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




    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


  5. #5

    Default Re: More apache woes


  6. #6
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: More apache woes

    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...ublichtml.jpg]


    Nono. That photo is useless.

    Post like this:

    Code:
    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 :-)


    For the browser view, use lynx or links.

    --
    Cheers / Saludos,

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

  7. #7

    Default Re: More apache woes

    what is lynx?

  8. #8
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: More apache woes

    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)



  9. #9

    Default Re: More apache woes

    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

    Code:
    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>

  10. #10
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: More apache woes

    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:


    Code:
    
    >                                                                     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.

    Code:
    
    >   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:

    Code:
    
    > 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:

    Code:
    
    > ::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)

Page 1 of 3 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •