• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/

Issue Getting Server Error 403 Forbidded.

kartik

New Pleskian
Server operating system version
Ubunti 20.04
Plesk version and microupdate number
Plesk Obsidian 18.0.44
Hi,

I have installed a magneto 2.4.2 inside httpdocs/cs/magento1 directory and It has been installed successfully but when I am trying to accessing the site I am getting Serve Error 403 forbidden. I have attached all the configuration and error snapshot. Any help would be greatly appreciated.
 

Attachments

  • 1.jpg
    1.jpg
    116.2 KB · Views: 16
  • php2.jpg
    php2.jpg
    114.8 KB · Views: 13
  • php1.jpg
    php1.jpg
    122 KB · Views: 14
  • Installation successful message.jpg
    Installation successful message.jpg
    108.5 KB · Views: 10
  • Apache&nginx2.jpg
    Apache&nginx2.jpg
    95.9 KB · Views: 10
  • Apache&nginx1.jpg
    Apache&nginx1.jpg
    140.5 KB · Views: 12
  • 3.jpg
    3.jpg
    125 KB · Views: 16
  • 2.jpg
    2.jpg
    110.7 KB · Views: 14
You are serving the website from the httpdocs directory, but there seems to be no index.php/html in there.

Change the document root as explained here:

 
Hi Maartenv,

Thanks for your reply.

I followed this article and did the changes as per the article but after modifying the document root location, it is redirecting plesk login page (title - Domain Default Page).
 

Attachments

  • Error.jpg
    Error.jpg
    90.6 KB · Views: 8
My goal is to create 2 magento2 project under a single domain like below.

smagento.com/httpdocs/cs/magento1 >> One magento 2.4.2 installation will be done here
smagento.com/httpdocs/cs/magento2 >> Another magento 2.4.2 installation will be done here
 
Why don't you use subdomains for each Magento installation?

magento1.smagento.com
magento2.smagento.com
 
I understand your point. Now I have installed magento 2.4.2 under /var/www/vhosts/smagento.com/httpdocs directory and its working fine but when I am trying to installing magento 2.4.2 inside /var/www/vhosts/smagento.com/httpdocs/magento1 directory then installation is completing successfully but I am getting the attached error. Can you please tell me reason for this error?

** Without changing Document Root.
 

Attachments

  • New Error.jpg
    New Error.jpg
    102.1 KB · Views: 7
What is the content of the file /var/www/vhosts/smagento.com/httpdocs/.htaccess ?

What is the content of directory /var/www/vhosts/smagento.com/httpdocs/magento1/ ?
 
Attached both the locations content.
 

Attachments

  • File.jpg
    File.jpg
    29.7 KB · Views: 13
  • htaccess.jpg
    htaccess.jpg
    40.1 KB · Views: 13
Back
Top