How To Configure Secure Updates and Installations in WordPress on Ubuntu 14.04

Опубликовано: 16 Февраль 2025
на канале: NixInPix
808
6

There are plenty of ways to insure the installation of themes and plugins as well Uploading to WordPress. We chose one way and will walk with you step by step how you do it. To do this you must first need to have installed LAMP on your VPS server as well as installed Wordpress.
WordPress is an online, open source website creation tool written in PHP. But in non-geek speak, it's probably the easiest and most powerful blogging and website content management system (or CMS) in existence today.
LAMP is an acronym for an archetypal model of web service solution stacks, originally consisting of largely interchangeable components: Linux, the Apache HTTP Server, the MySQL relational database management system, and the PHP programming language. As a solution stack, LAMP is suitable for building dynamic web sites and web applications.

Commands:

sudo adduser wp-user
cd /var/www
sudo chown -R wp-user:www-data /var/www/

sudo su - wp-user
ssh-keygen -t rsa -b 4096

Exit

sudo chown wp-user:www-data /home/wp-user/wp_rsa*
sudo chmod 0640 /home/wp-user/wp_rsa*

sudo mkdir /home/wp-user/.ssh
sudo chown wp-user:wp-user /home/wp-user/.ssh/
sudo chmod 0700 /home/wp-user/.ssh/

sudo cp /home/wp-user/wp_rsa.pub /home/wp-user/.ssh/authorized_keys

sudo chown wp-user:wp-user /home/wp-user/.ssh/authorized_keys
sudo chmod 0644 /home/wp-user/.ssh/authorized_keys

sudo nano /home/wp-user/.ssh/authorized_keys

from="127.0.0.1"

sudo apt-get update
sudo apt-get install php5-dev libssh2-1-dev libssh2-php

sudo nano /var/www/wp-config.php

define('FTP_PUBKEY','/home/wp-user/wp_rsa.pub');
define('FTP_PRIKEY','/home/wp-user/wp_rsa');
define('FTP_USER','wp-user');
define('FTP_PASS','');
define('FTP_HOST','127.0.0.1:22');

sudo chmod 775 -R /var/www/wp-content
sudo chown -R wp-user:www-data /var/www/wp-content

sudo service apache2 restart

You can always Deploy an SSD cloud server in 55 seconds
with Digitalocean.
Anyone how use this link will receive $10 in hosting credit immediately after unlocking their account by adding a valid payment method.
Sign Up with this link
https://www.digitalocean.com/?refcode...
(affiliate, referral)