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:
my domainname.nl/magento2/pub gives me something, but not something good (Plain text, no CSS):
My admin link my domainname.nl/magento2/adminuri returns a 404.
Any idea on how I can fix this?
My VPS specs:
Edit: pictures weren't loading, so I uploaded them to imgur.
Edit 2: Typo in the PHP version.
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.
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/
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
sudo chmod -R 777 var/ pub/ generated/