Upload problems Upload problems
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Upload problems

Started by goofy, September 16, 2004, 11:52:23 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

goofy

Hello,

this is my first problem (the second in update file)

I've installed the version 1.32 in local and the install was concluded very well.

On my site I've had this problem: impossible create file config.inc.php, after many tentatives (i've a public cartel on my site where the mode is open for write) I've uploaded my config file create in local with all the corrections, I've uploaded the database and the program seems ok

Question: Can I have problems with this procedure? How I can solve this error? This problem:

Warning: move_uploaded_file(./albums/edit/mHTTP_temp_2e778112.JPG): failed to open stream: Permission denied in D:\Inetpub\webs\fipsasnapoliit\public\albumfoto\upload.php on line 1193

Warning: move_uploaded_file(): Unable to move 'C:\PHP\uploadtemp\php2F60.tmp' to './albums/edit/mHTTP_temp_2e778112.JPG' in D:\Inetpub\webs\fipsasnapoliit\public\albumfoto\upload.php on line 1193


is correlate?

Thanks for all your help

goofy

Hello,

I've had a problem of installation and I ve create the file config.inc.php manually on my site, you can evaluate if this is a rilevant problem.

I've write mode on the only "public" folder
I've put all the script in a subfolder called "albumfoto"
In my primary config file I've this declaration gived from my provider:
$public1="d:/inetpub/webs/fipsasnapoliit/public";
where fipsasnapoli.it is my site

this is the error that I have when I try my upload (in local is all OK)

Warning: move_uploaded_file(./albums/edit/mHTTP_temp_d6af589b.JPG): failed to open stream: Permission denied in D:\Inetpub\webs\fipsasnapoliit\public\albumfoto\upload.php on line 1193

Warning: move_uploaded_file(): Unable to move 'C:\PHP\uploadtemp\php2F6A.tmp' to './albums/edit/mHTTP_temp_d6af589b.JPG' in D:\Inetpub\webs\fipsasnapoliit\public\albumfoto\upload.php on line 1193

Notice: Undefined variable: escrow_array in D:\Inetpub\webs\fipsasnapoliit\public\albumfoto\upload.php on line 1935

Notice: Undefined variable: URI_failure_array in D:\Inetpub\webs\fipsasnapoliit\public\albumfoto\upload.php on line 1937

Notice: Undefined variable: zip_failure_array in D:\Inetpub\webs\fipsasnapoliit\public\albumfoto\upload.php on line 1938

This is my info debug
USER:
------------------
Array
(
    [ID] => a6646a12fe4016ea2fbc26f066a0aec6
    [am] => 1
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_group] => 1
    [user_active] => YES
    [user_name] => goofy73
    [user_password] => ********
    [user_lastvisit] => 2004-09-16 21:09:19
    [user_regdate] => 2004-09-01 20:47:04
    [user_group_list] =>
    [user_email] =>
    [user_website] =>
    [user_location] =>
    [user_interests] =>
    [user_occupation] =>
    [user_actkey] =>
    [user_favpics] =>
    [disk_max] => 0
    [disk_min] => 0
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [ufc_max] => 3
    [ufc_min] => 3
    [custom_user_upload] => 0
    [num_file_upload] => 5
    [num_URI_upload] => 3
    [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] => Administrators
    [upload_form_config] => 3
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 1
    [groups] => Array
        (
            [1] => 1
        )

)

==========================
Queries:
------------------
Array
(
   
  • => SELECT extension, mime, content FROM cpg132_filetypes;
        [1] => SELECT * FROM cpg132_users WHERE user_id='1'AND user_active = 'YES' AND user_password != '' AND BINARY MD5(user_password) = 'bc348804fab32d3eb20c448cb00be6c7'
        [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 cpg132_usergroups WHERE group_id in (1)
        [3] => SELECT group_name FROM  cpg132_usergroups WHERE group_id= 1
        [4] => DELETE FROM cpg132_banned WHERE expiry < 1095371965
        [5] => SELECT * FROM cpg132_banned WHERE ip_addr='82.53.74.172' OR ip_addr='82.53.74.172' OR user_id=1
    )

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

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

        [control] => phase_1
    )

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 4.3.7 - OK
    ------------------
    mySQL version: 4.0.20-standard-log
    ------------------
    Coppermine version: 1.3.2
    ==========================
    Module: gd
    ------------------
    module doesn't exist
    ==========================
    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 | .;c:\php\includes | .;c:\php\includes
    open_basedir | no value | no value
    ==========================
    email
    ------------------
    Directive | Local Value | Master Value
    sendmail_from | webserver@aruba.it | webserver@aruba.it
    sendmail_path | no value | no value
    SMTP | localhost | localhost
    smtp_port | 25 | 25
    ==========================
    Size and Time
    ------------------
    Directive | Local Value | Master Value
    max_execution_time | 120 | 120
    max_input_time | -1 | -1
    upload_max_filesize | 50M | 50M
    post_max_size | 8M | 8M
    ==========================
    Page generated in 0.226 seconds - 6 queries in 0.007 seconds - Album set : [/i]

Nibbler

Check permissions (CHMOD) on your /albums and /edit directories. Set them to 777 or 755 depending on your server setup.

goofy

The public folders have all the permissions. I upload other files with my script and all run very well

Joachim Müller

The first error you got (the config.inc.php file not being written during install) was caused becauce the webserver didn't have write access to the include folder. Your second issue is being caused because it doesn't have write permissions to the albums folder. The documentation says to set permissions (CHMOD). Although there's no CHMOD in WIndows machines, there are nevertheless permissions you need to set. On IIS, grant write access for a user called I_USR_hostname. I advice people not run thier own webserver at all if they don't know the basics; especialy IIS is known to be easily hackable if not configured properly.

Joachim

Joachim Müller

Thanks for double-posting your issue on two different threads, so two supporters had to look into this. I only discovered your second post after having replied to the other one. Merging the two of them.

Joachim