1
resposta

SETUP CONFIG

Gente, ja criei o banco de dados com meu nome, e depois na hora de configurar por aqui "http://localhost/wordpress/wp-admin/setup-config.php?step=1" quando eu clico em submit ele aparece isso aqui:

Sorry, but I can’t write the wp-config.php file.

You can create the wp-config.php file manually and paste the following text into it. <?php /**

  • The base configuration for WordPress *
  • The wp-config.php creation script uses this file during the
  • installation. You don't have to use the web site, you can
  • copy this file to "wp-config.php" and fill in the values. *
  • This file contains the following configurations: *
    • MySQL settings
    • Secret keys
    • Database table prefix
    • ABSPATH *
  • @link https://codex.wordpress.org/Editing_wp-config.php *
  • @package WordPress */

// ** MySQL settings - You can get this info from your web host ** // /** The name of the database for WordPress */ define( 'DB_NAME', 'marcelo' );

/** MySQL database username */ define( 'DB_USER', 'root' );

/** MySQL database password */ define( 'DB_PASSWORD', '' );

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

/** Database Charset to use in creating database tables. */ define( 'DB_CHARSET', 'utf8mb4' );

/** The Database Collate type. Don't change this if in doubt. */ define( 'DB_COLLATE', '' );

/**#@+

  • Authentication Unique Keys and Salts. *
  • Change these to different unique phrases!
  • You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
  • You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again. *
  • @since 2.6.0 / define( 'AUTH_KEY', 'iMpu;@D7AKE=WZX|WG$:BN6(DfJkSkVnzaFa@R1=c%RUGo-X]b>dS+j?&<|#xt9' ); define( 'SECURE_AUTH_KEY', 'BL<z$,I#>zLOL{ZcP!;C/5t8G~,$S&!;w)aFC3g];0<[DzoQUXocjLk7xo9R?coa' ); define( 'LOGGED_IN_KEY', 'yj~nwcMgJ&g}|X9Dt3S:YT{i($p/j.;Vw(,KgdJXkfzQ>4DWZ@+Rl1~N{z<oNEc}' ); define( 'NONCE_KEY', 'H3g[hZ6!t)2k{U3v(Z,p{O8$@sG=@reQ8LAYL_)(||)`>]tl2wsi]!>s/:+sL^' ); define( 'AUTH_SALT', 'pEs:mx+O Lrk8Dm[Iy22CxIO|ejB8g5rdZ?&,mUy&Hl$,-5a>F6B%)bF+5R:0z2' ); define( 'SECURE_AUTH_SALT', '& ;?N%vc*;keD0[[BFNK?&)x5&co<k_e$RwtOYtpD,LA9^B0Pif61c +9WitrV' ); define( 'LOGGED_IN_SALT', '-9tF+oy4#FuWz;6by@o!N]Jl-kp#A;re:!Lc=n-;NF&F7LP(O{<xFtPURGzsE1B' ); define( 'NONCE_SALT', 'f0HX8Y<T^3J}Xg.#wqf0%p}xY%e}y@{u)}d+gHU|<TRjo*tAdpHJ_V>7pPcd`Z' );

/*#@-/

/**

  • WordPress Database Table prefix. *
  • You can have multiple installations in one database if you give each
  • a unique prefix. Only numbers, letters, and underscores please! */ $table_prefix = 'wp_';

/**

  • For developers: WordPress debugging mode. *
  • Change this to true to enable the display of notices during development.
  • It is strongly recommended that plugin and theme developers use WP_DEBUG

O que eu faço ?

/* That's all, stop editing! Happy publishing. */

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

/** Sets up WordPress vars and included files. */ require_once( ABSPATH . 'wp-settings.php' );

1 resposta

Oi Marcelo, o WordPress não está conseguindo criar o arquivo wp-config.php sozinho por que não tem permissão para criar o arquivo. Por isso, ele sugere que você crie o arquivo manualmente.

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software