cancel
Showing results for 
Search instead for 
Did you mean: 

Installation Error in Magento 2.4.2

Installation Error in Magento 2.4.2

Hi I am trying to install the Magento CE 2.4.2 as it is CLI based, I am running the following command 

[luxeadmin@162-241-125-112 angel]$ bin/magento setup:install --base-url https://162.241.125.11devadmin --db-password Luxe@2021
Starting Magento installation:
File permissions check...
[Progress: 1 / 1313]
Required extensions check...
[luxeadmin@162-241-125-112 angel]$ ^C
[luxeadmin@162-241-125-112 angel]$ find . -type f -exec chmod 644 {} \;
[luxeadmin@162-241-125-112 angel]$ find . -type d -exec chmod 755 {} \;
[luxeadmin@162-241-125-112 angel]$ find ./var -type d -exec chmod 777 {} \;
[luxeadmin@162-241-125-112 angel]$ find ./pub/media -type d -exec chmod 777 {} \;
[luxeadmin@162-241-125-112 angel]$ find ./pub/static -type d -exec chmod 777 {} \;
[luxeadmin@162-241-125-112 angel]$ bin/magento setup:install --base-url https://162.241.125.11devadmin --db-password Luxe@2021
-bash: bin/magento: Permission denied
[luxeadmin@162-241-125-112 angel]$ bin/magento setup:install --base-url https://162.241.125.11devadmin --db-password Luxe@2021
-bash: bin/magento: Permission denied

SS1.png

If anyone knows please help me. I checked with every possible article to install. Thanks in advance. 

1 REPLY 1

Re: Installation Error in Magento 2.4.2

 

It seems now Magento will only load from pub folder. By default it will not be possible to load it from the root of Magento.

 

So the best solution for this is to create a virtual host and point it to pub directory.

 

Alternative

 

Meanwhile, as an alternative to run this on local machine I tried something else that seems to be working fine with the default setup. Like earlier we were using the base_url as http://127.0.0.1/magento. So instead of this now we need to use http://127.0.0.1/magento/pub as the base_url. Secure and Unsecure URL needs to be setup on the basis of this.

 

Setting this up will avoid the issue of 404 page coming.

 

Note: Verified this with the default Magento only. Not sure for the projects having much complex functionalities. But you can give this a try.