FTP upload fails - Permission denied.

FTP Error:
----------
Permission denied.
Error code: 3
Error message from server: Permission denied
Request code: 3

---------------------------------------------------------
Versions:
---------
Zenphoto version 1.4.3.2 [10732] (Official build)
Current locale setting: en_US.UTF8
Current gallery theme: zpArdoise
PHP version: 5.2.14
Graphics support: PHP GD library bundled (2.0.34 compatible)
supporting: gif, jpg, jpeg, png, bmp
PHP memory limit: 96M (Note: Your server might allocate less!)
MySql version: 5.1.50
Spam filter: simple
CAPTCHA generator: zenphoto

--------------------------------------------------------
Album directory properties:
---------------------------
0755 user:48

---------------------------------------------------------
My user as ftp:
---------------
user: webuser

=================================================
Steps:
------
-I created a album in Zenphoto admin. -> It creates fine.
-I upload 1 photo in Zenphoto admin. -> It uploads fine.
-I know use ftp to upload a test photo to this directory created for this new album. -> It fails with the error above.

I know this is a directory security problem. Zenphoto creates the directory and uploads pictures under user "48" in my webserver case and ftp uses my user.

The isp can change the security for this directory, but in the long term to ask them to change security for every album (directory) Zenphoto creates is not a solution.

Question:
---------
Maybe this is a common problem. Does any one know of a step around this or any config to correct this? (My isp is a little useless sometimes)

Comments

  • acrylian Administrator, Developer
    Sorry, the ftp user and its configuration regarding permissions lies in the hands of your server and therefore in the hands of your provider.
  • Generally this problem is caused by security configurations on your server. For instance, there will be a user or group under which the WEB applications run and perhaps a different one for your FTP access. If the server is not configured to use the same user or group for the WEB application as for the FTP access then the permissions of the actual files may prevent the Zenphoto WEB application from accessing them.

    You would need to be sure you change the permissions of the files you upload via FTP so that they are public. Then Zenphoto (and anyone else) will be able to access them.

    The better solution is to get the server configured so that the same user is used for FTP as for WEB applications.
Sign In or Register to comment.