{"id":1,"date":"2011-08-23T03:49:36","date_gmt":"2011-08-23T03:49:36","guid":{"rendered":"http:\/\/flenniken.net\/blog\/?p=1"},"modified":"2012-01-26T20:50:25","modified_gmt":"2012-01-27T04:50:25","slug":"hello-world","status":"publish","type":"post","link":"https:\/\/flenniken.net\/blog\/hello-world\/","title":{"rendered":"Install WordPress on 1and1"},"content":{"rendered":"<p>I just set up WordPress and I figured my first post would be about installing it on 1and1.<\/p>\n<p>WordPress blogging software is used by 15% of the top million websites, up about 6% this year! WordPress is free open source software and it has an active community of developers. You can select from hundreds of pre-made templates and selecting one for your site only takes a couple of clicks.<\/p>\n<p>1and1 is a popular and cheap web hosting service. A basic plan is only $5.00 a month.<\/p>\n<p>These instructions were tested on a local Ubuntu 10.4 system installing on 1and1 basic plan with Linux hosting. Similar steps apply if you are running a local Windows system. You can use the same steps for 1and1 advanced and business plans, or there are alternate steps, see below. If you have the Windows based package, 1and1 provides a way for you to switch.<\/p>\n<p>Basically to install WordPress you download WordPress to your system, create a database on 1and1, edit one configuration file, then upload all the files to 1and1. Here are the details.<\/p>\n<h2>Download WordPress<\/h2>\n<p>The latest WordPress comes as a zip file from wordpress.org. To download WordPress open a terminal window and type the following:<\/p>\n<p><strong>cd<\/strong><br \/>\n<strong><\/strong><strong>cd tmp<\/strong><br \/>\n<strong>wget http:\/\/wordpress.org\/latest.zip<\/strong><\/p>\n<p>Now unzip the file. It will create a folder called wordpress inside your tmp folder. Then delete the zip file to save space.<\/p>\n<p><strong>unzip latest.zip<\/strong><br \/>\n<strong>rm latest.zip<\/strong><\/p>\n<p>Now rename the wordpress folder to \u201cblog\u201d (or whatever you want) and rename the wp-config-sample.php file to wp-config.php. The name you choose is the name that users will use to get to your blog. If you use \u201cblog\u201d for example, the url will be http:\/\/sample.com\/blog\/.<\/p>\n<p><strong>mv wordpress blog<\/strong><br \/>\n<strong>cd blog<\/strong><br \/>\n<strong>mv wp-config-sample.php wp-config.php<\/strong><\/p>\n<h2>Find your 1and1 domain name and user name<\/h2>\n<p>Your domain name and user name are needed to copy files to 1and1.\u00a0 To find out what they are follow these steps:<\/p>\n<ul>\n<li>In your browser go to <a href=\"http:\/\/1and1.com\/\">http:\/\/1and1.com\/<\/a><\/li>\n<li>Click on <em>Customer Login<\/em> (near the top right of the page) and enter your credentials.<\/li>\n<li>Click on your package.<\/li>\n<li>Find your .us domain name. It will be near the top and it looks something like: <strong>s123456789. onlinehome.us<\/strong><\/li>\n<\/ul>\n<p><span style=\"color: #0000ff;\">Note:<\/span> <em>I could not figure out how to select the domain name for copy and paste. So instead, I selected everything on the page with Ctrl+A, then pasted that into a text editor. There I could select the domain name.<\/em><\/p>\n<p>While you are still logged into 1and1 find your user name and set up a password for it.<\/p>\n<ul>\n<li>Click on <em>Domains &amp; Web Space<\/em>.<\/li>\n<li>Click on <em>FTP Account<\/em>.<\/li>\n<li>Find your user name. It will look something like: <strong>u12345678<\/strong>.<\/li>\n<li>Edit the entry and add a password, if not already done.<\/li>\n<\/ul>\n<p><span style=\"color: #0000ff;\">Note: <\/span><em><span style=\"color: #000000;\">Don\u2019t add a password if you share the account with someone else and it has already has been set up, because they will no longer be able to ftp. Instead ask the other user for the ftp password.<\/span><\/em><\/p>\n<p><span style=\"color: #0000ff;\">Note: <\/span><em><span style=\"color: #000000;\">The password for SSH and the password for FTP are identical. If you change one, it changes the other.\u00a0<\/span><\/em><em><span style=\"color: #000000;\"> The password to log into your 1and1.com account is different than the SSH and FTP one.<\/span><\/em><\/p>\n<h2>Create WordPress Database<\/h2>\n<p>While you are still connected to 1and1 create the database for WordPress. Write down the database information for use when editing wp-config.php later. Here are the steps:<\/p>\n<ul>\n<li>Click on <em>MySQL Database Set Up and Configuration<\/em>.<\/li>\n<li>Click on <em>New Database<\/em> .<\/li>\n<li>Write down the database name, host name, user name and database password. They should look similar to:<\/li>\n<\/ul>\n<ol>\n<li>db123456789 \u2014 database name<\/li>\n<li>db123456789.db. 1and1.com \u2014 host name<\/li>\n<li>dbo123456789 \u2014 user name<\/li>\n<li>mydbpassword \u2013 database password<\/li>\n<\/ol>\n<p>You are done with the 1and1 web interface.<\/p>\n<h2>Edit wp-config.php<\/h2>\n<p>Edit wp-config.php using your favorite text editor changing the database name, user name, remote host and database password to the names you just wrote down in the last step. Also change the salt values to unique values.<\/p>\n<p><strong>gedit wp-config.php<\/strong><\/p>\n<p>The lines should look something like this:<\/p>\n<blockquote><p>define(&#8216;DB_NAME&#8217;, &#8216;db123456789&#8217;);<br \/>\ndefine(&#8216;DB_USER&#8217;, &#8216;dbo123456789&#8217;);<br \/>\ndefine(&#8216;DB_PASSWORD&#8217;, &#8216;mydbpassword&#8217;);<br \/>\ndefine(&#8216;DB_HOST&#8217;, &#8216;db123456789.db. 1and1.com&#8217;);<\/p><\/blockquote>\n<p>For the salt values change the strings \u201cput your unique phrase here\u201d to something else.<\/p>\n<blockquote><p>define(&#8216;AUTH_KEY&#8217;, &#8216;12345 zzxcv asdf qwerty zxcv&#8217;);<br \/>\ndefine(&#8216;SECURE_AUTH_KEY&#8217;, &#8216;put 1234 unique phrase 1235&#8217;);<br \/>\n\u2026<\/p><\/blockquote>\n<h2>Upload Files to 1and1<\/h2>\n<p>Now all the files are configured and ready to upload to 1and1.<\/p>\n<p>The 1and1 basic plan supports sftp but not ssh or scp. Using the command line with sftp is too tedious. Instead upload the blog folder to 1and1 using Filezilla. Filezilla is a free GUI based program for ftp. For Windows go to <a href=\"http:\/\/filezilla-project.org\/\">http:\/\/filezilla-project.org\/<\/a> and download the Filezilla client, for Ubuntu, Filezilla can be downloaded and installed with:<\/p>\n<p><strong>\u00a0sudo apt-get install filezilla<\/strong><\/p>\n<p>To run Filezilla type:<\/p>\n<p><strong>filezilla<\/strong><\/p>\n<p>Once Filezilla is running enter the connection information to your 1and1 account. Select the menu File &gt; Site Manager and enter the following information:<\/p>\n<ul>\n<li>Host (domain name) = s123456789.onlinehome.us<\/li>\n<li>Server type = SFTP<\/li>\n<li>Logon type = Normal<\/li>\n<li>User = u12345678<\/li>\n<li>FTP Password = myftppassword<\/li>\n<li>Comments = this is my account on 1and1<\/li>\n<\/ul>\n<p>Then press the <em>Connect<\/em> button.<\/p>\n<p>While still in Filezilla, transfer the blog folder to your account by following these steps:<\/p>\n<ol>\n<li>In the left local site window select the folder to transfer from your local machine, ~\/tmp\/\/blog.<\/li>\n<li>In the right Remote site window select the destination,\u00a0 \/.<\/li>\n<li>Right click the source folder and select upload. The files will be uploaded.<\/li>\n<\/ol>\n<p>Almost done. Run the Install Script by switching to your browser and entering the address to the install script, something like this:<\/p>\n<p><strong>http:\/\/sample.com\/blog\/wp-admin\/install.php<\/strong><\/p>\n<p>Write down your WordPress password.<\/p>\n<p>Now WordPress is installed!<\/p>\n<p>Visit your blog at the URL:<\/p>\n<p><strong>http:\/\/sample.com\/blog\/<\/strong><\/p>\n<h1>Alternate Steps for Advance and Business Packages<\/h1>\n<p>The 1and1 advanced and business packages support ssh which makes installing a little easier (but the basic steps work too).<\/p>\n<p>Instead of downloading to your local machine, configuring then uploading, you login to 1and1 using ssh, download directly to your 1and1 account, then configure in place, no need to upload.<\/p>\n<p>To start, open a terminal window and log into your 1and1 account. If you run Windows locally, you need to set up Putty first. Get your user name and host names by logging into 1and1 as noted above under <em>Find your 1and1 domain name and user name<\/em>.<\/p>\n<p><strong>ssh u12345678@ s123456789.onlinehome.us<\/strong><\/p>\n<p>Download the latest version of WordPress to your 1and1 account and unzip it. This will create the folder called wordpress with all the files inside it. Then delete the unneeded zip file.<\/p>\n<p><strong>wget http:\/\/wordpress.org\/latest.zip<\/strong><br \/>\n<strong>unzip latest.zip<\/strong><br \/>\n<strong>rm latest.zip<\/strong><\/p>\n<p>Rename the wordpress folder to \u201cblog\u201d (or whatever you want) and rename the wp-config-sample.php file to wp-config.php.<\/p>\n<p><strong>mv wordpress blog<\/strong><br \/>\n<strong>cd blog<\/strong><br \/>\n<strong>mv wp-config-sample.php wp-config.php<\/strong><\/p>\n<p>Log into your main 1and1.com account and create a database. Follow the same steps as above under <em>Create WordPress Database<\/em>.<\/p>\n<p>Switch back to the terminal window and edit wp-config.php changing the database name, user name, remote host and database password to the names you just wrote down in the last step.<\/p>\n<p><strong>nano wp-config.php<\/strong><\/p>\n<p>Run the Install Script by switching to your browser and entering the address to the install script, something like this:<\/p>\n<p><strong>http:\/\/sample.com\/blog\/wp-admin\/install.php<\/strong><\/p>\n<p>Write down your WordPress password.<\/p>\n<p>Now WordPress is installed!<\/p>\n<p>Visit your blog at the URL:<\/p>\n<p><strong>http:\/\/sample.com\/blog\/<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I just set up WordPress and I figured my first post would be about installing it on 1and1. WordPress blogging software is used by 15% of the top million websites, up about 6% this year! WordPress is free open source &hellip; <a href=\"https:\/\/flenniken.net\/blog\/hello-world\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3],"tags":[],"class_list":["post-1","post","type-post","status-publish","format-standard","hentry","category-1and1","category-wordpress"],"_links":{"self":[{"href":"https:\/\/flenniken.net\/blog\/wp-json\/wp\/v2\/posts\/1","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/flenniken.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/flenniken.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/flenniken.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/flenniken.net\/blog\/wp-json\/wp\/v2\/comments?post=1"}],"version-history":[{"count":7,"href":"https:\/\/flenniken.net\/blog\/wp-json\/wp\/v2\/posts\/1\/revisions"}],"predecessor-version":[{"id":4,"href":"https:\/\/flenniken.net\/blog\/wp-json\/wp\/v2\/posts\/1\/revisions\/4"}],"wp:attachment":[{"href":"https:\/\/flenniken.net\/blog\/wp-json\/wp\/v2\/media?parent=1"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/flenniken.net\/blog\/wp-json\/wp\/v2\/categories?post=1"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/flenniken.net\/blog\/wp-json\/wp\/v2\/tags?post=1"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}