![]() ![]() ![]() We will configure the details of nginx and php details in the next step: $ sudo apt-get install php5. To install PHP-FPM, open terminal and type in these commands. You can install php5.6 modules too for example sudo apt-get install php5.6-mbstring php5.6-mcrypt php5.6-mysql php5.6-xml Step 4: Install PHP5.6-FPM With Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies $ sudo apt-get install python-software-properties Use the following set of command to add PPA for PHP 5.6 in your Ubuntu system and install PHP 5.6. $ sudo apt-get install mysql-server Step 3: Install PHP 5.6 Restart php: $ sudo service php7.$ sudo ufw allow ‘Nginx HTTP’ Step 2: Install MySQL Do the same for ‘upload_max_filesize': post_max_size = 100MĬTRL-X to save, then ‘Y' and ENTER to exit. Where you see the line ‘cgi.fix_pathinfo=1', uncomment the line (by deleting the semicolon) and edit as follows: cgi.fix_pathinfo=0Įnter CTRL +W again and search for ‘post_max_size' and change this value to whatever size you would like. Install PHP7-FPM $ sudo apt-get install -y php-fpm php-mysql php-xml php-gd php7.0-zipĪdjust php settings: $ sudo nano /etc/php/7.0/fpm/php.iniĮnter CTRL +W to access search function and type ‘cgi.fix_pathinfo'. MariaDB > GRANT ALL ON mywpdb.* TO IDENTIFIED BY 'securepassword' Įnter ‘exit' to exit MariaDB 4. Set a password for MariaDB (recommended to use a different password than your user/root account).Įnter ‘no' when asked to change password (since we just setup a new one) and ‘yes' to the rest of the prompts.Ĭreate a new database, user and assign privileges to the user: MariaDB > CREATE DATABASE mywpdb DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci $ sudo add-apt-repository 'deb xenial main' NET Core in Ubuntu 18.04 Music no 8 Install MySql Server: Install PHP. ubuntu version 16.04 LTS Server nginx version 1.10.0 php version 7 MariaDB version 10.1. How To Install Nginx, MySQL, PHP, PhpMyAdmin. See MySQL vs MariaDB $ sudo apt-get install software-properties-common I have a strange problem with my (nginx/phpmyadmin) setting. #ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:$ĬTRL-X to save, then ‘Y' and ENTER to exit. ![]() Update settings in ‘nf' by commenting out all lines in the ‘SSL Settings' section by putting ‘#' in from of them (these will conflict with some of the settings we create later): sudo nano /etc/nginx/nfĪfter you have done this, it should look like this: # $ sudo sh -c "echo 'deb /' > /etc/apt//nginx.list" In order to use a WordPress plugin for purging the NGINX cache that I talk about below, you have to install a custom version of NGINX: $ sudo apt-key adv -keyserver -recv-keys 3050AC3CD2AE6F03 When all done, your settings should look something like this (using Mailgun’s servers): 2. To configure your domain in DigitalOcean, see here: We will setup our domain to route email through Mailgun’s servers (free accounts available with no credit card needed). In the form to “Add a Domain” enter your domain name and then select the droplet you created. Then, go to your DigitalOcean account and go to Networking > Domains. Next, login to the site where you registered your domain name and change the nameservers to point to: Super-fast Secure WordPress Install on DigitalOcean with NGINX, PHP7, and Ubuntu 16.04 LTS 1. If you would like to have multiple sites (and domain names) on the same server, go here. This tutorial sets up a single WordPress site on a server.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |