Jump to content
[MUST READ] Forum Rules ×

500 error


Srdjan

Recommended Posts

I keep getting 500 error when I try to access laravel application on subdomain of a web server. I have uploaded entire laravel project into a public_html/laravel directory. Document root points to public_html/laravel/public. I've added 755 permissions to bootstrap and storage directories. Laravel version: 5.6.7, php version on my machine: 7.1.11. Web server php version 7.0 What can cause this problem? Differences between php versions? .htaccess file:
<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] # Handle Front Controller... RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [L] </IfModule>
Now I've changed document root to point to public_html/laravel and when I add /public i get 'no input specified' error and error log file looks like this: Got error "Unable to open primary script: /home/user/public_html/laravel/public/index.php(no such file or directory)"
 
 
Chat Conversation End
 
 
Type a message...
 
  •  
  •  
  •  
Link to comment
Share on other sites

17 minutes ago, Srdjan said:
I keep getting 500 error when I try to access laravel application on subdomain of a web server. I have uploaded entire laravel project into a public_html/laravel directory. Document root points to public_html/laravel/public. I've added 755 permissions to bootstrap and storage directories. Laravel version: 5.6.7, php version on my machine: 7.1.11. Web server php version 7.0 What can cause this problem? Differences between php versions? .htaccess file:
<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] # Handle Front Controller... RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [L] </IfModule>
Now I've changed document root to point to public_html/laravel and when I add /public i get 'no input specified' error and error log file looks like this: Got error "Unable to open primary script: /home/user/public_html/laravel/public/index.php(no such file or directory)"
 
 
Chat Conversation End
 
 
Type a message...
 
  •  
  •  
  •  
  •  

Check the error logs. You might find the problem there.

Link to comment
Share on other sites

Sat, 03 Mar 2018 01:46:07 -0500 AH00128: File does not exist: /home/vol4_3/byethost18.com/b18_21714692/htdocs/icons/text.gif
Sat, 03 Mar 2018 01:46:07 -0500 AH00128: File does not exist: /home/vol4_3/byethost18.com/b18_21714692/htdocs/favicon.ico
Sat, 03 Mar 2018 01:46:07 -0500 AH01276: Cannot serve directory /home/vol4_3/byethost18.com/b18_21714692/htdocs/public/: No matching DirectoryIndex (index.html,index.htm,index.php,index2.html) found, and server-generated directory index forbidden by Options directive
Sat, 03 Mar 2018 01:46:20 -0500 AH01276: Cannot serve directory /home/vol4_3/byethost18.com/b18_21714692/htdocs/public/: No matching DirectoryIndex (index.html,index.htm,index.php,index2.html) found, and server-generated directory index forbidden by Options directive
Sat, 03 Mar 2018 01:46:20 -0500 /home/vol4_3/byethost18.com/b18_21714692/htdocs/.htaccess: RewriteBase takes one argument, the base URL of the per-directory context
Sat, 03 Mar 2018 01:46:38 -0500 AH01276: Cannot serve directory /home/vol4_3/byethost18.com/b18_21714692/htdocs/public/: No matching DirectoryIndex (index.html,index.htm,index.php,index2.html) found, and server-generated directory index forbidden by Options directive
Sat, 03 Mar 2018 15:46:42 -0500 AH00128: File does not exist: /home/vol4_3/byethost18.com/b18_21714692/htdocs/icons/text.gif
Sat, 03 Mar 2018 15:46:42 -0500 AH00128: File does not exist: /home/vol4_3/byethost18.com/b18_21714692/htdocs/favicon.ico
Sat, 03 Mar 2018 16:45:24 -0500 AH00128: File does not exist: /home/vol4_3/byethost18.com/b18_21714692/htdocs/icons/text.gif
Sat, 03 Mar 2018 17:46:13 -0500 AH00128: File does not exist: /home/vol4_3/byethost18.com/b18_21714692/htdocs/icons/text.gif
                                                                                                                                     
 

Link to comment
Share on other sites

On 3/4/2018 at 5:06 AM, Srdjan said:

