good day ocean digital gentlemen , I want space to place a php application code and data base in postgres . elavoracion is to draft college thesis . for a final project. I want to know if you support postgres as only see description mysql and others. Thanks for your reply.
Esvin Sinay
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!
Our droplets are Linux based virtual machines where you receive root (administrator) access and can install whatever software you like. To install a stack including Apache, PHP and PostgreSQL you could create a new Ubuntu 14.04 droplet, log in and run the following commands:
apt-get update
apt-get install apache2 php5 install postgresql postgresql-contrib php5-pgsql libapache2-mod-php5
You will need to then create a database user and configure Postgre, this guide will walk you through that. When complete your web root (where to put your php files) will be /var/www/html
If you would prefer to use php 7, I would recommend using an Ubuntu 16.04 droplet and in the command above, replace “php5” with “php7.0” in all the package names.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.