Question

auto install php when create server digitalocean

i choose to create php applicaton then created server but the server comes empty ? why ?


Submit an answer
Answer a question...

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

alexdo
Site Moderator
Site Moderator badge
September 30, 2022

Hello @xx0bb

Some marketplace droplets will require you to connect via ssh to complete the installation process, so if you’ve used a droplet image from our marketplace this might be the case.

Droplets from our marketplace come with good documentation so you can double-check it and ensure you’ve completed the setup.

If you’ve created the droplet manually via the control panel, follow the tutorial Bobby mentioned to complete the LAMP stack setup.

Regards

Hi there,

In addition to what has already been mentioned you could also use the user data option during the Droplet creation as described here in the docs:

https://docs.digitalocean.com/products/droplets/how-to/provide-user-data/

Alternatively, you could use a tool like Ansible to automate the initial server setup and configuration. Here is a great resource on how to get started:

https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu-22-04

Hope that this helps!

Best,

Bobby

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

KFSys
Site Moderator
Site Moderator badge
September 26, 2022

Hi @xx0bb,

Have you used one of the MarketPlace Droplets? If yes, can you please provide me the link to it so that we can check it out and see if there is anything we can do or worry about?

You can check this one here;

https://marketplace.digitalocean.com/apps/lamp

It will come with Apache/MySQl and PHP all installed, try it out.