cancel
Showing results for 
Search instead for 
Did you mean: 

No frontend and backend after installation

No frontend and backend after installation

Hi,

 

Managed to install Magento 2.4.3. During the install it did return a few (error) messages, such as:

 

Reading /var/www/vhosts/prullenbakkendeal.nl/httpdocs/magento2/composer.json
Loading config file /var/www/vhosts/prullenbakkendeal.nl/httpdocs/magento2/composer.json
Failed to initialize global composer: Composer could not find the config file: /var/www/vhosts/prullenbakkendeal.nl/httpdocs/magento2/var/composer_home/composer.json
To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" section

However, it did return a success message at the end.

[Progress: 1386 / 1386]
[SUCCESS]: Magento installation complete.
[SUCCESS]: Magento Admin URI: ADMINLINK
Nothing to import.

 

Despite the fact that it says that the Magento installation is complete and successful, I can not access my admin link, nor my frontend link.

 

The frontend page gives me a 403 error:IIRZGQR

 

 

 

 

 

 

 

my domainname.nl/magento2/pub gives me something, but not something good (Plain text, no CSS): 

N75QWgp

My admin link my domainname.nl/magento2/adminuri returns a 404. 

 

Any idea on how I can fix this?

 

My VPS specs:

  • VPS Ubuntu 20.04 LTS 64bit + Plesk Obsidian
  • CPU vCores: 4
  • 8 GB RAM
  • Storage: 400 GB
  • PHP: 7.4.3 (cli)
  • Composer: v. 2.2.3 (2021-12-31).

 

Edit: pictures weren't loading, so I uploaded them to imgur.

Edit 2: Typo in the PHP version.

3 REPLIES 3

Re: No frontend and backend after installation

If you redeployed it after deleting the pub/static directory you would have deleted the .htaccess file in the pub/static directory. That causes the URL Rewrite issue. Putting the .htaccess with URL rewrite option in the pub/static directory will resolve the problem.

If issue solved, Click Kudos & Accept as Solution.
LitCommerce - The Most Simple & Affordable Multi-channel Selling Tool

Re: No frontend and backend after installation

@ricardobos936c,

 

It might be possible that the issue is arriving because of the file permission issue.
Please run the the setup upgrade and deploy command and then run the below SSH command:

chmod -R 777 var pub/static generated/

Problem solved? Click Kudos and "Accept as Solution".
200+ Magento 2 Extensions for Enhanced Shopping Experience.

Re: No frontend and backend after installation

Please check .htaccess files at root dir of magento and pub the .htaccess file should be there and also run the below command for permission 

 

pub folder .htaccess filepub folder .htaccess fileroot folder .httaccess fileroot folder .httaccess file

 

sudo chmod -R 777 var/ pub/ generated/