WordPress Setup Script
Copyright holder: AlexFrostType: Bash script
Supported distributions:
Ubuntu LTS 24.04
This Bash script is designed to set up a complete LAMP stack (Apache, MariaDB, PHP) and install WordPress automatically, making the deployment process quick and effortless.
Key features
- Full LAMP stack installation: Installs Apache, MariaDB, and PHP with common extensions.
- Automatic WordPress setup: Downloads the latest version, configures the database, and sets up wp-config.php.
- Database creation: Automatically creates a WordPress database and user with all required privileges.
- Clean installation: Removes default Apache files and any previous WordPress installation before setup.
- Ready to use: After running, you can immediately open your site in the browser and finish WordPress configuration via the web interface.
How to Use
Make the script executable:chmod +x wp.sh.x
./wp.sh.x
http://<server-ip-or-domain>/wp-admin