kaj
April 20th, 2009, 04:04 PM
I made a big mistake when i upgraded my server from Unubntu 6.06 LTS to Ubuntu 8.04 LTS.
On my old server I had a variety of cms systems installed for testing, and some of them I have also installed on the new server, but there are a common fault in all of them: I cannot upload pictures.
Some of them uploads the file name, but the files are empty.
The cms system Flatpress told me, that i had to enable the Php GD2 extension. After some search I found the package phpgd and some dependensies and the error message disappeared, but I was still not able to upload any files.
Wordpress tells me, that the file is empty, please upload something with a content. Or uploads are not enabled in your php.ini.
I have searched my system for php.ini, and I found three:
/etc/php5/apache2/php.ini
/usr/share/php5/php.ini-dist
/usr/share/php5/php.ini-dist.cli
I guess it's the first one that counts, but there's the same thing in all of them:
;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;
; Whether to allow HTTP file uploads.
file_uploads = On
; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
;upload_tmp_dir =
; Maximum allowed size for uploaded files.
upload_max_filesize = 2M
I hope that someone has a solution to my problem.
Kaj Rasmussen
On my old server I had a variety of cms systems installed for testing, and some of them I have also installed on the new server, but there are a common fault in all of them: I cannot upload pictures.
Some of them uploads the file name, but the files are empty.
The cms system Flatpress told me, that i had to enable the Php GD2 extension. After some search I found the package phpgd and some dependensies and the error message disappeared, but I was still not able to upload any files.
Wordpress tells me, that the file is empty, please upload something with a content. Or uploads are not enabled in your php.ini.
I have searched my system for php.ini, and I found three:
/etc/php5/apache2/php.ini
/usr/share/php5/php.ini-dist
/usr/share/php5/php.ini-dist.cli
I guess it's the first one that counts, but there's the same thing in all of them:
;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;
; Whether to allow HTTP file uploads.
file_uploads = On
; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
;upload_tmp_dir =
; Maximum allowed size for uploaded files.
upload_max_filesize = 2M
I hope that someone has a solution to my problem.
Kaj Rasmussen