Forums

Upload media folder images to subdomain error (2 posts)

  1. newsjunk
    Member
    Posted 7 months ago #

    For speed optimalisation reasons I want to change the wordpress upload folder to a subdomain, but wordpress keep telling me the write permissions are not correct.

    Absolute path:var/www/vhosts/domain/httpdocs/wpfolder/wp-content/uploads
    Url:http//domain.ext/wpfolder/wp-content/uploads

    Changed into:
    Absolute path:var/www/vhosts/domain/subdomains/img/httpdocs/img
    Url:http//img.domain.ext/img

    The permissions are:
    var/www/vhosts/domain/subdomains(755)/img(755)/httpdocs(755)/img(777)

    Could it have something to do with the directory owner of the subdomain dir? If the apache user needs to go back into before /httpdocs(user ftpuser, group psaserv)/, maybe the apache user user is not able to write thru the directory /subdomains(user root, group psaserv)/img(user root, group root)/httpdocs(user ftpuser, group psaserv)/

    Do I need to change the dir owner, and if so, how do I do?

    I have a VPS with CentOS and root access.

  2. hotkee
    Member
    Posted 7 months ago #

    Guessing you are on a hosted server - the router web area folder being

    Absolute path:var/www/vhosts/domain/httpdocs/

    This would probably be accessible to the web.

    If you stick anything below httpdocs, my guess is that wont be accessible through the web.

    Rather if you want to do sub domains you would need to have something like

    Absolute path:var/www/vhosts/domain/httpdocs/subdomains/img

Reply

You must log in to post.

About this Topic