coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: chg on May 11, 2004, 06:31:10 AM

Title: [Solved]: don't upload,help me!
Post by: chg on May 11, 2004, 06:31:10 AM
http://218.65.209.178/cpg/
user:  admin
passwd:  *******
phpinfo:  http://218.65.209.178/php.php
config.inc.php
<?php
// Coppermine configuration file
define('SILLY_SAFE_MODE', 1);
// MySQL configuration
$CONFIG['dbserver'] =                         "localhost";        // Your database server
$CONFIG['dbuser'] =                         "***";        // Your mysql username
$CONFIG['dbpass'] =                         "***";                // Your mysql password
$CONFIG['dbname'] =                         "***";        // Your mysql database name


// MySQL TABLE NAMES PREFIX
$CONFIG['TABLE_PREFIX'] =                "***";
?>
Title: Re: do't upload,help me!
Post by: chg on May 11, 2004, 06:31:48 AM
chmod -R 777 cpg
chown -R apache:apache cpg
Title: Re: do't upload,help me!
Post by: chg on May 11, 2004, 06:34:40 AM
#rpm -ivh ImageMagick-6.0.1.i386.rpm


Title: Re: do't upload,help me!
Post by: chg on May 11, 2004, 06:37:20 AM
mail:
lzcub_chg@21cn.com


thank
Title: Re: do't upload,help me!
Post by: moorey on May 11, 2004, 06:54:32 AM
Can you describe in sentences what problems exactly you're facing?
Title: Re: do't upload,help me!
Post by: chg on May 11, 2004, 07:16:24 AM
Error executing ImageMagick - Return value: 1


Cmd line :
/usr/bin/convert -quality 80 -antialias -geometry 207x79 'albums/userpics/vBulletin_logo.gif' 'albums/userpics/thumb_vBulletin_logo.gif'



The convert program said:
convert: Corrupt image `albums/userpics/vBulletin_logo.gif'.
convert: missing an image filename `albums/userpics/thumb_vBulletin_logo.gif'.



文件: /var/www/html/cpg/db_input.php - 行数: 289
Title: Re: do't upload,help me!
Post by: Joachim Müller on May 11, 2004, 08:16:51 AM
1) no support for gif in your version maybe? ;)
2) ftp-uploads mustn't go to the userpics folder (see http://coppermine.sourceforge.net/manual.php#batch_add_pics )
3) This is a public board, don't post admin passwords on it. I removed it in your first post on this thread

GauGau
Title: Re: do't upload,help me!
Post by: chg on May 11, 2004, 08:37:53 AM
ok,
i find is apache problem.

/etc/httpd/conf.d
#
# Cause the PHP interpreter handle files with a .php extension.
#
<Files *.php>
    SetOutputFilter PHP
    SetInputFilter PHP
    LimitRequestBody 1048576
</Files>

#
# Add index.php to the list of files that will be served as directory
# indexes.



LimitRequestBody 1048576  (upload file size)
                         1024k

                        524288=512k