Sat, 03 Mar 2018 01:46:07 -0500 AH00128: File does not exist: /home/vol4_3/byethost18.com/b18_21714692/htdocs/icons/text.gif
Sat, 03 Mar 2018 01:46:07 -0500 AH00128: File does not exist: /home/vol4_3/byethost18.com/b18_21714692/htdocs/favicon.ico
Sat, 03 Mar 2018 01:46:07 -0500 AH01276: Cannot serve directory /home/vol4_3/byethost18.com/b18_21714692/htdocs/public/: No matching DirectoryIndex (index.html,index.htm,index.php,index2.html) found, and server-generated directory index forbidden by Options directive
Sat, 03 Mar 2018 01:46:20 -0500 AH01276: Cannot serve directory /home/vol4_3/byethost18.com/b18_21714692/htdocs/public/: No matching DirectoryIndex (index.html,index.htm,index.php,index2.html) found, and server-generated directory index forbidden by Options directive
Sat, 03 Mar 2018 01:46:20 -0500 /home/vol4_3/byethost18.com/b18_21714692/htdocs/.htaccess: RewriteBase takes one argument, the base URL of the per-directory context
Sat, 03 Mar 2018 01:46:38 -0500 AH01276: Cannot serve directory /home/vol4_3/byethost18.com/b18_21714692/htdocs/public/: No matching DirectoryIndex (index.html,index.htm,index.php,index2.html) found, and server-generated directory index forbidden by Options directive
Sat, 03 Mar 2018 15:46:42 -0500 AH00128: File does not exist: /home/vol4_3/byethost18.com/b18_21714692/htdocs/icons/text.gif
Sat, 03 Mar 2018 15:46:42 -0500 AH00128: File does not exist: /home/vol4_3/byethost18.com/b18_21714692/htdocs/favicon.ico
Sat, 03 Mar 2018 16:45:24 -0500 AH00128: File does not exist: /home/vol4_3/byethost18.com/b18_21714692/htdocs/icons/text.gif
Sat, 03 Mar 2018 17:46:13 -0500 AH00128: File does not exist: /home/vol4_3/byethost18.com/b18_21714692/htdocs/icons/text.gif
                                                                                                                                     
 

It seems like that index file doesn't exists.

On 3/4/2018 at 2:14 AM, Srdjan said:
I keep getting 500 error when I try to access laravel application on subdomain of a web server. I have uploaded entire laravel project into a public_html/laravel directory. Document root points to public_html/laravel/public. I've added 755 permissions to bootstrap and storage directories. Laravel version: 5.6.7, php version on my machine: 7.1.11. Web server php version 7.0 What can cause this problem? Differences between php versions? .htaccess file:
<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] # Handle Front Controller... RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [L] </IfModule>
Now I've changed document root to point to public_html/laravel and when I add /public i get 'no input specified' error and error log file looks like this: Got error "Unable to open primary script: /home/user/public_html/laravel/public/index.php(no such file or directory)"
 
 
Chat Conversation End
 
 
Type a message...
 
  •  
  •  
  •  
  •  

Hi, Free hosting htdocs instead of public_html folder

Link to comment
Share on other sites

On 3/4/2018 at 2:14 AM, Srdjan said:
I keep getting 500 error when I try to access laravel application on subdomain of a web server. I have uploaded entire laravel project into a public_html/laravel directory. Document root points to public_html/laravel/public. I've added 755 permissions to bootstrap and storage directories. Laravel version: 5.6.7, php version on my machine: 7.1.11. Web server php version 7.0 What can cause this problem? Differences between php versions? .htaccess file:
<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] # Handle Front Controller... RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [L] </IfModule>
Now I've changed document root to point to public_html/laravel and when I add /public i get 'no input specified' error and error log file looks like this: Got error "Unable to open primary script: /home/user/public_html/laravel/public/index.php(no such file or directory)"
 
 
Chat Conversation End
 
 
Type a message...
 
  •  
  •  
  •  
  •  

500 internal server error may be caused by the wrong use of .htaccess file

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...