Off Topic this is out of laragon


  • | 1018 points

    Hello guys!
    I do use DigitalOcean too host my sites.

    I do create my Droplets like that.

    this is done on Ubuntu 17.04

    sudo add-apt-repository -y ppa:ondrej/apache2
    sudo add-apt-repository -y ppa:ondrej/php
    sudo apt-get update
    sudo apt-get -y upgrade
    # Apache
    sudo apt-get -y install apache2
    
    chown www-data: -R /var/www/
    sudo a2enmod rewrite
    service apache2 restart
    
    # PHP
    sudo apt-get -y install php7.1 php7.1-curl php7.1-mcrypt php7.1-mbstring php7.1-cli php7.1-mysql php7.1-gd php7.1-intl php7.1-xsl php7.1-zip
    
    # Mysql
    sudo apt-get install -y mysql-server
    
    # Composer
    curl -sS https://getcomposer.org/installer -o composer-setup.php
    php -r "if (hash_file('SHA384', 'composer-setup.php') === '669656bab3166a7aff8a7506b8cb2d1c292f042046c5a994c43155c0be6190fa0355160742ab2e1c88d40d5be660b410') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
    sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer
    
    /bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024
    /sbin/mkswap /var/swap.1
    /sbin/swapon /var/swap.1
    

    any one do have beta way to create a droplets or suggestion?


  • | 3180 points

    Personally I've been using Ansible lately, and it makes many things very easy. But you first need to familiarize yourself with it and find/build needed Roles/Playbooks/etc to make everything nice and smooth. Initial step might take some time (well that's probably true with any new tool..)

    There's lots of Ansible Roles available in Ansible Galaxy. Personally I've been using Roles made by geerlingguy + own custom ones (for PPA's, personal settings, etc..)

    Alternatives to Ansible could be Chef, Puppet or Salt, but I haven't used any of those.

    There's also some online services available, which could do the provisioning for you, like Laravel Forge, Serverpilot or some other service which offers similar features (if you don't mind paying few bucks a month for it).


Log in to reply
 

Looks like your connection to Laragon was lost, please wait while we try to reconnect.