Forums

Uploading picture: image entry in library, but no image file (1 post)

  1. Rxt
    Member
    Posted 3 months ago #

    I have my own debian server, and am in the process of setting it up for (mostly) wordpress websites and some other apps. I have apache, php, mysql running, using virtual hosts.

    I use the "SSH SFTP Updater Support" plugin, so I can update via SSH. This means I don't need an ftp-server. I've created an upload-account for wordpress only, limited it with chroot so it doesn't have a shell and is limited to one folder. To get this working, I had to configure a temp-folder in the wp-config. Updating and installing new plugins works fine like this. Compared to hosted website environments I need to enter the password each time, but that is OK for me.

    This is the basic setup, and although my description is not complete I think this is probably enough information for my question.

    So wordpress works for the most part, except that uploading images doesn't work. When I upload an image, an entry appears in the media library, but no image. If I take a look at the uploads folder, the subfolder 2012 is created (user/group www-data/www-data), but the subfolder 02 (for february) couldn't be created. The result is that the image cannot be uploaded. When I manually create this 02 folder, the image is uploaded.

    Now I can create the 02 folder manually, as well as the 03, 04, etc folder. That will solve my problem for the moment, but I would rather know what the cause is, so I can fix it.

    Can you explain what's happening here, and how I can fix this?

Reply

You must log in to post.

About this Topic