I moved my cite to another hosting server and can't upload a file anymore I moved my cite to another hosting server and can't upload a file anymore
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

I moved my cite to another hosting server and can't upload a file anymore

Started by ATAMAH, June 23, 2005, 04:38:23 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ATAMAH

my site name stayed as before, but hoster moved my site to another server
so, at first time only Guests could upload files, and registered users couldn't upload files, it said that folder /userpics had not enough permissions to upload files
I tried to set CHMOD as 777 for this folder
and after that this errors came up:

Warning: move_uploaded_file(./albums/edit/mHTTP_temp_5d9cded7.jpg): failed to open stream: Permission denied in /opt/data/webpages/atamah/www/album/upload.php on line 1198

Warning: move_uploaded_file(): Unable to move '/tmp/phpC4PdJb' to './albums/edit/mHTTP_temp_5d9cded7.jpg' in /opt/data/webpages/atamah/www/album/upload.php on line 1198


what is the problem?
please help me


ATAMAH

there's something wrong with EDIT folder
after several successful uploads the folder EDIT disappears!

I need to create it again to be able to upload pictures.

what to do?

kegobeer

Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

ATAMAH

Coppermine Photo Gallery 1.3.1

may be I just should upgrade it to the latest version?

kegobeer

Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

mclean

I'm using v1.3.3. from Fantastico.  Had the same errors when uploading.  I've checked both the edit and userpics folder permissions and they are 755. 

When I go to Batch Add Files I get this:
Select directory
This function allows you to add a batch of file that your have uploaded to your server by FTP.

Select the directory where you have uploaded your files.  Here is the debug info:
USER:
------------------
Array
(
    [ID] => 9a3618d695e08c1841adc6200f24a6dc
    [am] => 1
    [lang] => english
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 2
    [user_group] => 2
    [user_active] => YES
    [user_name] => mesagrill
    [user_password] => ********
    [user_lastvisit] => 2005-06-27 03:07:26
    [user_regdate] => 2005-06-27 01:21:45
    [user_group_list] => 1
    [user_email] => *************
    [user_website] => http://portfolio.ml-mclean.com/MesaGrillTaipei
    [user_location] =>
    [user_interests] => Mesa Grill
    [user_occupation] => Chef
    [user_actkey] =>
    [disk_max] => 1024
    [disk_min] => 0
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [ufc_max] => 3
    [ufc_min] => 3
    [custom_user_upload] => 1
    [num_file_upload] => 10
    [num_URI_upload] => 10
    [can_post_comments] => 1
    [can_upload_pictures] => 1
    [can_create_albums] => 1
    [has_admin_access] => 1
    [pub_upl_need_approval] => 0
    [priv_upl_need_approval] => 0
    [group_name] => Registered
    [upload_form_config] => 3
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 2
    [groups] => Array
        (
           
  • => 1
                [1] => 2
            )

    )

    ==========================
    Queries:
    ------------------
    Array
    (
       
  • => SELECT extension, mime, content FROM cpg_filetypes;
        [1] => SELECT * FROM cpg_users WHERE user_id='2'AND user_active = 'YES' AND user_password != '' AND BINARY MD5(user_password) = 'e74a401cd3f5be88a083e22b59ac2b17'
        [2] => SELECT MAX(group_quota) as disk_max, MIN(group_quota) as disk_min, MAX(can_rate_pictures) as can_rate_pictures, MAX(can_send_ecards) as can_send_ecards, MAX(upload_form_config) as ufc_max, MIN(upload_form_config) as ufc_min, MAX(custom_user_upload) as custom_user_upload, MAX(num_file_upload) as num_file_upload, MAX(num_URI_upload) as num_URI_upload, MAX(can_post_comments) as can_post_comments, MAX(can_upload_pictures) as can_upload_pictures, MAX(can_create_albums) as can_create_albums, MAX(has_admin_access) as has_admin_access, MIN(pub_upl_need_approval) as pub_upl_need_approval, MIN( priv_upl_need_approval) as  priv_upl_need_approval FROM cpg_usergroups WHERE group_id in (1,2)
        [3] => SELECT group_name FROM  cpg_usergroups WHERE group_id= 2
        [4] => DELETE FROM cpg_banned WHERE expiry < '2005-06-27 03:51:10'
        [5] => SELECT * FROM cpg_banned WHERE ip_addr='59.121.130.16' OR ip_addr='59.121.130.16' OR user_id=2
        [6] => SELECT aid, title FROM cpg_albums WHERE 1
    )

    ==========================
    GET :
    ------------------
    Array
    (
    )

    ==========================
    POST :
    ------------------
    Array
    (
    )

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 4.3.11 - OK
    ------------------
    mySQL version: 4.1.11-standard
    ------------------
    Coppermine version: 1.3.3
    ==========================
    Module: gd
    ------------------
    GD Support enabled
    GD Version bundled (2.0.28 compatible)
    FreeType Support enabled
    FreeType Linkage with freetype
    GIF Read Support enabled
    GIF Create Support enabled
    JPG Support enabled
    PNG Support enabled
    WBMP Support enabled
    XBM Support enabled
    ==========================
    Module: mysql
    ------------------
    Active Persistent Links 1
    Active Links 2
    Client API version 4.0.24
    MYSQL_MODULE_TYPE external
    MYSQL_SOCKET /var/lib/mysql/mysql.sock
    MYSQL_INCLUDE -I/usr/include/mysql
    MYSQL_LIBS -L/usr/lib -lmysqlclient 
    ==========================
    Module: zlib
    ------------------
    ZLib Support enabled
    Compiled Version 1.2.1.2
    Linked Version 1.2.1.2
    ==========================
    Server restrictions (safe mode)?
    ------------------
    Directive | Local Value | Master Value
    safe_mode | Off | Off
    safe_mode_exec_dir | no value | no value
    safe_mode_gid | Off | Off
    safe_mode_include_dir | no value | no value
    safe_mode_exec_dir | no value | no value
    sql.safe_mode | Off | Off
    disable_functions | no value | no value
    file_uploads | On | On
    include_path | .:/usr/lib/php:/usr/local/lib/php | .:/usr/lib/php:/usr/local/lib/php
    open_basedir | no value | no value
    ==========================
    email
    ------------------
    Directive | Local Value | Master Value
    sendmail_from | no value | no value
    sendmail_path | /usr/sbin/sendmail -t -i | /usr/sbin/sendmail -t -i
    SMTP | localhost | localhost
    smtp_port | 25 | 25
    ==========================
    Size and Time
    ------------------
    Directive | Local Value | Master Value
    max_execution_time | 30 | 30
    max_input_time | -1 | -1
    upload_max_filesize | 2M | 2M
    post_max_size | 55M | 55M
    ==========================
    Page generated in 0.223 seconds - 7 queries in 0.041 seconds - Album set :

    TIA,

