I’m getting a 500 error for the second Laravel project in a VPS (Inmotion hosting) that I deployed.
For the main account/domain I did it without issues, I pulled the code from git, created a symbolic link from laravel_project/public to /public_html, all good here, the website is up and running.
I pulled the second Laravel project (different domain as well), this time what I did was:
/home/user/karinamedelean/public I created a symbolic link to /home/user/karinamedelean/public_html
In the cPanel, I set the Document Root to /karinamedelean/public_html (see attached screenshot)
Once I did that I thought it was all to do, however, I’m getting 500 error.
If I created another symbolic link from the main project /public_html like this:
/home/user/karinamedelean/public to /home/user/public_html/karina
I’m able to load the website without issues https://qfy.me/karina
The problem is with its domain https://karinamedelean.com, this is shared VPS, so I do not have access to root, I can not modify the httpd.conf file.
<VirtualHost 199.250.214.81:443>
ServerName karinamedelean.qfy.me
ServerAlias karinamedelean.com mail.karinamedelean.com www.karinamedelean.com www.karinamedelean.qfy.me cpcalendars.karinamedelean.com webdisk.karinamedelean.com webmail.karinamedelean.com cpanel.karinamedelean.com cpcontacts.karinamedelean.com
DocumentRoot /home/qfy/karinamedelean/public_html
ServerAdmin [email protected]
UseCanonicalName Off
This is the .htaccess of the karinamedelean project
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews -Indexes
</IfModule>
RewriteEngine On
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (.+)/$
RewriteRule ^ %1 [L,R=301]
# Send Requests To Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
I don’t know what else I need to do, any help is more than welcome, thanks.