Skip to content
Advertisement

How to Create PHP Envirnoment in Docker?

I am trying to dockerize php web-app with apache2 server. any better way to create environment for php and apache2. I have search on internet cloud not able to find any solution.

I have used ubuntu:latest as base image,I have tried to create image in step if first one work than go ahead. I have already tried to create image without php and i was succesful to run docker container but without PHP there is no meaning to run than I have take next step to add PHP into image, now I am stuck.

There is image of Error below.

enter image description here

Here is my Dockerfile

JavaScript

Thanks!!

Advertisement

Answer

The symbolic links for g++ & gcc are not good.

The following worked for me:

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement