I am trying to install magento 2.3.4 on a LAMP stack on centos. Php version 7.3 and mysql 5.6. Initially setup was giving a 500 error. I searched google and found a suggestion to remove .htaccess. it worked. Now it gives 404 error for admin page after installation and homepage appears without any css and media. If I put the .htaccess back to root folder of magento, it gives 500 error for both admin and magento store.
Can you please help me find the problem.
When facing a 500 error the first thing you should do is to search for your web server error log. When running on apache it can mostly be found in one of these 2 locations:
/var/log/httpd/ -> centos, archlinux ...
/var/log/apache2/ -> debian, ubuntu ...
Hope this can help you! Let me know if you need further assistance.
If issue solved, Click Kudos & Accept as Solution.
If it doesn't give 500 internal server error after removing the .htaccess file, then there must be some PHP version issue or any server configuration is missing.