Firstly, I am sorry for bad English Language

I want to make a site using wp on local with xampp 3.2.2 (win10)

To avoid future problems (e.g changing domain after moving to live or changing media file path in db) i stablish a virtual host & a subdomain by putting this code in httpd-vhosts.conf

NameVirtualHost *:80
<VirtualHost *:80>
    ServerName xyz.com
    ServerAlias xyz.com
    ServerAdmin [email protected]
    DocumentRoot "C:/xampp/htdocs/xyz"

<VirtualHost *:80>
    ServerName dl.xyz.com
    ServerAlias dl.xyz.com
    ServerAdmin [email protected]
    DocumentRoot "C:/XAMPP/htdocs/xyz/dl"

& this code to httpd.conf

Alias /xyz "C:/XAMPP/htdocs/xyz/"
<Directory "C:/XAMPP/htdocs/xyz/">
    AllowOverride All
    Order allow,deny
    Allow from all
  • then i check subdomain to making sure it's working by making simple index.html to "dl" DIR (dl.xyz.com) & work Properly.
  • then I install wp and after some configuration I follow this article step to change WordPress default upload path:


This is my database change:





I change "dl" DIR permission As described here: https://www.youtube.com/watch?v=mX2WsUfW_x4 In this way: dl Folder properties >> sharing Tab >> Advanced Sharing >> check share this folder >> Permissions >> select Everyone as username >> check Allow option for "full Control" "Change" "Read" this is 777 permissions

now when i want to upload file to media this error appeared:

Unable to create directory C:/xampp/htdocs/xyz/dl/uploads/2019/02. Is its parent directory writable by the server?

  • Please put your permissions procedures inside the question instead of linking to the video.
    – Max Yudin
    Commented Feb 6, 2019 at 8:27

1 Answer 1


Problem was / in upload_path: That most change to\ C:/xampp/htdocs/xyz/dl/uploads C:\xampp\htdocs\xyz\dl\uploads

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.