sudo dnf install wget php-mysqlnd h

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 3

sudo dnf install wget php-mysqlnd httpd php-fpm php-mysqli mariadb105-server php-

json php php-devel -y

sudo wget https://wordpress.org/latest.tar.gz

tar -xzf latest.tar.gz

sudo service MariaDB start

sudo MySQL -u root -p

CREATE USER 'admin'@'localhost' IDENTIFIED BY 'Admin@123';

CREATE DATABASE dbwordpress;

SHOW DATABASES;

GRANT ALL PRIVILEGES ON dbwordpress.* TO 'admin'@'localhost';

FLUSH PRIVILEGES;

EXIT

cd wordpress

cp wp-config-sample.php wp-config.php

nano wp-config.php

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

/** Database username */


define( 'DB_USER', 'admin' );

/** Database password */


define( 'DB_PASSWORD', 'Admin@123' );

/** Database hostname */


define( 'DB_HOST', 'localhost' );

/** Database charset to use in creating database tables. */


define( 'DB_CHARSET', 'utf8' );

/** 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', 'y9g5`fS4{cP8+)qEdq^uG#wyu3-aX`cHHkx vd[l?]@=&|Ng-W~nm -
A1fM`8]!V');
define('SECURE_AUTH_KEY', 'Oi{`jQW6uqkT6N(!4sYOY#|6^2Zgx0I}2oNl;PItY!Wp=Qa
s+-;AG:TVlf_qq`_');
define('LOGGED_IN_KEY', '?:` b#TZp5 r)HQ]C+R!Z|ykY^@(;+fK<A5p=s
ezH6^A,>!/O}6[-,R2.7*UENU');
define('NONCE_KEY', 'm9#d0 &Fb#O(=+R;qi;WO*.j$in~J=jIS+W3)s;;jF-TI_<`o~s6T
9NU/K.I^U~');
define('AUTH_SALT', '90sJ-fn-~iq5.X8g#4_P:@3 zV.@%eS|NHAPT?su^fQb)edd%^r|
{uXMP,d!K Uf');
define('SECURE_AUTH_SALT', 'j&gR<<[D@/{JT2&bzz,yaDE|$Ge-k9,wy
3.r+)*+fJhvd@z}okwTRX?SQa9o/hE');
define('LOGGED_IN_SALT', '`lv^2Y=^<K9+IavE&p{%XmkQvtFfzKNUNYj,|n
Wh<N!}b4]+lLaeH8M5_#TUIX$');
define('NONCE_SALT', 'P-KH=SjF/Sm|*xnZ`)lJ>-
OtL&vZ^<36STIXUytN]S )&J2cA@Ghn+9Ylu&Q+`5+');
/**#@-*/

/**
* 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
* in their development environments.
*
* For information on other constants that can be used for debugging,
* visit the documentation.
* @link https://wordpress.org/documentation/article/debugging-in-wordpress/
*/
define( 'WP_DEBUG', false );

/* Add any custom values between this line and the "stop editing" line. */

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

/** Absolute path to the WordPress directory. */


if ( ! defined( 'ABSPATH' ) ) {
define( 'ABSPATH', __DIR__ . '/' );
}

/** Sets up WordPress vars and included files. */


require_once ABSPATH . 'wp-settings.php';

sudo cp * /var/www/html/
sudo nano /etc/httpd/conf/httpd.conf

allowoverrid All

sudo dnf install php-gd

sudo systemctl restart httpd

open public ip

user harsh123
pass PB8)6dh$yDdEyL%NX(
email :info.triocoders@gmail.com

You might also like