12/29/2023 0 Comments Phpmyadmin nginx ubuntu 16.04 server![]() Then create permission www directory chmod -R 777 /var/www/ chown -R www-data:www-data /var/www/ chmod +x /usr/local/bin/composer Step #07: Goto www directory cd /var/www/ then download Laravel full file from git repo. mv composer.phar /usr/local/bin/composerĬomplete full permission for run composer file. So must be using as root user for move composer. adduser techrssĭownload composer command below. Step #06: Create new User for run composer. So at first create one user with password. Laravel used as composer must be run standard user. apt-get install apache2 Step #05: Install mysql database server. install php7.1 php7.1-xml php7.1-mbstring php7.1-mysql php7.1-json php7.1-curl php7.1-cli php7.1-common php7.1-mcrypt php7.1-gd libapache2-mod-php7.1 php7.1-zipĬheck apache2 server if don’t install. ![]() Restart php: $ sudo service php7.Apt-get update Step #04: Now install php packages. 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' See MySQL vs MariaDB $ sudo apt-get install software-properties-common #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 |