Hi firends,
I had copied all the magento installed files to another cloud server, uploaded the sql to the new server, changed the file env.php to connect the magento to the new database, but, when I try to navigate the magento site I get the 403 forbbiden access..
Any Idea how to fix it?
It looks like you have directory permissions issue.
Kindly run below commands to give proper permissions to directories and files.
cd <your Magento install dir> find var vendor pub/static pub/media app/etc -type f -exec chmod u+w {} \; find var vendor pub/static pub/media app/etc -type d -exec chmod u+w {} \; chmod u+x bin/magento
After run permission command you need to run below commands :
php bin/magento setup:upgrade php bin/magento setup:static-content:deploy -f php bin/magento cache:clean php bin/magento cache:flush
Hope it helps !
Manthan,
Thanks for your reply..
I had already executed all the commands with no change..
The response is the same.. 403
The site is in qlindomoda.com.ar
If you want, I can give you an ssh user and a Vesta access.
Thanks anyway for the response.
Looking at the link you have shared across it seems like you have issue with your server configuration.
Can you please let me know are you using nginx server or apache server ?
Also, below i am sharing the links which helps you to configured your server correctly to resolve this issue.
https://magehit.com/blog/how-to-fix-403-forbidden-error-in-magento-2/
https://www.maxpronko.com/magento-2-403-forbidden-error-fix/
Hope it helps !
Thank you, I was able to retrieve the website! The issue was the hostname + root permission together. I was able to retrieve the default block from the demo url with html code lookup