Riaan's SysAdmin Blog

My tips, howtos, gotchas, snippets and stuff. Use at your own risk!

PHPWordpress

WordPress updates nginx and php-fm

I recently changed to php7 and some time later I realized updates is not working. Prompts for ftp permissions. This fixed it for me.

# diff /etc/php-fpm-7.0.d/www.conf /tmp/www.conf 
24c24
< user = nginx
---
> user = apache
26c26
< group = nginx
---
> group = apache

# service php-fpm restart
Stopping php-fpm-7.0:                                      [  OK  ]
Starting php-fpm-7.0:                                      [  OK  ]

Probably don't need below if above is correct.

# tail -1 /sites1/blog/web/wp-config.php
define('FS_METHOD', 'direct');

admin

Bio Info for Riaan