Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

108
Visualizações
Docker Compose Run PHP-Apache as root

First of all, I know that running Apache as root is highly not recommended or as most says "Extremely Dangerous". However, what I am working on is simply a development container and will not be used on any production. To summarize, I am currently working with WordPress and I am having trouble with plugin and theme installations and other stuff due to permissions as any volume mount directory is owned by root and change owner doesn't work. I think it's a known issue with docker. And to access and retain my codes I have to mount the wp-content as it is where the plugins and themes are located. I tried to update the envvars and set the user and group to root but I somehow met the following error:

enter image description here

Try to search anywhere in the internet but could not find any resource on adding CFLAGS. I tried adding it on the dockerfile then also via --build-args still no luck. Any one got any idea how to set the CFLAGS or have tried running there apache as root on docker.

over 4 years ago · Santiago Trujillo
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda