- Notifications
You must be signed in to change notification settings - Fork6.1k
How do I install PHP in the code-server docker container?#7349
-
I installed code-server in a docker container running on my server at https://mydomain.com:8443/. I want to do some development using PHP. I installed the devsense PHP extension (this one). When I try to run or debug a simple PHP file in code-server, a new tab opens at URL https://mydomain.com:8443/proxy/8000/ that only shows the text My server has PHP installed, but my current understanding is that I need it installed inside the code-server docker container. I went to the terminal from within code-server and tried to execute
I tried searching to find any PHP installation stepsspecific to code-server, but I could not find anything. How is this done? |
BetaWas this translation helpful?Give feedback.
All reactions
We delete all the cached repository lists from the image. From what I understand, this is a common practice in Docker for optimizing layers.
In any case, that means you need to runsudo apt update
first to fetch the repositories, then yourinstall
should work.
Replies: 1 comment 1 reply
-
We delete all the cached repository lists from the image. From what I understand, this is a common practice in Docker for optimizing layers. In any case, that means you need to run |
BetaWas this translation helpful?Give feedback.
All reactions
-
Makes sense. I was able to install after updating. Thanks! |
BetaWas this translation helpful?Give feedback.