• Hi,

    I have downloaded and installed the newest version of WP on my server, according to their tutorial. The server has all the required specs.

    The installation and configuration went very smooth, but I when I got to upload new stuff, like new themes or images to personalize the appearance I was always getting this ERROR message:

    “Unable to create directory /home/”site”/public_html/”folder”/wp-content/uploads/2010/12. Is its parent directory writable by the server?”

    If I was creating these folders myself through FTP, it was giving me the same error.

    When uploading a new theme, I had the same issue, but I transferred it myself through FTP in the right folder and it worked.

    Do you think the problem is that the platform has been installed in a subdomain? How could I make sure that the parent directory is writable by the server?

    Please let me know what do I have to modify to make it work.

    Thanks in advance!

Viewing 15 replies - 1 through 15 (of 19 total)
  • Change the permissions on the wp-content directory to 766. If you still have problems, try 767 or 777. Once your uploads are working, change the permissions on wp-content back to 755 again and check that everything still works OK.
    https://codex.www.ads-software.com/Changing_File_Permissions

    Thread Starter DNL

    (@dnl)

    Hi Esmi,

    Thanks for your reply!

    It was a problem with my webhost. He changed the server and now I can upload/create folder, but other problems still persist.

    I can upload images, new themes, but it doesn’t add new pages/posts. They all appear on the home page, but when clicking on the title to open the article, it opens a link that doesn’t exist:
    https://exampleblog.website.com/2010/12/article-title/

    It seems like it can’t create them and it doesn’t give me any error messages.

    I have all the pages in the wp_admin folder – I see and can edit them in the admin interface, but they don’t appear on the public interface. There are no new files created.

    It makes changes in existing files, creates sub folders, uploads files, but it seems like it doesn’t create anything in the main directory of the subdomain, where the blog is located.

    Do you know what could be the reason?

    Thread Starter DNL

    (@dnl)

    I have fixed the problem ??

    I added to the .htaccess file the following:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    ErrorDocument 404 /index.php?error=404
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    Everything works works now ??

    I’m having the same issue, and tried all of the above. I’m still getting the error.

    I installed a fresh copy of WordPress, and it was able to post fine, but when I restored the database, the issue returned.

    The hosting company, BluDomain, is saying they can’t do anything else, and have referred me back here. I need this to work, and suggestions other than the above.

    I never have this issue with GoDaddy, so I can’t understand why this is happening.

    PLEASE help!

    I also tried to Export the blog, and I get the following error: The URL is not valid and cannot be loaded.

    It’s like a no-win with this blog now. I need to at least export the blog, so I can start from scratch that way.

    Help, PLEASE. :}

    Thanks

    Thread Starter DNL

    (@dnl)

    Have you tried to download all the files to your computer through FTP. This would keep your theme settings and all changes you’ve made in the blog’s templates code. And through the control panel you would also be able to export the database.

    Then upload them to another webhost’s server.

    This might be a solution.

    I have all the files on my computer now. But I’m starting to think the database is corrupt. I’ve tried the repair tool and it claimed the database was fine. So I don’t know what else to do.

    If I uninstall this WordPress, and reinstall a fresh copy, and then copy all these files back – without the database – will the posts, tags, pages, etc. still be there?

    Thanks

    I at least need to find a way to export all posts, pages, etc. to an XML file. The WordPress Export Tool doesn’t work any more.

    What else is possible?

    DNL – what exactly did your webhost change on the server?

    Thanks

    Re: Moving it to another webhost server, he doesn’t have the funds right now.

    But thanks for the suggestion.

    Thread Starter DNL

    (@dnl)

    My web-host has transferred my site to another server and after that the blog was able to create folders and upload themes, and pictures etc. But it still couldn’t create new pages with posts! To fix that I just added in the .htaccess file, in the main directory the following:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    ErrorDocument 404 /index.php?error=404
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    …and everything started to work great.

    Yeah, I don’t think they’re willing to transfer his site to another server.

    But I did try the rest, and it still doesn’t work.

    I really need to get this fixed, if anyone can give me other suggestions than what’s above (which I’ve tried), it’d really help.

    Hi
    I am not a coder so am asking this basic question: where do i find the .htaccessfile and change it? I am having this same problem in one of the sites I am working on.

    This is the scenario:
    The site is domain hosted among many domains in one single account.
    The guy who handled the website earlier recently moved servers and we want to change the main website to wordpress.

    I am not being able to upload pictures because of the same error as posted here. I tried everything and this may be the answer.

    I am not being able to change permissions on the uploads folder either- perhaps the server doesnt allow anyone to change folder permissions?

    My own website is only domain in my personal hosting account and wordpress works flawlessly (I used godaddy’s automatic app setup) so I am baffled.

    Please advise.
    Thanks.

    I tried all the above and it didn’t work. It does now because I did the following: in WP-Admin > Settings > Media, make sure the upload path is relative and not absolute, ie wp-content/uploads

    This is likely to be a problem if the site has been moved to a new server.

    Te .htaccess file is in the top level of the public_html folder by the way.

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘Can't create the directory’ is closed to new replies.