coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Upload => Topic started by: warmy on January 14, 2005, 10:48:05 AM

Title: Warning: chmod(): at upload
Post by: warmy on January 14, 2005, 10:48:05 AM
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
        (
           
Title: Re: Warning: chmod(): at upload
Post by: Joachim Müller on January 14, 2005, 06:59:03 PM
set the permission vars in coppermine's config accordingly.

Joachim
Title: Re: Warning: chmod(): at upload
Post by: mentalmine on January 17, 2005, 04:27:26 PM
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!
Title: Re: Warning: chmod(): at upload
Post by: Joachim Müller on January 18, 2005, 07:09:53 AM
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
Title: Re: Warning: chmod(): at upload
Post by: mentalmine on January 18, 2005, 11:05:33 AM
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.
Title: Re: Warning: chmod(): at upload
Post by: Joachim Müller on January 19, 2005, 08:24:14 AM
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
Title: Re: Warning: chmod(): at upload
Post by: warmy on January 19, 2005, 03:00:45 PM
The same situation - my host provider Valuehost.ru too.
Any combinations of permissions gives same result - Warning chmod
Title: Re: Warning: chmod(): at upload
Post by: Joachim Müller on January 19, 2005, 07:43:24 PM
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