Wordpress: The uploaded file could not be moved to wp-content/uploads/ year month
Linux

Wordpress: The uploaded file could not be moved to wp-content/uploads/ year month

25 Oct, 2024 • 1 min de lectura

Wordpress: The uploaded file could not be moved to wp-content/uploads/ year month. Para corregir el error de permisos al subir imágenes en WordPress, necesitas ajustar los permisos del directorio uploads. Aquí están los comandos necesarios:

Wordpress: The uploaded file could not be moved to wp-content/uploads/ year month

TODOS LOS COMANDOS SIGUIENTES PARA EJECUTAR DESDE LA RAÍZ DEL WP

Ajusta los permisos del directorio uploads:

sudo chown -R www-data:www-data wp-content/uploads</p>
sudo chmod -R 755 wp-content/uploads

Si el directorio no existe, créalo primero:

sudo mkdir -p wp-content/uploads</p>
sudo chown -R www-data:www-data wp-content/uploads  
sudo chmod -R 755 wp-content/uploads

Para toda la estructura de WordPress (si el problema persiste):

sudo chown -R www-data:www-data .</p>
sudo find . -type d -exec chmod 755 {} \;  
sudo find . -type f -exec chmod 644 {} \;
Etiquetas: