Report this

What is the reason for this report?

Ghost droplet prevents PHP from executing files?

Posted on October 10, 2017

In a fresh Ghost droplet installation of Ubuntu 14.04 LTS, I put a php script into a /var/www/static folder, but the file always wants to download instead of run. Is this because of Ghost? How can I get PHP to execute the script instead of trying to download it?

Edit: I can execute the file from the terminal, but running it in a browser always tries to download or just show the plaintext.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.