Support the ongoing development of Laravel.io →
Installation Configuration Database
Last updated 2 years ago.
0

Any ideas ?

Last updated 2 years ago.
0

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

Last updated 2 years ago.
0

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

Last updated 2 years ago.
0

Progress Update: I noticed that:

/public/upload

//This wont work
/public/index.php/upload

//This DO work
Last updated 2 years ago.
0

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.

Last updated 2 years ago.
0

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 
Last updated 2 years ago.
0

any other suggestions ?

Last updated 2 years ago.
0

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]
Last updated 2 years ago.
0

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.

Last updated 2 years ago.
0

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>
Last updated 2 years ago.
0
Solution

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!

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

alf13 alf13 Joined 23 Jul 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.