Obtaining WordPress installation files and deploying its whole folder structure on macOS

201014
Use your browser on your Mac, go to the official WordPress site, and get/download the latest version of WordPress:
https://wordpress.org/




Into your home directory, you can create a new temporary folder, name it e.g. tmp1, and save the .tar compressed file there.
Alternatively, you can use your terminal and use either the curl or wget command to get the .zip file:
$ mkdir tmp1 $ cd tmp1 $ curl -O https://wordpress.org/latest.tar.gz or $ wget https://wordpress.org/latest.tar.gz
➜ ~ mkdir tmp1 ➜ ~ cd tmp1 ➜ tmp1 ➜ tmp1 ➜ tmp1 curl -O https://wordpress.org/latest.tar.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 12.3M 100 12.3M 0 0 821k 0 0:00:15 0:00:15 --:--:-- 1915k ➜ tmp1 ➜ tmp1 ls -al total 31336 drwxr-xr-x 4 zp staff 128 Jan 17 21:27 . drwxrwxrwx+ 141 zp staff 4512 Jan 17 21:28 .. -rw-r--r--@ 1 zp staff 6148 Jan 17 21:28 .DS_Store -rw-r--r-- 1 zp staff 15422346 Jan 17 21:26 latest.tar.gz ➜ tmp1
Into the tmp1, use the tar command to extract the compressed file and create the WordPress directory structure:
➜ tmp1 tar -xvf latest.tar.gz ➜ tmp1 ls -al total 31336 drwxr-xr-x 5 zp staff 160 Jan 17 21:34 . drwxrwxrwx+ 141 zp staff 4512 Jan 17 21:35 .. -rw-r--r--@ 1 zp staff 6148 Jan 17 21:28 .DS_Store -rw-r--r-- 1 zp staff 15422346 Jan 17 21:26 latest.tar.gz drwxr-xr-x 21 zp staff 672 Dec 9 00:13 wordpress ➜ tmp1
The whole WordPress folder/file structure is located in the wordpress folder. We can use the tree command to see it:
$ tree -L 2
➜ tmp1 tree -L 2 . |-- latest.tar.gz `-- wordpress |-- index.php |-- license.txt |-- readme.html |-- wp-activate.php |-- wp-admin |-- wp-blog-header.php |-- wp-comments-post.php |-- wp-config-sample.php |-- wp-content |-- wp-cron.php |-- wp-includes |-- wp-links-opml.php |-- wp-load.php |-- wp-login.php |-- wp-mail.php |-- wp-settings.php |-- wp-signup.php |-- wp-trackback.php `-- xmlrpc.php 4 directories, 17 files ➜ tmp1
Check for the $wp_version inside the version.php into the wp-includes folder, using the grep command.
$ grep wp_version ./wordpress/wp-includes/version.php
➜ tmp1 grep wp_version ./wordpress/wp-includes/version.php * @global string $wp_version $wp_version = '5.6'; ➜ tmp1
You can also check the contents of the whole file:
$ cat ./wordpress/wp-includes/version.php
➜ tmp1 cat ./wordpress/wp-includes/version.php <?php /** * WordPress Version * * Contains version information for the current WordPress release. * * @package WordPress * @since 1.1.0 */ /** * The WordPress version string. * * @global string $wp_version */ $wp_version = '5.6'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * * @global int $wp_db_version */ $wp_db_version = 49752; /** * Holds the TinyMCE version. * * @global string $tinymce_version */ $tinymce_version = '49110-20201110'; /** * Holds the required PHP version. * * @global string $required_php_version */ $required_php_version = '5.6.20'; /** * Holds the required MySQL version. * * @global string $required_mysql_version */ $required_mysql_version = '5.0'; ➜ tmp1
Finally, you can take a look into the readme.html file by using a browser:

There you can also find instructions for the ‘famous 5 minutes installation’ as well as the system requirements & recommendations for the version you have just downloaded:

Now, you can use the wordpress folder/files (copy or move them) and create your own new sites!
NB: In this post of the present site, you can see how to set up a brand-new new site.
That’s it!
Thank you for reading!