httpd.conf を変更(書き直し)していたら、apache の起動時に下記のエラーが発生。(オヨヨ)
[root@hogehoge ~]# service httpd restart httpd を停止中: [ OK ] httpd を起動中: [Tue Jul xx hh:mm:ss YYYY] [warn] _default_ VirtualHost overlap on port 80, the first has precedence
httpd.conf を変更(書き直し)していたら、apache の起動時に下記のエラーが発生。(オヨヨ)
[root@hogehoge ~]# service httpd restart httpd を停止中: [ OK ] httpd を起動中: [Tue Jul xx hh:mm:ss YYYY] [warn] _default_ VirtualHost overlap on port 80, the first has precedence
CAKEPHP でそのまま実行すると下記のようにエラーになる。(いつも事だな。)
Release Notes for CakePHP 1.3.10.
Read the changelog
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 684]
Warning: touch() [http://php.net/function.touch]: Utime failed: Permission denied in /var/www/cakephp-1.3.10/cake/libs/file.php on line 125
Notice (1024): Please change the value of 'Security.cipherSeed' in app/config/core.php to a numeric (digits only) seed value specific to your application [CORE/cake/libs/debugger.php, line 688]
URL rewriting is not properly configured on your server.
Help me configure it
I don't / can't use URL rewriting
Your tmp directory is writable.
The FileEngine is being used for caching. To change the config edit APP/config/core.php
Your database configuration file is NOT present.
Rename config/database.php.default to config/database.php
/**
* A random string used in security hashing methods.
*/
Configure::write('Security.salt', '****************************************');
/**
* A random numeric string (digits only) used to encrypt/decrypt strings.
*/
Configure::write('Security.cipherSeed', '******************************');
Options FollowSymLinks
AllowOverride All
ディスクがクラッシュして再インストールしているが、CAKEPHP(1.3.10)を実行しようとすると下記のエラーが発生。
Warning (2): strtotime() [http://php.net/function.strtotime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Tokyo' for 'JST/9.0/no DST' instead [CORE/cake/libs/cache.php, line 597] Notice: Trying to get property of non-object in /var/www/html/cakephp/cake/libs/cache/file.php on line 248 Fatal error: Call to a member function cd() on a non-object in /var/www/html/cakephp/cake/libs/cache/file.php on line 248今回は PHP5.3 をインストールしてしたが、PHPの設定タイムゾーンの設定が必要なようだ。(いつの間に r(?_?);)
[Date] ; Defines the default timezone used by the date functions ; http://www.php.net/manual/en/datetime.configuration.php#ini.date.timezone ;date.timezone =
[Date] ; Defines the default timezone used by the date functions ; http://www.php.net/manual/en/datetime.configuration.php#ini.date.timezone date.timezone = Asia/Tokyo
ファイルおよびフォルダに設定されいるタイプの詳細を確認しようと考え、seedit-gui をインストールして seed-init を実行する。しかし、これがいけなかったようだ。seed-init 実行後に再起動をしたら起動できなかった。
とりあえず、boot時にselinuxを無効にして起動をさせた。
Gnomeテキスト・エディタでテキストファイルを開こうしたら、ファイルは開いたが「既に開かれているので修正できない」主旨のメッセージが表示された(強制修正は可能)。
画面を見る限り別ウィンドぅでも開いていないので、とりあえずろ「ログオフ」してから再ログインしようとしたらログオフされない。
しばし待機したがログオフされないので、シャットダウンでもするかと思ったがキーがきかなかった。
マウスは動くが、何も選択できない。
何か対策はと思い、X Window を終了させれば良いのだと考え、下記を実施した。
CENTOS(5.6)の通常のリポジトリからだとMySQL5.0になっていまいます。CENTOEはすべてにおいてバージョンがかなり遅れているので、できるだけ最新版を使うには最新版をソースから新ストールするかパッケージにされたリポジトリを探し出します。(実際、いろいろな方がパッケージにしてくれている)
今回は、remi-testリポジトリからインストールします。
コマンドから yum でインストールするか GUI(Yum Extender)からインストールを行います。
以前は、いつもコマンドからyumで行っていましたが、UI(Yum Extender)を知ってからはほとんどGUIで対応しています。
GUIのほうが、多数のリポジトリを指定し特定のリポジトリのものを指定してインストールできるから大変便利です。
yumでインストールとすると、ユーザー:mysql のホームディレクトリが /var/lib/mysql に設定されます。
データベースの格納先を別の場所にしたいので、mysql のホームディレクトリを変更し、my.cnf でデータベースの格納先も合わせて変更することにします。