Tranz

You're not supposed to batch add into the userpics folder. Please create another folder in albums and try again.

mclean

Quote from: TranzNDance on June 27, 2005, 04:05:30 PM
You're not supposed to batch add into the userpics folder. Please create another folder in albums and try again.

Ok, I'll manually create a new folder in Albums and upload the pics into there.

I get the following error message:
QuoteWarning: unlink(./albums/edit/ChefKitchen.jpg): Permission denied in /home/mclean/public_html/portfolio/MesaGrillTaipei/upload.php on line 453

Warning: unlink(./albums/edit/Chickenpastawolives.jpg): Permission denied in /home/mclean/public_html/portfolio/MesaGrillTaipei/upload.php on line 453

Warning: unlink(./albums/edit/Fishoverpastabed.jpg): Permission denied in /home/mclean/public_html/portfolio/MesaGrillTaipei/upload.php on line 453

Warning: unlink(./albums/edit/Fishoverpastabed2.jpg): Permission denied in /home/mclean/public_html/portfolio/MesaGrillTaipei/upload.php on line 453

I've set my folder permissions to 777 and still no go.  ??? :-\\

mclean

Complicating things is that my host moved.  They are running or trying to run PHPsuexe on the virtual private server that I'm on.  Could it be that the PHPsuexe was installed wrongly and thereby messing up the permissions and giving me these errors?

mclean

Problem solved.

1. Fantastico on my server (and others perhaps) does not seem to do the permissions correctly when doing a Coppermine Fantastico install.
2. Folder edit in /albums/edit needs to be chmod 777.  I wrongly assumed that /albums/userpics was the folder  ???

How onto playing around  :)