VirtualBox
若使用 gallery2 相簿,可以參考以下說明
- 安裝 LAMP
安裝圖形處理程式
apt-get install php5-curl 配合 xoops 2.5 程式
apt-get install gcc 安裝編譯程式
apt-get install make 安裝編譯程式
apt-get install dcraw /usr/bin/dcraw
apt-get install php5-gd service apache2 restart
apt-get install imagemagick /usr/bin/
apt-get install ffmpeg
apt-get install netpbm /usr/bin/
apt-get install jhead /usr/bin/
apt-get install libjpeg-progs /usr/bin/jpegtran
下載 jpeg-8d (舊版的 jpegtran 因為12.04版的有問題不能用)
先解壓縮開來
./configure
make
make install
/usr/local/bin
- 修改 php.ini
修改php.ini上傳更大的檔案
修改php.ini
upload_max_filesize = 500M
還要再修改
post_max_size
memory_limit
這三個數值的大小,必須是 memory_limit > post_max_size > upload_max_filesize
例:若上傳的檔案大小(4MB) > upload_max_filesize(2MB) 會出現上傳失敗 的訊息
- 重新啟動 apache2
service apache2 restart
重新啟動 apache2 ,讓剛剛的修改可以起作用。