Warning: chmod(): at upload Warning: chmod(): at upload
 

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

Warning: chmod(): at upload

Started by warmy, January 14, 2005, 10:48:05 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

warmy

Hello!
Warning: chmod(): Operation not permitted in /pub/home/warmy74/htdocs/gallery/upload.php on line 1209  
- at upload image (Successful Uploads)

Warning: chmod(): Operation not permitted in /pub/home/warmy74/htdocs/gallery/include/picmgmt.inc.php on line 224  
- on page for add image to album

Warning: chmod(): Operation not permitted in /pub/home/warmy74/htdocs/gallery/upload.php on line 2229
Warning: chmod(): Operation not permitted in /pub/home/warmy74/htdocs/gallery/include/picmgmt.inc.php on line 224  
- after add image to album

But what i can to do?
My server's default permissions is 770 on folders, 660 - files
on "albums" and "include" folders - 777, but set after install Coppermine and create database...

sorry my english, please.
Valery




USER:
------------------
Array
(
    [ID] => a9e30e771419308fb7f60f87be35921f
    [am] => 1
    [liv] => Array
        (
           
  • => 19
                [1] => 18
                [2] => 6
                [3] => 13
                [4] => 12
            )

        [theme] => classic
        [lang] => russian
    )

    ==========================
    USER DATA:
    ------------------
    Array
    (
       
  • => 2
        [user_id] => 2
        [1] => warmy
        [user_name] => warmy
        [2] => 1
        [user_level] => 1
        [groups] => Array
            (
               
  • => 1
                [1] => 2
                [2] => 26
            )

        [group_quota] => 1024
        [can_rate_pictures] => 0
        [can_send_ecards] => 1
        [can_post_comments] => 1
        [can_upload_pictures] => 1
        [can_create_albums] => 1
        [pub_upl_need_approval] => 0
        [priv_upl_need_approval] => 0
        [upload_form_config] => 3
        [num_file_upload] => 5
        [num_URI_upload] => 3
        [custom_user_upload] => 0
        [disk_max] => 1024
        [disk_min] => 1024
        [ufc_max] => 3
        [ufc_min] => 3
        [has_admin_access] => 1
        [group_name] => Admin
        [can_see_all_albums] => 1
        [group_id] => 1
    )

    ==========================
    Queries:
    ------------------
    Array
    (
       
  • => SELECT extension, mime, content FROM cm_filetypes;
        [1] => SELECT user_id, username as user_name, user_level FROM `warmy74`.phpbb_sessions INNER JOIN `warmy74`.phpbb_users ON session_user_id = user_id WHERE session_id='a9f6642cec0203b5d8a1315a9f91a911' AND session_user_id ='2' AND user_active='1'
        [2] => SELECT (ug.group_id + 5) as group_id FROM `warmy74`.phpbb_user_group as ug LEFT JOIN `warmy74`.phpbb_groups as g ON ug.group_id = g.group_id WHERE user_id = 2 AND user_pending = 0 AND group_single_user = 0
        [3] => 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 cm_usergroups WHERE group_id in (1,2,26)
        [4] => SELECT group_name FROM  cm_usergroups WHERE group_id= 1
        [5] => DELETE FROM cm_banned WHERE expiry < 1105697906
        [6] => SELECT * FROM cm_banned WHERE ip_addr='217.14.24.19' OR ip_addr='217.14.24.19' OR user_id=2
    )

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

    ==========================
    POST :
    ------------------
    Array
    (
        [URI_array] => Array
            (
               
  • =>
                [1] =>
                [2] =>
            )

        [control] => phase_1
    )

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 4.3.2 - OK
    ------------------
    mySQL version: 4.0.16-log
    ------------------
    Coppermine version: 1.3.2
    ==========================
    Module: gd
    ------------------
    GD Support enabled
    GD Version 2.0 or higher
    FreeType Support enabled
    FreeType Linkage with freetype
    T1Lib Support enabled
    JPG Support enabled
    PNG Support enabled
    WBMP Support enabled
    ==========================
    Module: mysql
    ------------------
    Active Persistent Links 0
    Active Links 1
    Client API version 4.0.13
    MYSQL_MODULE_TYPE external
    MYSQL_SOCKET /tmp/mysql.sock
    MYSQL_INCLUDE -I/usr/local/mysql/include/mysql
    MYSQL_LIBS -L/usr/local/mysql/lib/mysql -lmysqlclient 
    ==========================
    Module: zlib
    ------------------
    ZLib Support enabled
    Compiled Version 1.1.4
    Linked Version 1.1.4
    ==========================
    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 | proc_open | proc_open
    file_uploads | On | On
    include_path | .:/usr/local/share/pear | .:/usr/local/share/pear
    open_basedir | /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/lib/php:/usr/local/mysql/bin:/usr/local/share/pear:/pub/home/warmy74 | no value
    ==========================
    email
    ------------------
    Directive | Local Value | Master Value
    sendmail_from | warmy74@valuehost.ru | me@localhost.com
    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 | 8M | 8M
    ==========================
    Page generated in 0.254 seconds - 7 queries in 0.051 seconds - Album set :

Joachim Müller

set the permission vars in coppermine's config accordingly.

Joachim

mentalmine

Quote from: GauGau on January 14, 2005, 06:59:03 PM
set the permission vars in coppermine's config accordingly.

Joachim

Having same troubles, tried to set modes in Config, did not help :(
Using WSFTP to change/verify permissions. Tried both 755 and 777 on the album&include directories.
Default file mode appears as 660, tried both 660 and 644 - anyway having that warnings.

I am new to PHP and Unix systems, could you describe what to do more detailed?

Thanks!

Joachim Müller

ask your webhost how to set permissions, as some webhost deny their customers the use of CHMOD from an FTP app. Most of them provide some sort of admin panel to perform CHMOD operations instead.

Joachim

mentalmine

Well, chmod in FTP look like works - at least it appears changed when I change it and when I set not-writeble permission Coppemine refuses to write/delete images.
The problem is probably with chmod() from PHP... Can hoster block it? I am using Valuehost - maybe it can say something  to you..

Thanks.

Joachim Müller

yes, the webhost can block certain php commands (like chmod()) - some do for security reasons. Anyway, this should not hurt if the folders the script creates properly inherit the original permissions set up for the "albums" folder.

Joachim

warmy

The same situation - my host provider Valuehost.ru too.
Any combinations of permissions gives same result - Warning chmod

Joachim Müller

if everything else works as expected, and you just want to get rid of the warnings, edit the files mentioned in the error messages, findchmodand replace with@chmodto silence the output of the error messages.

Joachim