Results 1 to 8 of 8
  1. #1
    Join Date
    Feb 2011
    Location
    Slovakia
    Posts
    6
    Plugin Contributions
    0

    Default Error 403 - Forbidden after installing

    Hi folks,

    I am on linux server.
    PHP Version 5.1.6
    mysql 5.0.77
    Zen Cart 1.3.9h

    All files I have uploaded to /httpdocs

    I have checked my document root path, it looks to be ok
    /var/www/vhosts/lacnyprotein.sk/httpdocs

    PHP 'safe_mode' is off

    after successful installing I am getting 403 error - Forbidden
    You don't have permission to access /index.php on this server.

    on index.php as well as on /my_new_admin directory
    Could you please help me somebody?
    Thank you

    Radoslav.

  2. #2
    Join Date
    Nov 2004
    Location
    Norfolk, United Kingdom
    Posts
    3,036
    Plugin Contributions
    2

    Default Re: Error 403 - Forbidden after installing

    You can check your root by using this method:

    1. Create a new text document on your desktop and name it cwd.php. Ignore the warning about changing the file type.

    2. Put this code into it:
    Code:
    <?php
    $p = getcwd();
    echo $p;
    ?>
    3. Upload it to the root of your domain via FTP.

    4. Go to http://www.yourdomain.com/cwd.php via your browser and printed on the screen will be the full pathway to the root of your domain.

    5. Write down that pathway and then delete the cwd.php file from your hosting.
    Do that and report back as to whether the root you are using is the correct one.

    Vger

  3. #3
    Join Date
    Feb 2011
    Location
    Slovakia
    Posts
    6
    Plugin Contributions
    0

    Default Re: Error 403 - Forbidden after installing

    Hello Vger!

    Thanks for your prompt reply.

    I am still getting 403 error, on cwd.php also, whats going on?
    lacnyprotein . sk / cwd.php

    Thanks

    Rado.

  4. #4
    Join Date
    Nov 2004
    Location
    Norfolk, United Kingdom
    Posts
    3,036
    Plugin Contributions
    2

    Default Re: Error 403 - Forbidden after installing

    That's just a basic PHP file. You need to contact your hosting company, as it seems that PHP is not set up correctly on the server. You can also try uploading a basic index.html file to the root:
    Code:
    <html>
    <head>
    <title>Testing</title>
    </head>
    <body>
    Hallo World!
    </body>
    </html>
    If that works then at least you know it's a problem only with PHP files - but you still need to contact your hosting company.

    Vger

  5. #5
    Join Date
    Feb 2011
    Location
    Slovakia
    Posts
    6
    Plugin Contributions
    0

    Default Re: Error 403 - Forbidden after installing

    It doesn't matter what I upload, if I point to it on web, it is not working...
    I think php is working correctly, this occured right after zc install.
    Thank you

    Rado.

  6. #6
    Join Date
    Feb 2011
    Location
    Slovakia
    Posts
    6
    Plugin Contributions
    0

    Default Re: Error 403 - Forbidden after installing

    Hello again,

    I have installed zc v1.3.8 under different domain on the same server and everything works perfectly!

    Can anybody help me?
    Thanks

    Rado.

  7. #7
    Join Date
    Nov 2004
    Location
    Norfolk, United Kingdom
    Posts
    3,036
    Plugin Contributions
    2

    Default Re: Error 403 - Forbidden after installing

    Can anybody help me?
    Your hosting company? As I suggested they are the best people to ask.

    Vger

  8. #8
    Join Date
    Mar 2009
    Location
    Niagara Ontario
    Posts
    135
    Plugin Contributions
    0

    Default Re: Error 403 - Forbidden after installing

    Quote Originally Posted by radoslav View Post
    Hello again,

    I have installed zc v1.3.8 under different domain on the same server and everything works perfectly!

    Can anybody help me?
    Thanks

    Rado.
    The following worked for me.
    add this line --> DirectoryIndex index.php index.html
    to the .htaccess file in the root directory.
    if there is no .htaccess file create one. check all site pages for access and adjust file access permissions accordingly using .htaccess at the directory level
    Last edited by usr50; 5 Feb 2011 at 01:18 AM. Reason: updated

 

 

Similar Threads

  1. 403 Forbidden error
    By pioP in forum General Questions
    Replies: 3
    Last Post: 4 Jan 2016, 11:45 AM
  2. Downloads getting 403 forbidden after upgrading to 1.5.4
    By connected in forum Upgrading to 1.5.x
    Replies: 11
    Last Post: 20 Jan 2015, 07:03 PM
  3. 403 forbidden error
    By maxy007 in forum General Questions
    Replies: 1
    Last Post: 31 Jan 2011, 12:43 PM
  4. 403 Forbidden Error
    By billett in forum General Questions
    Replies: 2
    Last Post: 11 May 2010, 08:14 PM

Posting Permissions

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