Wordpress `wp-config.php` comman conf

Posted . Visible to the public.
error_reporting(E_ERROR);

define('WP_ENV', 'production');
define('WP_SITEURL', 'http://website.com/');
define('WP_HOME', 'http://website.com/');

define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);

wp config create --dbname=wp_db --dbuser=root --dbpass=root
wp core download
wp config create --dbname=wp_db --dbuser=root --dbpass=root
wp core install --url=http://website.com/ --title="Website on WP" --admin_user=admin --admin_password="admin" --admin_email="admin@website.com"

wp theme activate website_theme

wp search-replace 'https://wordpress.com' 'http://website.com'

Tushar
Last edit
Tushar
Posted by Tushar to Tushar's deck (2020-09-11 16:50)