hooglke.blogg.se

How to download and install wordpress through command line
How to download and install wordpress through command line




how to download and install wordpress through command line

$ sudo cp -R wordpress /var/www/html/īe sure the assign the necessary directory ownership and permissions as follows: $ sudo chown -R apache:apache /var/www/html/wordpress Next, copy the WordPress directory to the document root. Save the changes and exit the configuration file.

#How to download and install wordpress through command line password#

Modify the values to correspond to your database name, database user, and password as indicated in the image shown. $ cp wordpress/wp-config-sample.php wordpress/wp-config.php Next, we are going to copy the wp-config-sample.php file to wp-config.php from where WordPress derives its base configuration. Next, extract the tarball file: $ tar -xvf To download WordPress, use the wget command to download the binary file from the official site. At the time of publishing this guide, the latest WordPress version is 5.9.1. With the WordPress database in place, the next course of action is to download and configure WordPress. FLUSH PRIVILEGES Ĭreate WordPress Database Step 2: Download and Install WordPress in RHEL Save the changes and exit the MariaDB prompt. GRANT ALL ON wordpress_db.* TO IDENTIFIED BY ' StrongPassword' Once on the MariaDB shell, create the database and database user and grant all the privileges to the database user. So, log in to the MariaDB database: $ sudo mysql -u root -p We will begin by creating the database for the WordPress installation, which is used to store all the files during and after the installation. With the requirements out of the way, let us get started! Step 1: Creating a WordPress Database

how to download and install wordpress through command line

You can install the latest PHP version using the Remi repository instead. The default AppStream repository only provides PHP 7.2 which is insecure and no longer supported. The latest version of WordPress requires PHP 7.4 or higher.






How to download and install wordpress through command line