Digitalocean install mysql ubuntu 14.048/25/2023 ![]() Now, we’re ready to tell WordPress about the database and your blog. Sudo service apache2 reload Configure WordPress Tell Apache to disable the default site and enable your wordpress site, then reload: sudo a2ensite nf Paste in the sample site file below and be sure to replace the naming convention for your domain name: Let’s create a new file to edit: sudo nano nf Now, it’s time to create a site configuration file for your Apache server to host WordPress: cd /etc/apache2/sites-available Grant all privileges on wordpress.* TO identified by "your-mysql-password" ![]() Change user name and password below to whatever you selected during the installation: mysql -u root -p Make note of your choices for use during the setup process.Ĭonfigure the MySQL Database. You’ll be asked to provide a user name and password. Sudo chown -R www-data:www-data wordpress Full instructions are supplied in more detail at WordPress’ Codex.ĭownload the latest version of WordPress, expand the archive and set permissions: cd /var/www It’s time for the fun part of installing WordPress. Sudo apt-get install php5 libapache2-mod-php5 libapache2-mod-auth-mysql php5-mysqlĬreate a www directory with permissions for the Apache web server: sudo mkdir /var/www Note: If you didn’t create your Droplet with the LAMP for Ubuntu 14.04 application, then you’ll need to install components for Apache, MySQL and PHP to work together by following the remaining steps below: sudo apt-get install mysql-server Verify the swap file is active by typing: free If you’re using the $5 512MB RAM droplet, you’ll want to create a Swap file for WordPress to operate properly: dd if=/dev/zero of=/swapfile bs=1M count=1024Įdit the fstab file: sudo nano /etc/fstabĪdd this line: /swapfile swap swap defaults 0 0 It’s also best to run through the script for securing your MySQL server installation: mysql_secure_installation There are a few things you’ll want to do to get your droplet ready for WordPress. ![]() ssh can also use your IP address until your domain name is active: ssh your password when prompted, or use: passwd Configuring Your Droplet Wait until your DNS changes propagate (sometimes up to 24 hours or more – check them here), try to connect via SSH using your domain and the password provided in the Digital Ocean email. Visit your domain registrar’s DNS settings and change the A record for your to the new IP address e.g. Once you have your IP address, you can begin the process of mapping your domain name e.g. Digital Ocean will email you your IP address and root password. Under Select Image, choose Applications: LAMP on Ubuntu 14.04 LTS.Ĭreating a droplet only takes a minute. You can also select any region closest to you or your typical reader e.g. You’ll want to have a hostname (domain or sub-domain name) chosen for your WordPress site in mind. Once you sign up, you can create your first Droplet using the selections below. The process is simple and only requires an email and password:ĭigital Ocean’s cloud instances are called Droplets. ![]() Visit the Digital Ocean website to sign up. If you’re looking for a simpler, fully-managed WordPress hosting solution, try WPEngine.Digital Ocean offers a one click install of WordPress but if you use this, it will be more difficult to optimize your configuration with Varnish and W3TC as I describe in my tutorials.If you don’t have a registrar or need more information, visit Registering Your Domain Name. You’ll want to have a domain name registered for your WordPress site.Here’s an example site running the image. It includes the fully optimized configuration with recommended plugins, a responsive theme and Varnish and W3TC configuration. If you want to skip the tutorial below, you can purchase my pre-configured WordPress image for Digital Ocean. New WordPress site? If you’re starting a new blog, sign up at Digital Ocean and follow the steps below. For example, this site is running at Digital Ocean with multiple WordPress sites using the configuration I describe below and in my optimization tutorials.Įxisting WordPress site? If you’re migrating an existing blog, you may be interested in Moving WordPress. You can even run multiple WordPress sites on a single droplet with great performance because they use solid state drives (SSD). Digital Ocean is an easy to use, economical hosting option with very fast performance. This tutorial describes how to install WordPress on Ubuntu 14.04 LTS at Digital Ocean in a way that can be optimized with Varnish and W3 Total Cache for optimal performance for only $5 monthly.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |