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

You shouldn't have to change your htaccess file. Just point the web root to your public folder. It should probably be either php or php5. Never seen php5.5. And when you do php artisan, then you need to be in the root folder of your application (where the artisan file sits) or specify the path to it as part of the command.

Last updated 2 years ago.
0

I use 1and1. Make sure you point your domain to the public folder.

this is my htaccess file

<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

shabushabu said:

You shouldn't have to change your htaccess file. Just point the web root to your public folder. It should probably be either php or php5. Never seen php5.5. And when you do php artisan, then you need to be in the root folder of your application (where the artisan file sits) or specify the path to it as part of the command.

You always need to trick your .htaccess with 1and1, theirs servers are strangely configured, and I needed to customize the default .htaccess of a Symfony website.

Last updated 2 years ago.
0

extjac said:

I use 1and1. Make sure you point your domain to the public folder.

this is my htaccess file


  RewriteBase /
   
       Options -MultiViews
   

   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]

I done what you did, I succeeded to have the index page displaying correctly, but when I try to access a route pointing to any other route than '/', I have a 500 Internal Server Error

Last updated 2 years ago.
0

I found a solution, you juste have to replace the RewriteRule by :

RewriteRule ^ /index.php [L]

but I still have an empty list of commands in "php artisan"... (I only have the ones from way/generators)

EDIT : Here what I have when I do "php artisan list" :

$ php5 artisan list   
Laravel Framework version 4.1.24

Usage:
  [options] command [arguments]

Options:
  --help           -h Display this help message.
  --quiet          -q Do not output any message.
  --verbose        -v|vv|vvv Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  --version        -V Display this application version.
  --ansi              Force ANSI output.
  --no-ansi           Disable ANSI output.
  --no-interaction -n Do not ask any interactive question.
  --env               The environment the command should run under.

Available commands:
  help                         Displays help for a command
  list                         Lists commands
  workbench                    Create a new package workbench
generate
  generate:controller          Generate a controller
  generate:migration           Generate a new migration
  generate:model               Generate a model
  generate:pivot               Generate a pivot table
  generate:publish-templates   Copy generator templates for user modification
  generate:resource            Generate a new resource
  generate:scaffold            Scaffold a new resource (with boilerplate)
  generate:seed                Generate a database table seeder
  generate:view                Generate a view
Last updated 2 years ago.
0

The version of PHP CLI on 1&1 is too old to run Artisan unfortunately.

The best way to run Artisan is using a web interface (using https://github.com/jn-Jones/web-artisan for example)

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

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.