Hallo,,

Ik heb getracht Laravel te installeren en het lukt aardig tot nu toe dankzij brew en composer.. maar ik krijg geen pagina's te zien wanneer ik naar de laravel directory ga.. .

ik heb het volgende gedaan..

ik heb met homebrew php55-mcrypt geinstalleerd. ( ik heb php5.5 op osx staan en gebruik geen mamp of dergelijke )
wanneer ik phpinfo() bekijk zie ik wel dat mcrypt ingeschakeld is nu.

Vervolgens heb ik de stappenplan van laravel opgevolgd en via de shell geinstalleerd en alle toebehoren.. maar wanneer ik ga naar

localhost/laravelmap

dan zie ik gewoon alle bestanden en krijg ik niet een view voorgeschoteld ook niet als ik zelf iets creeer heb nu staan
<?php
Route::get('/', function()
{
return View::make('hello');
});

Route::get('users', function()
{
return 'Users!';
});
?>

in de routes.php

Wie o wie kan me vertellen wat ik fout doe en wat ik dus moet doen?

bijlages:

Dit krijg ik wanneer ik laravel project aanmaak.

monolog/monolog suggests installing mlehner/gelf-php (Allow sending log messages to a GrayLog2 server)
monolog/monolog suggests installing ext-amqp (Allow sending log messages to an AMQP server (1.0+ required))
monolog/monolog suggests installing ext-mongo (Allow sending log messages to a MongoDB server)
monolog/monolog suggests installing doctrine/couchdb (Allow sending log messages to a CouchDB server)
monolog/monolog suggests installing raven/raven (Allow sending log messages to a Sentry server)
symfony/translation suggests installing symfony/config ()
symfony/translation suggests installing symfony/yaml ()
symfony/routing suggests installing symfony/config ()
symfony/routing suggests installing symfony/yaml ()
symfony/debug suggests installing symfony/class-loader ()
symfony/event-dispatcher suggests installing symfony/dependency-injection ()
symfony/http-kernel suggests installing symfony/class-loader ()
symfony/http-kernel suggests installing symfony/config ()
symfony/http-kernel suggests installing symfony/dependency-injection ()
predis/predis suggests installing ext-phpiredis (Allows faster serialization and deserialization of the Redis protocol)
Writing lock file
Generating autoload files
Laravel requires the Mcrypt PHP extension.
Laravel requires the Mcrypt PHP extension.


en wanneer ik composer install doe krijg ik


MacBook-Pro-van-Reshad:lara01 reshadfarid$ composer install
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Nothing to install or update
Generating autoload files
Laravel requires the Mcrypt PHP extension.
Ik heb geen probleem met rechten want ook met Sudo krijg ik netjes alle bestanden maar GEEN public.. dit is wat ik krijg

-rw-r--r-- 1 reshadf staff 145 30 jul 16:05 CONTRIBUTING.md
drwxr-xr-x 14 reshadf staff 476 30 jul 16:05 app
-rwxr-xr-x 1 reshadf staff 2424 30 jul 16:05 artisan
drwxr-xr-x 5 reshadf staff 170 30 jul 16:05 bootstrap
-rw-r--r-- 1 reshadf staff 668 30 jul 16:05 composer.json
-rw-r--r-- 1 reshadf staff 62400 8 sep 21:33 composer.lock
-rw-r--r-- 1 reshadf staff 566 30 jul 16:05 phpunit.xml
drwxr-xr-x 7 reshadf staff 238 30 jul 16:05 public
-rw-r--r-- 1 reshadf staff 1795 30 jul 16:05 readme.md
-rw-r--r-- 1 reshadf staff 519 30 jul 16:05 server.php
drwxr-xr-x 18 reshadf staff 612 8 sep 21:33 vendor
Ah. Public staat in app.
Dus hij is wel goed.

[size=xsmall]Toevoeging op 08/09/2013 21:40:38:[/size]

Ah. Public staat in app.
Dus hij is wel goed.
Ja maar wanneer ik via de browser benader krijg ik de public niet te zien.

Op de printscreen is deze er anders niet.. en wanneer ik de link volg krijg ik op mijn raspberry inderdaad een pagina te zien maar op de macbook krijg ik

Forbidden

You don't have permission to access /~reshadf/larav01/public/index.php on this server.
No permissions..
Ik moet nu aan het werk.
Kom morgen er even op terug.

Edit.
Mod_rewrite toevallig niet aan staan?
Ik heb het opgelost als volgt.. ik keek in mijn apache error log. en ik kwam een fout tegen met betrekking tot symlink dus wat moest ik doen..

in mijn .htaccess moest ik dit zetten


<Files ~ (\.pl)>
Options ExecCGI FollowSymLinks
</Files>

Options +FollowSymLinks +SymLinksIfOwnerMatch

Reageren