Srdjan Posted March 3, 2018 Share Posted March 3, 2018 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... Quote Link to comment Share on other sites More sharing options...
mike Posted March 3, 2018 Share Posted March 3, 2018 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. Quote Link to comment Share on other sites More sharing options...
Srdjan Posted March 4, 2018 Author Share Posted March 4, 2018 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 Quote Link to comment Share on other sites More sharing options...
AA22Dev Posted March 7, 2018 Share Posted March 7, 2018 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 Quote Link to comment Share on other sites More sharing options...
InfinityFree Posted March 8, 2018 Share Posted March 8, 2018 Laravel 5.6 requires at least PHP 7.1. Also, enable debug mode in Laravel to see the actual error. Quote Link to comment Share on other sites More sharing options...
AA22Dev Posted March 10, 2018 Share Posted March 10, 2018 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.