{"id":641,"date":"2011-11-02T17:30:45","date_gmt":"2011-11-03T00:30:45","guid":{"rendered":"http:\/\/blog.networkpresence.co\/?p=641"},"modified":"2011-11-02T23:30:34","modified_gmt":"2011-11-03T06:30:34","slug":"wordpress-site-in-5-mins-after-we-install-your-vps-with-cpanel","status":"publish","type":"post","link":"http:\/\/blog.networkpresence.co\/?p=641","title":{"rendered":"WordPress site in 5 mins after we install your VPS with cPanel"},"content":{"rendered":"<p>You&#8217;ve bought one of our <a href=\"VPS Plans\" title=\"Network Presence VPS Plans\" target=\"_blank\">VPS Plans<\/a> and asked us to install <a href=\"http:\/\/cpanel.com\" target=\"_blank\">cPanel<\/a> (you&#8217;ve bought your license for cPanel already from http:\/\/buycpanel.com, after we gave you your VPS&#8217; IP Address as soon as you paid) to your new VPS, as per our &#8220;<a href=\"Sysadmin As A Service\" title=\"Network Presence \"SaaS\"\" target=\"_blank\">Sysadmin As A Service<\/a>&#8221; capability.<\/p>\n<p>We&#8217;ve given you your VPS WHM URL (typically http:\/\/VPS-Hostname-or-IP-Addr\/whm) and the root user&#8217;s password so you can login to WHM to start, but you want a WordPress CMS site going ASAP. We understand and here&#8217;s how to have that WordPress Site going in less than 5 minutes from there.<\/p>\n<p>Start the Clock now!<\/p>\n<p>a) Create a User Account in the VPS&#8217; WHM via Account Functions -> Create a New Account<br \/>\nand filling in that page with the Sitename (created beforehand on the relevant name servers) and let&#8217;s call it &#8216;Customer-site-name&#8217; and nominate a cPanel Username (let&#8217;s call it &#8220;cpaneluser&#8221;) and set a password for it (use the Password Generator if you like).<\/p>\n<p>This creates the Apache &#8216;Virtual Host&#8217; for that site name &#038; the above URL and creates all the relevant users\/settings for cPanel, FTP, the directories etc. Once this is done you can FTP to the VPS&#8217; IP itself and login as FTP user: cpaneluser with the above passwd, and see the default cPanel User directory tree and FTP content for the website to the &#8216;www&#8217; directory once logged in by FTP.<\/p>\n<p>b) With the cPanel User created above (cpaneluser) you can login to the cPanel as that user &#038; passwd to perform actions relevant to that site<br \/>\nat the URL: https:\/\/VPS-Hostname-or-IP-Addr:2083<\/p>\n<p>In cpaneluser&#8217;s cPanel you can setup the Database for WordPress via the &#8220;MySQL Databases&#8221; link on the user&#8217;s cPanel page.<\/p>\n<p>Create a MySQL User for the DB (eg: username: cpaneluser_wpuser) and gave it a MySQL Password and click &#8220;Add User&#8221;.<\/p>\n<p>Then back on the MySQL Databases page, create a new DB (eg: database: cpaneluser_wpdb) by entering the DB name &#038; click &#8220;Create Database&#8221;, then go back to the main MySQL Databases page, which now lists our created MySQL User &#038; DB.<\/p>\n<p>Then Add the (MySQL) User to the Database (on the main MySQL Database page, below the Add New User section) by selecting the relevant user &#038; DB and clicking &#8220;Add&#8221; and giving that user &#8220;All Privileges&#8221; (on the MySQL Account Maintenance page that comes up from clicking the above &#8220;Add&#8221; button) and clicking &#8220;Make Changes&#8221; to add that user to have all privs for that DB.<\/p>\n<p>PS: All this is on WordPress&#8217; site, see http:\/\/codex.wordpress.org\/Installing_WordPress#Using_cPanel<\/p>\n<p>c) To get the WordPress content files onto the site&#8217;s &#8216;www&#8217; directory, download the latest WordPress from http:\/\/wordpress.org\/download (wordpress-3.2.1.zip) and use any FTP Client software (eg: Filezilla) to upload that zip file to the server (FTP to your VPS&#8217; IP Addr or Hostname as FTP user: cpaneluser with its password set in WHM) into the &#8216;www&#8217; directory.<\/p>\n<p>d) In the cPanel of the cpaneluser on the VPS, browse to the &#8220;File Manager&#8221; page &#038; select the uploaded file (wordpress.zip (say) after clicking &#8216;reload&#8217; to see it listed) and click &#8216;Extract&#8217; and the default destination directory is fine.<\/p>\n<p>The files in the .zip file are in a directory named &#8216;wordpress&#8217;, which will be created in the &#8216;www&#8217; (aka &#8216;public_html&#8217;) folder on the server (click &#8216;reload&#8217; to see changes after unzip if you need to).<br \/>\nYou can use &#8216;select all&#8217; on all files &#038; dirs in the &#8216;wordpress&#8217; folder in the File Manager and then &#8216;Move File&#8217; and enter the top level folder name of the web content (\/public_html\/) to move all those files to the top-level DocumentRoot folder (&#8216;www&#8217; aka &#8216;\/public_html&#8217;).<\/p>\n<p>e) Configure the now installed WordPress to know its site name and DB access details, as per: http:\/\/codex.wordpress.org\/Installing_WordPress#Famous_5-Minute_Install<\/p>\n<p>Meaning that in the File Manager we select the file &#8216;wp-config-sample.php&#8217; and click the &#8216;copy&#8217; button and enter the destination filename of &#8216;wp-config.php&#8217;, then click &#8216;reload&#8217; in the File Manager and select the &#8216;wp-config.php&#8217; file and click the &#8216;Edit&#8217; button to enter a web-based file editor on the wp-config.php file.<\/p>\n<p>Set the relevant DB &#8216;defines&#8217; in that file using the Editor, as per below, using the DB info from using cPanel, above:<\/p>\n<p><code>define('DB_NAME', 'cpaneluser_wpdb');<br \/>\ndefine('DB_USER', 'cpaneluser_wpuser');<br \/>\ndefine('DB_PASSWORD', 'hereeisapassword');<br \/>\ndefine('DB_HOST', 'localhost');<br \/>\n<\/code><br \/>\nJust below those DB settings, change the phrase <\/p>\n<blockquote><p>&#8216;put your unique phrase here&#8217;<\/p><\/blockquote>\n<p>for the relevant Key \/ Salt \/ Auth defines to whatever you&#8217;d like.<\/p>\n<p>That&#8217;s all the config needed to get to the WordPress Install pages themselves, so click the &#8220;Save Changes&#8221; button in the file editor page and close the editor.<\/p>\n<p>f) Browse to http:\/\/Customer-site-name\/wp-admin\/install.php to continue the WordPress setup.<\/p>\n<p>Stop the Clock! Easily done (including WordPress download) in under 5 minutes from VPS handover.<\/p>\n<p>I leave it to you from here for that WordPress site&#8217;s specific setup, but <a href=\"http:\/\/netpr.es\/contactus\">contact us<\/a> as a Network Presence customer if you need help inside WordPress itself.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You&#8217;ve bought one of our VPS Plans and asked us to install cPanel (you&#8217;ve bought your license for cPanel already from http:\/\/buycpanel.com, after we gave you your VPS&#8217; IP Address as soon as you paid) to your new VPS, as &hellip; <a href=\"http:\/\/blog.networkpresence.co\/?p=641\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,70],"tags":[82,78,9,106],"class_list":["post-641","post","type-post","status-publish","format-standard","hentry","category-network-presence","category-sales","tag-cpanel","tag-sysadmin","tag-vps","tag-wordpress"],"_links":{"self":[{"href":"http:\/\/blog.networkpresence.co\/index.php?rest_route=\/wp\/v2\/posts\/641","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.networkpresence.co\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.networkpresence.co\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.networkpresence.co\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.networkpresence.co\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=641"}],"version-history":[{"count":10,"href":"http:\/\/blog.networkpresence.co\/index.php?rest_route=\/wp\/v2\/posts\/641\/revisions"}],"predecessor-version":[{"id":651,"href":"http:\/\/blog.networkpresence.co\/index.php?rest_route=\/wp\/v2\/posts\/641\/revisions\/651"}],"wp:attachment":[{"href":"http:\/\/blog.networkpresence.co\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=641"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.networkpresence.co\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=641"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.networkpresence.co\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=641"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}