Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

256
Vistas
wordpress installation on vm instance on compute engine on google cloud - file permission errors

I have been asked to look at a wordpress site that is on google cloud - the Wordpress admin works fine - the front end of the site doesn't show the css

I believe it to be a file permission issue

Replicating the site and placing it on a different server with correct wordpress file permissions it works fine.

However on google cloud I have issues with trying to change the file permissions.

I have ftp access using Filezilla but can't change file permissions that way and if I try to use the apache ssh console to change file permissions that wont apply either.

So looking at the owner of the folder var/www/html and the group it is showing as www-data not root - so first question is what should be the correct owner and group ?

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

To change folder & file permissions and ownership do the following.

SSH into the VM, google cloud provide a SSH browser based terminal.

SSH will open a linux terminal, if you are root user no need to type 'sudo' for the following commands.

Type 'sudo vim /etc/apache2/envvars'

read what the config file says, defaults are: export APACHE_RUN_USER=www-data export APACHE_RUN_GROUP=www-data

Exit the config file back to the linux terminal command line.

Type the following commands to give Apache appropriate User and Group permissions in the public wordpress directory, change user and group name as appropriate

sudo chown -R www-data:www-data /var/www/html

sudo find /var/www/html  -type d -exec chmod 750 {} \;

sudo find /var/www/html  -type f -exec chmod 640 {} \;

You can now exit the SSH terminal. Note if you want to see the new permissions in FileZilla press F5 to refresh FileZilla.

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda