In bootstrap/app.php
$app = new Illuminate\Foundation\Application(
realpath(__DIR__.'/../')
);
And server requirement
PHP >= 5.4
Mcrypt PHP Extension
OpenSSL PHP Extension
Mbstring PHP Extension
Tokenizer PHP Extension
You can check one by one extension has been enable
Thanks for the reply. I got it to work. There was a typo in the tutorial I was following. now when I try to go to any other page I get a 404 error. I found an article that mentions the htaccess file and changing it from this:
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
# Redirect Trailing Slashes...
RewriteRule ^(.*)/$ /$1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
# Use PHP54 as default
AddHandler application/x-httpd-php54 .php
<IfModule mod_suphp.c>
suPHP_ConfigPath /opt/php54/lib
</IfModule>
to this
<IfModule mod_rewrite.c>
# <IfModule mod_negotiation.c>
Options -MultiViews
# </IfModule>
RewriteEngine On
# Redirect Trailing Slashes...
RewriteRule ^(.*)/$ /$1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ /index.php [L]
</IfModule>
the difference is in the RewriteRule. There is a '/' just before index.php. I tried that but it didn't work for me. In his article it was his solution
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community