CakePHPのインストールが終わったので次に、PHPの開発環境を整えたいと思います。
PHPの開発はテキストエディタを使ってごりごりファイルを作成していくという方法がありますがやはり統合開発環境を使ったほうが開発しやすいと思います。
おすすめのPHP開発環境は、Eclipse+PDTです。
すべて無料で利用できるのでぜひインストールされることをお勧めします。
Eclipse+PDTのインストール方法は、PHP開発環境構築備忘録にまとめましたので上記開発環境を利用したい方は参考にしてください。
app/
cake/
vendors/
.htaccess
index.php
README
/var/www/html/cakephp/
app/
cake/
vendors/
.htaccess
index.php
README
Warning (512): /var/www/html/cakephp/app/tmp/cache/ is not writable [CORE/cake/libs/cache/file.php, line 263]
Your tmp directory is NOT writable.
# chmod -R 707 /var/www/html/cakephp/app/tmp
Notice (1024): Please change the value of 'Security.salt' in app/config/core.php to a salt value specific to your application [CORE/cake/libs/debugger.php, line 557]
Configure::write('Security.salt', 'DYhG93b0qyJfIxfs2guVoUubWwvniR2G0FgaC9mi');
Configure::write('Security.salt', 't6FxZY2WEtDeQMo8yfpPgza7RZFGrRJsNNsHFEWi');
Your database configuration file is NOT present.
Rename config/database.php.default to config/database.php
class DATABASE_CONFIG {
var $default = array(
'driver' => 'mysql',
'persistent' => false,
'host' => 'localhost',
'login' => 'root',
'password' => '******',
'database' => 'cakephp',
'prefix' => '',
'encoding' => 'utf8',
);
var $test = array(
'driver' => 'mysql',
'persistent' => false,
'host' => 'localhost',
'login' => 'user',
'password' => 'password',
'database' => 'test_database_name',
'prefix' => '',
);
}
この広告は90日以上新しい記事の投稿がないブログに表示されております。