• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Please beaware of a breaking change in the REST API on the next Plesk release (18.0.62).
    Starting from Plesk Obsidian 18.0.62, requests to REST API containing the Content-Type header with a media-type directive other than “application/json” will result in the HTTP “415 Unsupported Media Type” client error response code. Read more here

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
  • 2.jpg
    2.jpg
    110.7 KB · Views: 14
  • 3.jpg
    3.jpg
    125 KB · Views: 15
  • Apache&nginx1.jpg
    Apache&nginx1.jpg
    140.5 KB · Views: 11
  • Apache&nginx2.jpg
    Apache&nginx2.jpg
    95.9 KB · Views: 9
  • Installation successful message.jpg
    Installation successful message.jpg
    108.5 KB · Views: 9
  • php1.jpg
    php1.jpg
    122 KB · Views: 13
  • php2.jpg
    php2.jpg
    114.8 KB · Views: 12
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: 6
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: 5
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: 12
  • htaccess.jpg
    htaccess.jpg
    40.1 KB · Views: 12
Back
Top