Permission Error Permission Error
 

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

Permission Error

Started by Unknown-Services, February 25, 2005, 01:02:02 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Unknown-Services

Hello

I've already searched the forums well above and hour and all I see are posts by mods saying to search the forums, can you at least provide a link to a different thread so we dont end up searching pointless posts?

Here is my problem, a few days ago the gallery began to stop uploading pictures and this is the error I get:

"Warning: rename(./albums/edit/mHTTP_temp_f7eabb0a.jpg,albums/userpics/10001/111bannerlogo.jpg): Permission denied in C:\Inetpub\vhosts\teen-terminal.com\httpdocs\forums\gallery\upload.php on line 2236"

Running on IIS. I followed some suggestions that included:
1. Checking the premissons (all of them are fine)
2. Recreating the files
3. Silly Safe mode

So far nothing worked.

here is the debug info:
QuoteUSER:
------------------
Array
(
   [ID] => bd433d478e722aeff7274fb5197599ed
   [am] => 1
)

==========================
USER DATA:
------------------
Array
(
   
  • => 1
       [user_id] => 1
       [1] => Unknown
       [user_name] => Unknown
       [2] => 6
       [mgroup] => 6
       [3] => c4727971b0a5cdda27ef625a44130b92
       [password] => c4727971b0a5cdda27ef625a44130b92
       [4] => 6
       [group_id] => 6
       [5] => Administrators
       [group_name] => Administrators
       [6] => 0
       [group_quota] => 0
       [7] => 0
       [has_admin_access] => 1
       [8] => 0
       [can_rate_pictures] => 0
       [9] => 0
       [can_send_ecards] => 0
       [10] => 0
       [can_post_comments] => 0
       [11] => 1
       [can_upload_pictures] => 1
       [12] => 0
       [can_create_albums] => 0
       [13] => 1
       [pub_upl_need_approval] => 1
       [14] => 1
       [priv_upl_need_approval] => 1
       [15] => 3
       [upload_form_config] => 3
       [16] => 0
       [custom_user_upload] => 0
       [17] => 5
       [num_file_upload] => 5
       [18] => 3
       [num_URI_upload] => 3
       [can_see_all_albums] => 1
       [groups] => Array
           (
               
  • => 6
           )

    )

    ==========================
    Queries:
    ------------------
    Array
    (
       
  • => SELECT extension, mime, content FROM cpg_filetypes;
       [1] => SELECT userid as user_id, username as user_name, usergroupid as mgroup, password FROM `ttvb`.ttvb_user WHERE userid='1'
       [2] => SELECT * FROM cpg_usergroups WHERE group_id = '6'
       [3] => DELETE FROM cpg_banned WHERE expiry < 1109288899
       [4] => SELECT * FROM cpg_banned WHERE ip_addr='67.175.121.55' OR ip_addr='67.175.121.55' OR user_id=1
       [5] => SELECT category FROM cpg_albums WHERE aid='4'
    )

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

    ==========================
    POST :
    ------------------
    Array
    (
       [album] => 4
       [title] => fasdf
       [caption] => asd
       [keywords] =>
       [control] => phase_2
       [unique_ID] => 953c5b1c
    )

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 4.3.9 - OK
    ------------------
    mySQL version: 4.0.20a-nt
    ------------------
    Coppermine version: 1.3.2
    ==========================
    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 0
    Active Links 1
    Client API version 3.23.49
    ==========================
    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 | no value | no value
    file_uploads | On | On
    include_path | .;./includes;./pear | .;./includes;./pear
    open_basedir | no value | no value
    ==========================
    email
    ------------------
    Directive | Local Value | Master Value
    sendmail_from | admin@localhost | admin@localhost
    sendmail_path | no value | no value
    SMTP | localhost | localhost
    smtp_port | 25 | 25
    ==========================
    Size and Time
    ------------------
    Directive | Local Value | Master Value
    max_execution_time | 30 | 30
    max_input_time | 60 | 60
    upload_max_filesize | 2M | 2M
    post_max_size | 8M | 8M
    ==========================
    Page generated in 0.091 seconds - 6 queries in 0.002 seconds - Album set :

Joachim Müller

OK, some more details: do a search and go through the search results from oldest to newest (instead of the "usual" method "newest to oldest"). Should be easy to find the cure then.
Keep in mind when running IIS: although there's no CHMOD on Windows, there still are permissions. The files created by the webserver service are usually owned by IUSR_hostname, who will need rwx permissions.

Joachim