// Check for the required PHP version and for the MySQL extension or a database drop-in. wp_check_php_mysql_versions(); // Standardize $_SERVER variables across setups. wp_fix_server_vars(); define( 'WP_CONTENT_DIR', ABSPATH . 'wp-content' ); require_once ABSPATH . WPINC . '/functions.php'; $path = wp_guess_url() . '/wp-admin/setup-config.php'; // Redirect to setup-config.php. if ( ! str_contains( $_SERVER['REQUEST_URI'], 'setup-config' ) ) { header( 'Location: ' . $path ); exit; } wp_load_translations_early(); // Die with an error message. $die = '
' . sprintf(
/* translators: %s: wp-config.php */
__( "There doesn't seem to be a %s file. It is needed before the installation can continue." ),
'wp-config.php'
) . '
' . sprintf(
/* translators: 1: Documentation URL, 2: wp-config.php */
__( 'Need more help? Read the support article on %2$s.' ),
__( 'https://developer.wordpress.org/advanced-administration/wordpress/wp-config/' ),
'wp-config.php'
) . '
' . sprintf(
/* translators: %s: wp-config.php */
__( "You can create a %s file through a web interface, but this doesn't work for all server setups. The safest way is to manually create the file." ),
'wp-config.php'
) . '