A couple of quick ideas, logging off ...
What about the laravel log in app\storage\logs
Did you give write permissions to the app\storage
What about the environment settings, bootstrap\start.php which also handles which db settings are loaded
Just to make sure the bare install is working, did you try a test route at the top of the routes.php to make it override all the other routes.
Route::any('/', function()
{
return 'default loads';
});
Hope that helps
First thanks for the reply!
This is working:
Route::any('/', function()
{
return 'default loads';
});
And this does NOT work:
Route::any('/test', function()
{
return 'default loads';
});
Also when I visit this route - I see only blank page with nothing there . Actually this is for every route except the main ("/") one.
Through SSH acess on server I've done already :
# Group Writable (Group, User Writable)
$ su chmod -R gu+w app/storage
# World-writable (Group, User, Other Writable)
$ su chmod -R guo+w app/storage
Also I've changed the permission to the app/storage folder to be 777
But after all that, it won't work
Progress Update: I noticed that:
/public/upload
//This wont work
/public/index.php/upload
//This DO work
This almost certainly indicates that the mod_rewrite module in Apache is not enabled, or working properly. Ensure it's enabled, restart Apache and try again.
Here is my .htaccess file which is located in the public folder
<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>
But it still won't work
From what I can find online 1&1 is picky about their mod_rewrite setup.
Couple things to try,
remove the mod_rewrite check (<IfModule mod_rewrite.c>), its is on the server by default.
Put Options -MultiViews first and remove the <IfModule mod_negotiation.c>
Options -MultiViews
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]
I tried with that but with no luck. Although that seems to be the solution - there is some issue with 1and1 (which in my opinion is soo freakin lame) host. The issue seems to be that mod_rewrite cannot be turned on, despite the line "RewriteEngine On". No comments for their support so now I have to hack that shi*ty system to run my favorite framework. I have another hosting and there everything works perfect. But I need to use 1and1 because client use it for other purposes. So any help is highly appreciated for that "host" in order to run my site.
this is my 1and1
.htaccess
<IfModule mod_rewrite.c>
RewriteBase /
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
#1and1 to enable PHP 5.4
AddHandler x-mapp-php6 .php
# Redirect Trailing Slashes...
RewriteRule ^(.*)/$ /$1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
Thanks to everyone who helped!!! The solution of extjac was the closest working primer. So thank you very much pal!
The solution: So basically my folders are arranged like this
/www
|
| my_laravel_project
|
| other_project
| other_project_2
|
The following .htaccess file is located in my_laravel_project->public folder and lookos like this:
<IfModule mod_rewrite.c>
RewriteBase /public
<IfModule mod_negotiation.c>
Options +FollowSymlinks -MultiViews
</IfModule>
RewriteEngine On
#1and1 to enable PHP 5.4
AddHandler x-mapp-php6 .php
# Redirect Trailing Slashes...
RewriteRule ^(.*)/$ /$1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
and with this pretty urls finally work!
So again thanks for the help! Appreciate it!
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community