anmol's avatar
Level 2

server error

i have followed the entire process from uploading root file in home folder and public file in public _html also i have dumped the entire databse.which was successfully done.now when the refreshed the website it is showing a server error 500.i am totally confused.what should i be doing???intially there was a static website to which i uploaded mine and chaned the path in index.php to .../folder/bootsratp....anyone can help plz.this is not a good sign i guess me.i have double checked the website is working fine on local server `Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at [email protected] to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.`

0 likes
5 replies
Snapey's avatar

do you have the right php version?

jlrdw's avatar

Did you remember this

inside the public_html folder, open index.php and add ../laravel to the two includes

Have you tried various combinations depending on directory structure

../
../../

Etc, Sounds like you just need to get a path worked out correctly.

anmol's avatar
Level 2

@Snapey initially yes i was using php version 5.5 which was selected by default with the domain.then i changed it to 5.6 of the three options that is 5.5,5.6,7.0 and it started showing me a blank white page though there was no internal 500 error but there was no website and in the error logs it showed error in php version and it happened for both 5.6 and 7.0 for 5.5 it is showing internal server error 500 and in error logs it said you public_html is writable by group.

anmol's avatar
Level 2

@jlrdw yes i very well remember to change the path of index.php.i uploaded a folder called laravel in the home and so changed the path to /../laravel/bootstrap at the two places.

anmol's avatar
Level 2

@jlrdw i have no idea about the.htaccess file and sinces this is the first file that server reads it maybe the reason for error.can you have a look at it.

<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
    Options -MultiViews
</IfModule>

RewriteEngine On

# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [L,R=301]

# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]

# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
</IfModule>

Please or to participate in this conversation.