Docker-Webstack icon indicating copy to clipboard operation
Docker-Webstack copied to clipboard

ln: /usr/bin/php: File exists

Open eXistenZNL opened this issue 2 years ago • 0 comments

Issue

When building the container, I run into the error ln: /usr/bin/php: File exists. This was not the case before yesterday! What is going on?

Reason

As of Jan 18th 2024 the underlying Alpine Linux versions got bumped for the 8.1 and 8.2 versions of the webstack. If you are installing the PHP CLI package (php81 or php82) and were making a symlink before (e.g. ln -s /usr/bin/php81 /usr/bin/php) this is now no longer needed as this symlink is provided by the package. Trying to do so will give the mentioned error.

Solution

Simply remove the creation of the symlink from your Dockerfile. Everything should work as before.

eXistenZNL avatar Jan 19 '24 10:01 eXistenZNL