Hello dear friends
I have a shared host with directadmin control panel .
I Uploaded the public folder contents in public_html and other files in parent directory .
But when I want to open my website in chrome shows me "Server error 500" and I don't get any error log in laravel and my hosting logs !
even didn't open laravel error page or any page that shows me the error!
How can i solve this problem ?
Maybe make sure that the permissions on the folders are correct. For instance, I think 'storage' has to have more relaxed permissions (755 or so). Quite often uploading via FTP can lose the permissions attached to folders.
Also, can you tell us about the folder structure of your shared host? Have you placed everything inside a 'public_html' folder or something? Just because it's also likely that you need to make sure your public folder is the only one publicly available, and having it in the wrong place might cause issues like this.
Throw as much information as you can think of concerning your shared hosting environment / file structure and what you have done so far and we can go from there.
Hello Clmrie
all permissions are currect , all files are 644 and all folders are 755.
the folder structure of my host is :
/home/myhost_username/domains/domain.com/public_html
or
/home/myhost_username/public_html
yes I have placed any file in "public" directory to my host "public_html" directory. and other project's directories in parent of public_html directory.
the vps is mine and I can change any configuration in directadmin and other parts .
the webserver is nginx , all nginx configuration is the same as in installation document.
Great, that all sounds ok then.
Does the shared environment use cPanel to administer it? If so there should be an 'Error Logs' section that shows server-side errors like 500. Are you able to tell me the domain name or post a screenshot link so that I can see what the error looks like (helps determine if it is server-side or code)?
here is the screenshot of error :
http://oi67.tinypic.com/2enm2aa.jpg
I'm using directadmin to adminiter the shared hosting.
all paths are currect and I updated index.php paths.
The php version is 5.5.30
the key is set.
I'm Using nginx webserver
I'm tested other php files and working good in public_html
@ali_fattahi We need a screenshot of the error log.
Please send us a screenshot or output of the <?php phpinfo(); ?> command as well.
Without this information we can not help you.
@Brianv
Thenk you for reply
I don't get any error log in php and linux... , this is our main problem :)
the error log is empty in my host and php dosen't show any error !
here is phpinfo()
[removed]
laravel project : [removed]
@ali_fattahi can you ssh into the server and tail the /var/log/httpd/error.log ?
Or can you create a temporarily account for me on your DirectAdmin server? Then I'll setup a Laravel website and see if I stumble upon any issues.
Had the same exact issue and in my case the problem was the default php version (which was 5.5+) of the shared hosting service that I use.
After I changed it to 7+ (laravel 5.5 needs php version >= 7) everything started to work. Hope that helps someone!