I just setup Wordpress on Caddyserver. It worked WONDERFULLY. Except, I didn’t have the permissions to change anything because it was ll owned by root. it was driving me nuts having to go back and forth between root and my home user. So, I deleted the project and started again. Wordpress kept wanting access to my ftp server and that was annoying as crap.
I created a folder in my home directory called: site.
As Wordpress was already running before, I have PHP and MySQL installed. However, when I disable fastcgi, the static text loads fine.
I uploaded the wp files there.
I also dropped the wp database from MySQL and created a new one.
I created a new Caddyfile, just like the old one.
I have given caddy permission to run on port 80 so I can run it without sudo.
Whenever I load the site, I get a 502 Bad Gateway error.
Here is my Caddyfile:
smashindex.com {
root /home/jesse/site/
fastcgi / /var/run/php7.0-fpm.sock php {
ext .php
split .php
index index.php
}
}
Now that I’ve played around a bit, I’m getting this error: dial unix /var/run/php7.0-fpm.sock: connect: no such file or directory