- The single entrypoint of all incoming traffic
- It handles the TLS/SSL (HTTPS) protocol. It does not process PHP code itself it "passes the torch" to PHP scripts via the FastCGI protocol.
- The dynamic engine
- PHP-FPM (FastCGI Process Manager) listens for requests sent by Nginx, executes the WordPress PHP code, and generates the final content.
- Structured storage
- It stores everything that isn't a "physical" file: user accounts, post content, comments, and site settings.
#to build or run all containers
make
# to stop all containers
make down
# to stop and delete all volumes
make clean
# to remove all containers and volumes
make fclean
# to remove everything and build right after
make re
- When all containers are run you can go to
aroualid.42.fr.
- As an admin user you can go to
aroualid.42.fr/wp-adminto connect and do this :- Modify the website.
- Create new posts.
- Approve or disapprove comments posted by non-admin users.
- As a non-admin user you can go to
aroualid.42.fr/wp-adminand connect to this:- Create new posts.
- Post comments under posts.
- As a guest user you can go to
aroualid.42.frand : - Post comments under posts.
- To login to the database you can use the comman line
sudo docker exec -it srcs-mariadb-1 mysql -u (your mariaDB username) -pand after type you mariaDB password.
- Useful commands to navigate through the database:
USE database_name;— Selects the specific database you want to work with.SHOW TABLES;— Lists the tables, sequences, and views in the current database.SELECT * FROM wp_posts;— Displays a table of all rows and columns from the specified table. Here, we use the*wildcard to select everything fromwp_posts.
- To locate and manage credentials you have to modify the
.envfile.
- For checking the status of services you can use the
Docker pscommand.