Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

Inception - WordPress

WordPress is a free and open-source content management system (CMS) written in PHP. It is one of the most popular platforms for creating websites, blogs, and online stores. WordPress offers a user-friendly interface, customizable themes, and a vast ecosystem of plugins and extensions, making it versatile and adaptable for various types of websites. It powers millions of websites worldwide and is known for its flexibility, scalability, and extensive community support.

Table of Contents

WordPress Installation and Configuration

Unlike other processes, WordPress is not installed by use of apt-get. WordPress is seperately downloaded by wp-cli, which is also used for configuration. Final configuration is done by adjusting the www.conf file.

WordPress Command Line Interface

WP-CLI (WordPress Command Line Interface) is a command-line tool for managing WordPress installations. It provides a set of commands for performing common tasks such as installing WordPress, managing plugins and themes, importing/exporting content, and performing database operations.

During the entrypoint script wp-cli is used to download WordPress, create the wp-config.php, adjusting the MariaDB to the more secure environment, install WordPress, create a new user and send an sql script to MariaDB to create a new post.

Configuration File

File Description Configuration Adjustments
www.conf A configuration file used by PHP-FPM to manage the behavior of PHP processes. Set to listen to port 9000.
Pass environment variables to PHP's environment, in order for wp-config.php to access it with getenv().

PHP FastCGI Process Manager

PHP-FPM is an alternative PHP FastCGI implementation with additional features for managing and scaling PHP processes. It provides improved performance and resource utilization compared to traditional CGI-based PHP setups by maintaining a pool of worker processes to handle PHP requests. PHP-FPM allows for fine-grained control over process management, including process pools, process priority, and request timeouts, making it well-suited for high-traffic websites and applications.