画像が表示されない問題
画像を右クリックするとphpThumb.phpというファイルが画像を表示している様
phpThumb.phpの60行目に
if (!function_exists('ImageJPEG') && !function_exists\ ('ImagePNG') && !function_exists('ImageGIF')) {
ってあるやん。
サーバ(PHP)でPNG/GIF/JPEG変換できないとこの条件式に引っかかって
NOGDという画像を表示する。⇒変更したはずの画像が表示されない。
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に関する記述を削除してから
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
添付ファイル