Professional Documents
Culture Documents
Course Vocabulary
Course Vocabulary
Is the way to go
Example:
if you don’t plan on using any third party Nginx modules the mainline
branch is the way to go
Determine
Example:
The keepalive_timeout determines how many seconds a connection to
the client should be kept open before it’s closed by Nginx
Further down
Example:
Further down the http block you will see a section dedicated to Gzip
compression.
Section dedicated to
Example:
Further down the http block you will see a section dedicated to Gzip
compression.
Ensure, If not
Example:
. For security reasons you should uncomment
the server_tokens directive and ensure it is set to off
. you also need to ensure the fastcgi_param
SCRIPT_FILENAME directive is set
. Ensure the following directive exists, if not add it to the file:
. you should ensure that the configuration file contains no errors by
issuing the following command
Underneath
Example:
. Underneath service tokens
. Underneath add the following:
I chose
Example:
I chose a value of 64m
By default
Example:
By default, Gzip is enabled
Tweak
Example:
you should tweak these values further for better handling of static files.
First, Secondly,Next and Finally / The last step / The last thing to address
Example:
First, you should uncomment the gzip_proxied directive and set it to any.
Secondly, you should uncomment the gzip_comp_level and set it to a
value of 2,
Next, you should adjust your php.ini file to increase the WordPress
maximum upload size.
Finally, you should uncomment the gzip_types directive
The last step is to secure MariaDB.
The last thing to address in this post is to remove the default server
block from Nginx.
Set it to a value of
Example:
Set it to a value of 2
otherwise
Example:
you also need to ensure the fastcgi_param SCRIPT_FILENAME directive is
set, otherwise you will receive a blank white screen when accessing any
PHP scripts.
Open File/Document/page
Example:
. Open the fastcgi_params file:
. Open the default pool configuration file:
in addition
Example:
This will ensure that JavaScript, CSS and other file types are gzipped in
addition to the HTML file type.
By issuing
Example:
. you should ensure that the configuration file contains no errors by
issuing the following command:
. Now that Nginx and PHP have been installed, you can confirm that
they are both running under the correct user by issuing
the top command:
so I like to use
Example:
so I like to use one maintained by Ondřej Surý
After, Confirm:
Example:
After the installation has completed, confirm that PHP has installed
correctly:
Change, Replacing
Example:
Change the following lines, replacing www-data with your username:
The final
Example:
The final package to install is MariaDB, which is a drop in replacement for
MySQL.
I choose, over
Example:
I choose MariaDB because it offers more features and speed
improvements over MySQL.
You’ll be prompted
Example:
You’ll be prompted to enter a root password, which should be complex,
as described at the end of the previous post.
Navigate to
Example:
Navigate to the sites-available directory:
Begin
Example:
Begin by creating the required directories and setting the correct
permissions:
bare-bones
Example:
This is a bare-bones server block that informs Nginx to serve
the ashleyrich.com domain
The command
Example:
The command should output information about your current PHP version
and a few other details.
With everything in place, Then, You now need to, Finally, On Success
Example:
. With everything in place it’s time to install WordPress. Start by
navigating to the site’s public directory:
. Then using WP-CLI, download the latest stable version of WordPress
into the working directory:
. You now need to create a wp-config.php file. Luckily, WP-CLI has you
covered:
. Finally, with the wp-config.php file in place, you can install WordPress
and setup the admin user in one fell swoop:
. On success, you should be able to visit the domain name within the
browser and be presented with a blank WordPress installation:
Here’s a quick breakdown
Example:
Here’s a quick breakdown of how I personally add them:
Both of which
Example:
The only limiting factors are available system resources (CPU, RAM, etc)
and bandwidth restrictions imposed by your VPS provider. Both of which
can be overcome by upgrading your package.
Head to the
Example:
Head to the Monitoring tab
Once happy
Example:
Once happy, save the configuration.
Still Requires
Example:
WordPress still requires sending outgoing emails.