Laravelを始める
話題かどうかはわからないがLaravelを始めてみる
ちなみにPHPは5.3.8以上が必要
Laravelプロジェクトを作るにはいくつか方法があるが
今回はLaravel Installerというのを使う。
# cd /usr/local/bin # wget http://laravel.com/laravel.phar # mv laravel.phar laravel # chmod u+x laravel
# laravel Laravel Craft version 1.0.0 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. Available commands: help Displays help for a command list Lists commands new Create a new Laravel application
あとはプロジェクトを作りたいディレクトリへ移動
# cd /var/www/blog # laravel new blog Crafting application... Application ready! Build something amazing.
パーミッションを変更
# cd blog/app # chmod -R 777 storage/
httpdをよしなに編集して見てみると・・
できました!