「画像が表示されない問題」の編集履歴(バックアップ)一覧はこちら
「画像が表示されない問題」(2005/11/09 (水) 11:58:30) の最新版変更点
追加された行は緑色になります。
削除された行は赤色になります。
*画像が表示されない問題
画像を右クリックするとphpThumb.phpというファイルが画像を表示している様
phpThumb.phpの60行目に
if (!function_exists('ImageJPEG') && !function_exists\
('ImagePNG') && !function_exists('ImageGIF')) {
ってあるやん。
サーバ(PHP)でPNG/GIF/JPEG変換できないとこの条件式に引っかかって
NOGDという画像を表示する。⇒変更したはずの画像が表示されない。
PHPでPNG/GIF/JPEGを表示できるようにサーバにそれぞれインストール
cd /usr/ports/graphics/jpeg/ ; make ; make install
cd /usr/ports/graphics/png/ ; make ; make install
cd /usr/ports/graphics/gd/ ; make ; make install
vi /usr/local/lib/php.ini
で
eacceleratorに関する記述を削除してから
PHPをアンインストール
make clean
PHP再構築
./configure --with-apxs2=/usr/local/apache2/bin/apxs \
--enable-mbstring --enable-mbregex --enable-gd-jis-conv \
--enable-zend-multibyte --enable-mbstring=japanese \
--enable-memory-limit --with-mysql=/usr/local \
--with-jpeg-dir=/usr/local --with-zlib \
--with-tidy --with-gd \
--with-png-dir=/usr/local
make
make install
cd /usr/ports/www/eaccelerator/
make clean ;make deinstall;make;make install
表示オプション
横に並べて表示:
変化行の前後のみ表示: