Installing &Setting UpWordPressOn a new hosted serverWil Brown
A WordPress InstallationConsists of 2 parts 1. The "core" files = they do stuff 2. The database = it stores stuff (except for media - images, video, pdf etc.)
Choosing A Hosting PackageOperating System? ● Linux = standard & cheaper ● Windows = icky to configure & expensiveDatabase Support? ● You need at least 1 database (mySQL) ● Ultra cheapo packages may not offer DBShared or Decicated/Cloud?● Shared = cheap & slow (risky shared sites)● Dedicated/Cloud = more expensive but scaleable
Two Methods of InstallingWordPress1. Manual - well do this one first to show you how WordPress hangs together2. Script - semi-automatedWordPress still needs to be configured afterinstallation.
Manual: Create a Database1. Create a MySQL DBDB created but no user is yet assigned to itJot down DB name
Manual: Create a Database2. Create a user with password to access thedatabaseJot down DB username and password
Manual: Create a Database3. Assign user to the DB
Manual: Create a Database4. Assign user DB access privilegesCheck all options if youre not sure
Manual: Create a DatabaseUser is now assigned to the DBYou should now have a note of: a. Database Name b. Database User Name c. Database User Password
Manual: Upload WP Core Files● Download latest WP zip from wordpress.org● Unzip on local. Creates a wordpress folder● Open wordpress folder and zip up contents again (stops creation of wordpress folder on host)● Upload zip to hosting package and unzip in either root or a subfolderNote: (ftp/file manager) - unzip may not be avail. Unzip on local and FTP● Root or sub folder? ○ Main site = root folder ○ Multiple installations = sub folder
Manual: Create & Edit wp-config.php● Find the file wp-config-sample.php● Rename it to wp-config.php● Edit the file wp-config.php● Change these lines: ○ define(DB_NAME, database_name_here); ○ define(DB_USER, database_user_name_here); ○ define(DB_PASSWORD, password_here); ○ define(DB_HOST, localhost); ■ localhost is the most common DB_HOST but it can be a different name. Check with your hosting company if unsure● Save changes
Manual: WordPress InstallationVisit your site. The browser will open the WPinstallation/setup process.● Site Title● Admin Username● Admin Password● Admin Email Address● Include in Search Engines● Hit "Install Wordpress"Done!
InstallingWordPressUsing a HostsScriptFantastico, Softaculous
Script: Installation & Setup● Look for: CGI Scripts, Fantastico, Softaculous, Web Apps etc. and click on WordPress
Script: Fantastico Setup your domain name the folder to install into (leave blank for root) dont use "admin" or "root" choose a good quality password your nickname system email address i.e. "From:" title of site description of site
Scripts: Fantastico Setup Its handy to jot down your MySQL DB user and name but not needed to complete installation All done. Youre given the admin username and password again as well as a link to the login area.
Basic WordPress Configuration● Update Authentication Unique Keys and Salts in wp-config.php ○ Visit: https://api.wordpress.org/secret-key/1.1/salt/ ○ Copy code block and replace default one● Permalinks/Friendly URLs ○ set to /%postname%/ for better SEO● Install Firewall 2 plugin DONE!
Questions? Contact Info: Wil Brown @GravitationalFX www.gravitationalfx.com