forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Permissions & Access Rights => Topic started by: ATAMAH on June 23, 2005, 04:38:23 pm

Title: I moved my cite to another hosting server and can't upload a file anymore
Post by: ATAMAH on June 23, 2005, 04:38:23 pm
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
Title: Re: I moved my cite to another hosting server and can't upload a file anymore
Post by: Nibbler on June 23, 2005, 06:44:52 pm
CHMOD the edit directory to 777/755
Title: Re: I moved my cite to another hosting server and can't upload a file anymore
Post by: ATAMAH on June 26, 2005, 12:46:43 pm
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?
Title: Re: I moved my cite to another hosting server and can't upload a file anymore
Post by: kegobeer on June 26, 2005, 02:12:57 pm
Are you using Coppermine 1.3.3?
Title: Re: I moved my cite to another hosting server and can't upload a file anymore
Post by: ATAMAH on June 26, 2005, 02:47:14 pm
Coppermine Photo Gallery 1.3.1

may be I just should upgrade it to the latest version?
Title: Re: I moved my cite to another hosting server and can't upload a file anymore
Post by: kegobeer on June 26, 2005, 04:53:03 pm
Yes.  There's a fix for the edit directory issue.
Title: Re: I moved my cite to another hosting server and can't upload a file anymore
Post by: mclean on June 27, 2005, 09:54:34 am
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
        (
           
Title: Re: I moved my cite to another hosting server and can't upload a file anymore
Post by: Tranz 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.
Title: Re: I moved my cite to another hosting server and can't upload a file anymore
Post by: mclean on June 27, 2005, 06:13: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:
Quote
Warning: 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.  ??? :-\\
Title: Re: I moved my cite to another hosting server and can't upload a file anymore
Post by: mclean on June 29, 2005, 05:47:14 am
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?
Title: Re: I moved my cite to another hosting server and can't upload a file anymore
Post by: mclean on July 01, 2005, 10:57:57 am
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  :)