Hello everyone, I am asking because I want to do the things right but I don't really know how.
I have installed on my Raspberry everything is needed to work with wordpress (mysql, lighttpd,...). I have enabled "user directories" to have my public_html folder inside my /home/pi.
Lighttpd creates a user/group www-data so my Wordpress folder have to have all files (644) and folders (755) to that user to work properly (install plug-ins, updates,...).
The problem is that I always log-in with the user "pi" so if I want to change something inside the Wordpress folder I need to do it as root because "pi" user doesn't have rights to do anything. If I am using the console directly or accesing via ssh I don't mind to work as root, but the great problem is when I access throught FTP because I cannot modify or create anything as I said.
So, what I want to know is how to configure the rights properly in order to leave user pi to have complete access to Wordpress files and folders.
One way is to change permissions to files and folders to 777 but obviously is a huge security hole so no way. On the other hand, I can change all Wordpress files and folders to user/group "pi" and I wouldn't have problems when accessing through FTP but I would have the same errors as I said when lighttpd try to write there. Also I can change in lighttpd.conf user and group to "pi" but it could get other issues with /var/www folders and logs... So I cannot figure out how to solve this puzzle.