Unable to install wordpress

Asked 2 years ago, Updated 2 years ago, 447 views

When I try to install wordpress, I get the following error:

I'm using a mac, and I'm operating at the terminal, and I want to display the phpMyAdmin home in the end.What should I do?

error message

 Unable to write to wp-config.php file.
You can manually create wp-config.php and paste the following text into it:
<?php
/**
* Basic WordPress Configuration
*
* This file is used by the Create wp-config.php wizard during installation.
* Copy this file under the name "wp-config.php" without going through the wizard.
* You can edit it directly and enter a value.
*
* This file contains the following settings:
*
* * MySQL Settings
* * private key
* * Database table prefix
* * ABSPATH
*
* @link https://ja.wordpress.org/support/article/editing-wp-config-php/
*
* @package WordPress
*/

// Note:
// Do not edit this file in Windows Notepad!
// A text editor that works fine
// (See http://wpdocs.osdn.jp/%E7%94%A8%E8%AA%9E%E9%9B%86#.E3.83.86.E3.82.AD.E3.82.B9.E3.83.88.E3.83.87.E3.82.A3.82.E3.82.
// Be sure to use and save UTF-8 without BOM (UTF-8N).

// **MySQL Settings - Get this information from your host location. ** //
/** Database Name for WordPress */
define('DB_NAME', 'reo');

/** MySQL Database Username*/
define('DB_USER', 'reo');

/** MySQL Database Password*/
define('DB_PASSWORD', '66Spbftehrs9jDda#');

/** MySQL Hostname*/
define('DB_HOST', 'localhost');

/** Database character set when creating database tables */
define('DB_CHARSET', 'utf8mb4');

/** Database matching order (mostly not required to change) */
define('DB_COLATE', ');

/**#@+
* authentication unique key
*
* Change each to a different (unique) string.
* It can also be automatically created from {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org Private Key Service}.
* You can change it at any time later to disable all existing cookies.This forces all users to log in again.
*
* @since 2.6.0
*/
define('AUTH_KEY', '+_p to MiA>lgQ(Z<6#V]Z$)|8iO9}9:s4U$tVjKC+/jHgM^$0K9D]I3c!EbNs5p?9[');
define('SECURE_AUTH_KEY', '39t;OdS4fq]_5UHjw0L/4SrWpmZ.IB0DlBD:2!zt)15!tRv to F(5DMVTdH&hdB.i');
define('LOGGED_IN_KEY', '~8GE:5_*zt6RsRFxInEJ$dE*4yfL/fujlm/^xExN%HL($ta{j;3F_!xuTI0}bcs');
define('NONCE_KEY','Sasy@JE;'OQHFs1r9(mhk$k@G:Zp;2y%@BEoXhuTMvK>{lqb-fH]Iz;-jIQev-u');
define('AUTH_SALT',';UIh4enWv,s^Fqli2D6{=LoB:m,UJ}|qM|3-r)/}nD;m9!FtA]9>cgK?[i)Cl`R6');
define('SECURE_AUTH_SALT', 'gUFHe:dL6}z$S=|+e~]H2o3onmZ3/6n4y=+Ync^Dp?SgJV8Xp`p=(34B2i>x-3');
define('LOGGED_IN_SALT','<p`Q){&2.ORPA[?{|6)8g38sU1L x %6O, `1_T^|h+]ErEBeAefx6P:Ku}U=I{jq|');
define('NONCE_SALT','OQ4UqOSN#)GE)o]_PYKF9]dj%U#K4yY8A8_ZPj<>7}4mp/3%YItF:/U0e!BJ}X');

/**#@-*/

/**
* WordPress Database Table Prefixes
*
* By giving each one a unique prefix, you can create multiple WordPresss in a single database.
* You can install it.Use only half-width alphanumeric characters and underscores.
*/
$table_prefix='wp_';

/**
* Dear Developer: WordPress Debug Mode
*
* If this value is true, a notice will be displayed during development.
* We strongly recommend that theme and plug-in developers use this WP_DEBUG in their development environment.
*
* See the documentation for additional constants available for debugging.
*
* @link https://ja.wordpress.org/support/article/debugging-in-wordpress/
*/
define('WP_DEBUG', false);

/* So much for editing! Enjoy WordPress publishing.*/

/** Absolute path to the WordPress directory.*/
if(!defined('ABSPATH'){
define('ABSPATH',__DIR__.'/');
}

/** Setup WordPress vars and included files.*/
require_once ABSPATH. 'wp-settings.php';

macos wordpress phpmyadmin

2022-09-30 21:50

1 Answers

Look for a file called wp-config.php (you may have more than one, so look for them all)

Check the permissions of these files to see if they are read-only.If the permission is read-only, change it to writable.This should solve the problem of not being able to write wp-config.php

Maybe it's because of permission in the folder containing wp-config.php.
If making wp-config.php writable does not resolve the issue, check the permissions in the folder as well.


2022-09-30 21:50

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.