I’d highly recommend WP-CLI for such tasks. It is a tool that allows installation and configuration of WordPress on the command line.
What you are trying could easily be done:
wp core download
wp core config --dbname=<dbname> --dbuser=<dbuser> --dbpass=<dbpass>
wp core install --url=<url> --title=<site-title> --admin_user=<username> --admin_password=<password> --admin_email=<email>
There are a lot of other commands that you can use to customize your installation even further.
Related Posts:
- Automatically enable custom theme, plugins and default content on installation?
- Create a custom WP install with plugins, theme etc already installed?
- Shortest possible shell script to install WordPress on Nginx server?
- Repeatable configuration package
- One WordPress install serving multiple virtual hosts
- How to import WP XML file automatically on installation?
- How to use if condition to change $table_prefix in wp_config.php
- Automate specific steps on WordPress install
- On install, automatically create page and set it as front page
- Moving site made easier
- Moving from one WP site to a new WP site incrementally
- Is it ok to have one wordpress installation for server.com and www.server.com?
- Homebrew install specific version of formula?
- Conda version pip install -r requirements.txt –target ./lib
- Conda version pip install -r requirements.txt –target ./lib
- PackagesNotFoundError: The following packages are not available from current channels:
- Conda version pip install -r requirements.txt –target ./lib
- How can I create an MSI setup?
- Android Fastboot devices not returning device
- extconf failed, exit code 1 error when installing [Ruby on Rails] 5 on OS X Yosemite 10.10.5
- How can I convert my Java program to an .exe file?
- Add additional Network constants to wp-config.php dynamically
- Changing the wp db prefix after installation?
- Installation problems on a domain-name-less server
- How to delete the Hello Dolly plugin automatically?
- the correct order of manual install WP and SSL on server
- Automatically Creating Posts for Popular Forum Topics or Products [closed]
- How do I setup a WordPress site on a server before the domain is ready?
- Steps to debug on a blank screened wordpress install
- Moving WordPress from live to local server
- Is it possible to install WordPress within WordPress installation?
- WordPress package configuration in Ubuntu Server?
- Is there any plugin hook that I can latch onto once a site is freshly installed?
- No configuration file found and no installation code available. Exiting
- Quickest Way Besides FTP to Upload WordPress Files to a Web Server?
- Moving to directory creates path problems.. how to solve?
- Unable to install wordpress theme without ftp user & password
- WordPress installation does not get completed in WAMP server
- Novice WordPress Installation issues
- Automate dir and DB stack creation with WP-CLI
- Plugins try to install in old location [closed]
- You appear to have already installed WordPress. To reinstall please clear your old database tables first
- Reset generated wp-config.php with wp-cli
- “Deprecated: mysql_connect()” error when installing Roots Bedrock
- How do I install more than one WordPress blog on EC2?
- How to customize WordPress Plugin installation?
- How to create wordpress install template/image?
- Why does my localhost/wordpress not have a Link to Login Page
- WordPress composer issues
- Install WordPress with custom directory layout without breakting media upload
- What happen after new plugin get installed in term of permissions?
- WordPress in subfolder dont work
- How can I create a second multisite network in a subdirectory?
- Other than WP-CLI, is there a way to install WordPress via the command-line?
- Install with docker – can’t access port
- WP Installer Redirects to /wp-admin/core/install.php
- Installed WordPress Location
- Redirect to another page using contact form 7? [closed]
- Moving WordPress Site from MAMP to cPanel – How?
- What is a wordpress instance [closed]
- PuTTY is glitching out when I try to install wordpress
- muliple wordpress multisite installs on the same sever
- Moving WordPress from Root to a subfolder
- All links in WP blog redirect to main non-WP site
- WordPress manually installed on a remote server
- Reinstalling WordPress
- WordPress is already installed
- Installed WordPress without configuration screen
- Create a development subfolder for my WordPress website
- What’s the best way to install WordPress?
- Installing WAMP and WordPress: Visual Studio 2013 or 2012? [closed]
- WordPress in a Subdirectory
- Installing plugins on IIS-hosted site [closed]
- Transferring from “Populate” CMS to WordPress
- Is it bad practice to install WordPress by cloning from the official GitHub repo?
- wordpress icons and gui not display while installing wordpress http://server_ip /wp-admin/install.php
- Is there a way to check which files are part of vanilla WordPress?
- Fresh installation of WordPress on CentOS produces critical error during installation
- Trying to make my home-made WordPress website visible by public network
- Delete all php files except WordPress core files?
- my client’s site is confused between WordPress.com and WordPress.org I think
- My wordpress doesnt show up
- Error during installation
- Reporting Broken Theme event though upload was success
- Fastest way to install a multisite?
- Fatal error: Class ‘Requests_Utility_CaseInsensitiveDictionary’ not Found in WordPress
- redirects for removed/deleted woocommerce products
- Disable redirect to install.php
- Incorrect Blog Root
- Installing WordPress into a user directory without any admin privileges
- Can figure out how to get wordpress to go .com not .com/directory
- WP installed is asking to install if typed domain.com
- Trying to increase WP Memory Limit
- How does a WordPress installation become ‘alive’?
- WordPress 4.1 update broke theme
- Delete old thumbnail when updating new
- Correct folder & file permisson for WordPress
- Automate the installation of postfix on Ubuntu
- Backend working but not front
- Installing wordpress into the same directory as existing static html website