• Hello,
    I Have a server with Debian, apache and mysql.
    On this server I installed mysql-server with with php5 compatibility.
    I unzipped wordpress files in a directory called and set permissions in this way.

    sudo chown -R www-data:www-data wp/
    sudo usermod -a -G www-data my_user
    sudo chmod 770 -R /var/www/wp

    Installation was completed without error but if I try to upload a media (also a 1kb image) WP backend shows the error

    error HTTP

    I think there is a permissions issue but I don’t know how to solve.
    Can you tell me how to do, please?
    Thanks

Viewing 9 replies - 1 through 9 (of 9 total)
  • Folders should be set to 755 and files to 644.

    Thread Starter tab7x

    (@tab7x)

    I had already tried to do this with these commands:

    sudo find /var/www/wp/ -type d -exec chmod 755 '{}' ';'

    and

    sudo find /var/www/wp/ -type f -exec chmod 644 '{}' ';'

    but the issue remains

    Is there anything in your apache or php error logs?

    Thread Starter tab7x

    (@tab7x)

    In apache2 error.log I have many many rows with this error

    [Mon Feb 16 21:50:42 2015] [error] [client xxx.xxx.xxx.xxx] File does not exist: /var/www/api

    I could not find PHP error log

    Thread Starter tab7x

    (@tab7x)

    I also try to se the entire wp-content and its directories to 777, but the situation is the same.

    Thread Starter tab7x

    (@tab7x)

    If I set wp-content permissions to 777 and its sub-directories te browser upload works and works even if I reset wp-content permission to 755.
    Only drag&drop uploader continues to not works!

    The web server should be able to modify directories that are owned by the same user:group that the web server is running under. You should never set 777 permissions on any file or directory on your web server. Do you have selinux enabled?

    Thread Starter tab7x

    (@tab7x)

    Selinux not seems to be configured.
    I try to type:

    sestatus
    check-selinux-installation
    getenforce
    cat /etc/sysconfig/selinux

    but none of these commands works.
    So, besides selinux issue, how ca I solve my issue?
    As I said in my first post, I set permissions in this way

    sudo chown -R www-data:www-data wp/
    sudo usermod -a -G www-data my_user
    sudo chmod 770 -R /var/www/wp

    Are they corrects?

    Thread Starter tab7x

    (@tab7x)

    up

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Permissions Issue on Debian server: error HTTP whith media upload’ is closed to new replies.