Well, I’ve been doing a a lot of Wordpress work lately. One constant with Wordpress is the issue of file permissions, that is, the dreaded “Could not create directory.”

On *nix it’s usually solved with either chmod, chown, or a combination of both. For example:

1
2
3
4
5
6
7
Welcome to Ubuntu 14.04.2 LTS (GNU/Linux 3.13.0-36-generic x86_64)
.
<snip>
.
tcp@splace:~$ sudo chown -R www-data:www-pub /var/www/wordpress
tcp@splace:~$ sudo find /var/www/wordpress/ -type d -exec chmod 775 {} \;
tcp@splace:~$ sudo find /var/www/wordpress/ -type f -exec chmod 664 {} \;

If you’re using XAMPP on OSX(ideally you should be using Vagrant) the solution is:

1
tcp@home:~$ sudo open -e /Applications/XAMPP/etc/httpd.conf

Find the following entry:

User daemon

Group daemon

Change to your local User name, for example:

User tcp

Group daemon

Then just save & close the .conf file and restart Apache via the XAMPP control panel.

Want to work with me?

Let's Talk!

Recently I've worked with ...