返信する: d3diaryサポート板
- d3diaryで画像のアップロードだけ出来ません><
- 投稿者: hitman2 投稿日時: 2009/12/20 10:47
D3Diaryがとても気に入ったので是非使いたいのですが、インストール後に画像がアップできません。
ご助言頂きたいです。お願いします。環境です↓
CENTOS5.3
Apache 2.2.3
PHP 5.1.6
Perl 5.8.8
Mysql 5.0.45-7トップ > 趣味の部屋 > XOOPSサイト構築 > d3diary > d3diary
http://www.naaon.com/modules/plactice/index.php/home/hobby/xoops/d3diary.htm?naaon_session=4dq3r5vlt4o0fl9ksh2vbcrkj639mt90
d3diary_0.05a2.zip が最新だったのでそれをダウンロード
↓
それを解凍するとd3diaryフォルダが作成される。
↓
/tmp/xoops/d3diary/html/modules/d3diaryフォルダを、/var/www/html/xoops/modulesに移動させる。
↓
/tmp/xoops/d3diary/trust/modules/d3diary
/tmp/xoops/d3diary/trust/modules/d3pipes
の2つのフォルダを、
/var/www/html/xoops_trust_path/modules
に移動させる。
↓
ローカルからxoopsに管理者権限でログインする。
管理者メニュー→モジュールのインストールをクリックする。
↓
下記のエラーが表示されていた。
Warning [PHP]: D3LanguageManager::require(/var/www/html/xoops/modules/d3diary/mytrustdirname.php) [function.D3LanguageManager-require]: failed to open stream: Permission denied in file /var/www/html/xoops_trust_path/libs/altsys/class/D3LanguageManager.class.php line 40
↓
SELinux関連のエラー。
下記の3つのコマンドを入力してエラーを解除した。
restorecon -R -v '/var/www/html/xoops/modules/d3diary'restorecon -R -v '/var/www/html/xoops_trust_path/modules/d3diary/language/japanese'
restorecon -R -v '/var/www/html/xoops_trust_path/modules/d3diary'
↓
インストール実施。
エラー無し。
↓
アクセス権の変更を実施
[root@test01 d3diary]# cd /var/www/html/xoops/modules/d3diary
[root@test01 d3diary]# chmod 777 cache/
[root@test01 d3diary]# chmod 777 upimg/
↓
SELinuxのエラーが出たので下記コマンドで回避。
[root@test01 ~]# restorecon -R -v '/var/www/html/xoops/class/smarty/plugins'
restorecon reset /var/www/html/xoops/class/smarty/plugins/function.d3forum_comment_postscount.php context root:object_r:tmp_t:s0->system_u:object_r:httpd_sys_content_t:s0
restorecon reset /var/www/html/xoops/class/smarty/plugins/function.d3forum_comment.php context root:object_r:tmp_t:s0->system_u:object_r:httpd_sys_content_t:s0
restorecon reset /var/www/html/xoops/class/smarty/plugins/function.d3comment.php context root:object_r:tmp_t:s0->system_u:object_r:httpd_sys_content_t:s0
restorecon reset /var/www/html/xoops/class/smarty/plugins/function.d3forum_comment_topicscount.php context root:object_r:tmp_t:s0->system_u:object_r:httpd_sys_content_t:s0
[root@test01 ~]#
↓
ここまででインストール作業終了。youtubeの動画は問題なくアップ出来ます。
画像を選択するとどの画像(jpeg)でも、アップ後に画面が真っ白になってしまいます。
そのままだといつまでも真っ白です><アクセス権の変更をする前に写真をアップしようとしましたが、
そのときは無効なファイルですとxoops上でエラー表示がちゃんと出ていました。
その後、権限変更をしてアップすると、真っ白になってしまいます。xoopsプロテクターの設定変更をしましたが変わらずでした。
F5アタックへの対処 exit→どれでも変わらず
DoS監視の対象から外すモジュール d3diary を指定しても変わらずでしたminidiaryでも同様に画像アップすると画面が真っ白になってしまいました。
このモジュールを使っているサイトをみて、是非このモジュールをインストールしたいと
思いました。
blogとして使いたいです。
解決方法を教えてください! お願いします!