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

Thread: apache error 403 Opensuse 13.1

  1. #1

    Default apache error 403 Opensuse 13.1

    I install apache in my Opensuse 13.1 and I got this error, so I was trying to solve it, I did everything, I was looking for online and nobody have a real solution for this one. I format my HD install Opensuse again and install apache again from scratch and I got the same error, I am tired to be doing this if somebody can help me please I'll be grateful. 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 Apache/2.4.9 (Linux/SUSE)
    Last edited by kgroneman; 24-Jun-2014 at 08:47. Reason: Removed email add. at his request.

  2. #2

    Default Re: apache error 403 Opensuse 13.1

    Quote Originally Posted by Dexter22 View Post
    localhost
    Apache/2.4.9 (Linux/SUSE)
    Where did you install apache from?
    openSUSE 13.1 comes with version 2.4.6...

    Check the permissions of your DocumentRoot.
    With the default configuration this would be /srv/www/htdocs/:
    Code:
    ls -la /srv/www/htdocs/
    Apache runs as user "wwwrun:www", so that user has to be able to access those files.

    And please also post the last lines of /var/log/apache2/error_log.
    Last edited by wolfi323; 22-Jun-2014 at 12:06.

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

    Default Re: apache error 403 Opensuse 13.1

    On 2014-06-22 20:56, Dexter22 wrote:
    >
    > I install apache in my Opensuse 13.1 and I got this error, so I was
    > trying to solve it, I did everything, I was looking for online and
    > nobody have a real solution for this one. I format my HD install
    > Opensuse again and install apache again from scratch and I got the same
    > error, I am tired to be doing this if somebody can help me please I'll
    > be grateful. my email is : ...@hotmail.com


    Please don't.

    First, replies are normally done here, in public. If necessary, there
    are private messages via forum, without having to use email.

    Second, you are exposing your own email to the entire Internet spam
    crawlers. You should consider asking a moderator to edit your post and
    remove the email.

    If you need to exchange an email address, you can do it via PM, so that
    it is not displayed here.


    > Apache/2.4.9 (Linux/SUSE)


    As to your problem, how did you install that Apache? That's not the one
    distributed by openSUSE. Please run this:


    Ok, run these commands in a terminal:
    Code:
    rpm -qi apache2
    and paste it all here, from initial command prompt, to last command
    prompt, in a single mouse sweep, and please do so inside code tags (the
    '#' button in the forum editor).
    See photo
    It is preferable to see what the commands have to say about things, than
    describing them :-)

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 13.1 x86_64 "Bottle" at Telcontar)

  4. #4

    Default Re: apache error 403 Opensuse 13.1

    rpm -qi apache2
    Name : apache2
    Version : 2.4.9
    Release : 1.11
    Architecture: i586
    Install Date: Mon 23 Jun 2014 04:30:08 PM CDT
    Group : Productivity/Networking/Web/Servers
    Size : 3911166
    License : Apache-2.0
    Signature : DSA/SHA1, Fri 06 Jun 2014 04:39:15 AM CDT, Key ID 9584a164bd6d129a
    Source RPM : apache2-2.4.9-1.11.src.rpm
    Build Date : Fri 06 Jun 2014 04:38:22 AM CDT
    Build Host : cloud102
    Relocations : (not relocatable)
    Vendor : obs://build.opensuse.org/Apache
    URL : http://httpd.apache.org/
    Summary : The Apache Web Server Version 2.2
    Description :
    Apache 2, the successor to Apache 1.

    Apache is the most used Web server software worldwide.

    Some new features in Apache 2: - hybrid multiprocess, multithreaded
    mode for improved scalability

    - multiprotocol support

    - stream filtering

    - IPv6 support

    - new module API

    New modules include: - mod_auth_db

    - mod_auth_digest

    - mod_charset_lite

    - mod_dav

    - mod_file_cache

    Mod_ssl is no longer a separate package, but is now included in the
    Apache distribution.

    See /usr/share/doc/packages/apache2/, http://httpd.apache.org/, and
    http://httpd.apache.org/docs-2.2/upgrading.html.
    Distribution: Apache / openSUSE_13.1

  5. #5

    Default Re: apache error 403 Opensuse 13.1

    /var/log/apache2/error_log/

    [Mon Jun 23 17:12:19.274053 2014] [core:error] [pid 12759] (13)Permission denied: [client ::1:32903] AH00035: access to /index.php5 denied (filesystem path '/srv/www/htdocs/index.php5') because search permissions are missing on a component of the path
    [Mon Jun 23 17:12:19.274067 2014] [core:error] [pid 12759] (13)Permission denied: [client ::1:32903] AH00035: access to /index.php denied (filesystem path '/srv/www/htdocs/index.php') because search permissions are missing on a component of the path
    [Mon Jun 23 17:15:16.732238 2014] [mpm_prefork:notice] [pid 12742] AH00170: caught SIGWINCH, shutting down gracefully
    [Mon Jun 23 17:15:16.843718 2014] [ssl:warn] [pid 13067] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
    [Mon Jun 23 17:15:16.851580 2014] [mpm_prefork:notice] [pid 13067] AH00163: Apache/2.4.9 (Linux/SUSE) OpenSSL/1.0.1h PHP/5.4.20 configured -- resuming normal operations
    [Mon Jun 23 17:15:16.851622 2014] [core:notice] [pid 13067] AH00094: Command line: '/usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SSL -D SYSTEMD -D FOREGROUND'
    [Mon Jun 23 17:15:25.134399 2014] [core:error] [pid 13085] (13)Permission denied: [client ::1:32908] AH00035: access to /index.html denied (filesystem path '/srv/www/htdocs/index.html') because search permissions are missing on a component of the path
    [Mon Jun 23 17:15:25.134473 2014] [core:error] [pid 13085] (13)Permission denied: [client ::1:32908] AH00035: access to /index.html.var denied (filesystem path '/srv/www/htdocs/index.html.var') because search permissions are missing on a component of the path
    [Mon Jun 23 17:15:25.134491 2014] [core:error] [pid 13085] (13)Permission denied: [client ::1:32908] AH00035: access to /index.php4 denied (filesystem path '/srv/www/htdocs/index.php4') because search permissions are missing on a component of the path
    [Mon Jun 23 17:15:25.134506 2014] [core:error] [pid 13085] (13)Permission denied: [client ::1:32908] AH00035: access to /index.php5 denied (filesystem path '/srv/www/htdocs/index.php5') because search permissions are missing on a component of the path
    [Mon Jun 23 17:15:25.134520 2014] [core:error] [pid 13085] (13)Permission denied: [client ::1:32908] AH00035: access to /index.php denied (filesystem path '/srv/www/htdocs/index.php') because search permissions are missing on a component of the path
    [Mon Jun 23 17:15:26.316819 2014] [core:error] [pid 13085] (13)Permission denied: [client ::1:32908] AH00035: access to /index.html denied (filesystem path '/srv/www/htdocs/index.html') because search permissions are missing on a component of the path
    [Mon Jun 23 17:15:26.316862 2014] [core:error] [pid 13085] (13)Permission denied: [client ::1:32908] AH00035: access to /index.html.var denied (filesystem path '/srv/www/htdocs/index.html.var') because search permissions are missing on a component of the path
    [Mon Jun 23 17:15:26.316879 2014] [core:error] [pid 13085] (13)Permission denied: [client ::1:32908] AH00035: access to /index.php4 denied (filesystem path '/srv/www/htdocs/index.php4') because search permissions are missing on a component of the path
    [Mon Jun 23 17:15:26.316893 2014] [core:error] [pid 13085] (13)Permission denied: [client ::1:32908] AH00035: access to /index.php5 denied (filesystem path '/srv/www/htdocs/index.php5') because search permissions are missing on a component of the path
    [Mon Jun 23 17:15:26.316908 2014] [core:error] [pid 13085] (13)Permission denied: [client ::1:32908] AH00035: access to /index.php denied (filesystem path '/srv/www/htdocs/index.php') because search permissions are missing on a component of the path
    [Mon Jun 23 17:15:31.505627 2014] [mpm_prefork:notice] [pid 13067] AH00170: caught SIGWINCH, shutting down gracefully
    [Mon Jun 23 17:15:31.619476 2014] [ssl:warn] [pid 13132] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
    [Mon Jun 23 17:15:31.627156 2014] [mpm_prefork:notice] [pid 13132] AH00163: Apache/2.4.9 (Linux/SUSE) OpenSSL/1.0.1h PHP/5.4.20 configured -- resuming normal operations
    [Mon Jun 23 17:15:31.627234 2014] [core:notice] [pid 13132] AH00094: Command line: '/usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SSL -D SYSTEMD -D FOREGROUND'
    [Mon Jun 23 17:15:39.541641 2014] [core:error] [pid 13149] (13)Permission denied: [client ::1:32909] AH00035: access to /index.html denied (filesystem path '/srv/www/htdocs/index.html') because search permissions are missing on a component of the path
    [Mon Jun 23 17:15:39.541726 2014] [core:error] [pid 13149] (13)Permission denied: [client ::1:32909] AH00035: access to /index.html.var denied (filesystem path '/srv/www/htdocs/index.html.var') because search permissions are missing on a component of the path
    [Mon Jun 23 17:15:39.541746 2014] [core:error] [pid 13149] (13)Permission denied: [client ::1:32909] AH00035: access to /index.php4 denied (filesystem path '/srv/www/htdocs/index.php4') because search permissions are missing on a component of the path
    [Mon Jun 23 17:15:39.541764 2014] [core:error] [pid 13149] (13)Permission denied: [client ::1:32909] AH00035: access to /index.php5 denied (filesystem path '/srv/www/htdocs/index.php5') because search permissions are missing on a component of the path
    [Mon Jun 23 17:15:39.541780 2014] [core:error] [pid 13149] (13)Permission denied: [client ::1:32909] AH00035: access to /index.php denied (filesystem path '/srv/www/htdocs/index.php') because search permissions are missing on a component of the path

  6. #6
    Join Date
    Nov 2009
    Location
    West Virginia Sector 13
    Posts
    15,041

    Default Re: apache error 403 Opensuse 13.1

    So where did you get this version? Red Hat rpms may not work in openSUSE since thee may be subtle differences in file structures

    Also factory or some other experimental area my not have functional code for 13.1

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

    Default Re: apache error 403 Opensuse 13.1

    On 2014-06-24 00:26, Dexter22 wrote:
    >
    > rpm -qi apache2


    Hey, I asked you to use code tags, and you did not.

    Code:
    
    > Name        : apache2
    > Version     : 2.4.9
    > Release     : 1.11
    > Architecture: i586
    Do you really have a 32 bit processor?

    Code:
    
    > Install Date: Mon 23 Jun 2014 04:30:08 PM CDT
    > Group       : Productivity/Networking/Web/Servers
    > Size        : 3911166
    > License     : Apache-2.0
    > Signature   : DSA/SHA1, Fri 06 Jun 2014 04:39:15 AM CDT, Key ID 9584a164bd6d129a
    > Source RPM  : apache2-2.4.9-1.11.src.rpm
    > Build Date  : Fri 06 Jun 2014 04:38:22 AM CDT
    > Build Host  : cloud102
    > Relocations : (not relocatable)
    > Vendor      : obs://build.opensuse.org/Apache
    > URL         : http://httpd.apache.org/
    This is what you should have:

    Code:
    Version     : 2.4.6
    Release     : 6.23.1
    
    Packager    : http://bugs.opensuse.org
    Vendor      : openSUSE
    URL         : http://httpd.apache.org/

    You are probably using the buildservice version, not the distribution
    default version.

    Why?



    It is not wrong to use such versions, but my guess is that your are a
    newby, so why don't you use defaults till you learn your ways?


    --
    Cheers / Saludos,

    Carlos E. R.
    (from 13.1 x86_64 "Bottle" at Telcontar)

  8. #8

    Default Re: apache error 403 Opensuse 13.1

    Quote Originally Posted by Dexter22 View Post
    /var/log/apache2/error_log/
    So this is your problem:
    Code:
    [Mon Jun 23 17:12:19.274053 2014] [core:error] [pid 12759] (13)Permission denied: [client ::1:32903] AH00035: access to /index.php5 denied (filesystem path '/srv/www/htdocs/index.php5') because search permissions are missing on a component of the path
    And a lot of similar ones.

    Something is wrong with permissions. Apache runs as user wwwrun:www and it has to be able to access its DocumentRoot.

    Please post the output of this, to see what directory has wrong permissions:
    Code:
    ls -ld /srv/ /srv/www/ /srv/www/htdocs/

  9. #9

    Default Re: apache error 403 Opensuse 13.1

    Quote Originally Posted by gogalthorp View Post
    So where did you get this version? Red Hat rpms may not work in openSUSE since thee may be subtle differences in file structures

    Also factory or some other experimental area my not have functional code for 13.1
    Hm?
    His rpm output says this:
    Code:
    Distribution: Apache / openSUSE_13.1
    Apparently he is using the version from OBS's Apache repo, as Carlos mentioned.
    That's not the reason for this problem though.

  10. #10
    Join Date
    Mar 2014
    Location
    US
    Posts
    115

    Default Re: apache error 403 Opensuse 13.1

    As stated, your problem is most likely due to permission problems to the /srv/www tree. Also, I see that it is trying to access several index.php files. You only need one, called "index.php", and should look like this:
    Code:
    <?php
    // Show all information, defaults to INFO_ALL
    phpinfo();
    ?>
    I also like to add a basic html file, named "index.html":
    Code:
    <html>
    <header><title>This is title</title></header>
    <body>
    Hello world
    </body>
    </html>
    Note, both are just plain text files, so use your favorite editor to create them, then save as the indicated names to the "/srv/www/htdocs" folder.
    Next, change the owner group and permissions for our files:
    Code:
    cd /srv/www
    chown -R wwwrun
    chgrp -R www
    chmod -R 644
    You should now be able to see both files. I would also add, before you make your site 'live', delete the "index.php" file.
    If it ain't broke, I just haven't gotten to it yet.
    openSUSE 42.1 (Leap) (x86_64); Intel Dual Core Proc @ 2.66 GHz; KDE Desktop

Page 1 of 3 123 LastLast

Tags for this Thread

Posting Permissions

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