By arkpizarro
I installed wordpress on lamp and cannot update themes or install plugins. I get an “unable to create directory” error when I try to. When I spoke with support they told me to do this: root@domain:~# chown -R www-data /var/www/wordpress
but what I got was this: chown: cannot access `/var/www/wordpress’: No such file or directory
So, I was told to find where wordpress was installed but my understanding is that according to the tutorials here on DO its installed in home and then moved to /var/www
Can anyone help with this?
Thanks!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Greetings:
For anyone on a Red Hat Linux or CentOS server, the owner:group needs to be
apache:apache
instead of
www-data:www-data
Hope this will help others using/stuck with RHEL.
After trying many options, changing folder permissions fixed my Wordpress Permalinks issue. I hope this can guide other aspiring professionals as well.
I have the same problem. I tried everything above and nothing works. Plugin install works, WordPress automated update works but uploading a media file fails no matter what I try, I keep getting:
Unable to create directory uploads/2017/11. Is its parent directory writable by the server?
My permissions are set to drwxr-xr-x and www-data www-data I added my user to www-data. I restarted the Apache server several times. Nothing helps. I even tried a chmod 777, nothing.
My setup is Ubuntu 16.04 with Apache2, PHP7, mySQL5 and Let’s Encrypt.
Any idea what is going wrong here?
EDIT
Well, solved it! For others who might have the same issue:
I moved my WordPress install from an old server. In case of moving a setup instead of clean install you need to change the path in dashboard->Settings->Media to your absolute path. E.g.
/var/www/html/wp-content/uploads/
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.