Con este script podrás establecer correctamente los permisos de los ficheros y directorios de wordpress en tu servidor web linux.
#!/bin/bash
#
WP_OWNER=dgc_com # <-- Usuario webserver
WP_GROUP=psaserv # <-- Grupo webserver
WP_ROOT=$1 # <-- Directorio root wordpress
WS_GROUP=psaserv # <-- Grupo webserver
cd /var/www/vhosts/diegogarciacuesta.com/httpdocs/
# Restablecer a valores predeterminados seguros
find ${WP_ROOT} -exec chown ${WP_OWNER}:${WP_GROUP} {} \;
find ${WP_ROOT} -type d -exec chmod 755 {} \;
find ${WP_ROOT} -type f -exec chmod 644 {} \;
# Permitir administracion desde wp-config.php (pero evitar el acceso mundial)
chgrp ${WS_GROUP} ${WP_ROOT}wp-config.php
chmod 660 ${WP_ROOT}wp-config.php
# Permisos contenido directorio wp-content
find ${WP_ROOT}wp-content -exec chgrp ${WS_GROUP} {} \;
find ${WP_ROOT}wp-content -type d -exec chmod 775 {} \;
find ${WP_ROOT}wp-content -type f -exec chmod 664 {} \;