Building Your Own Website Using:. Install & configure LAMP. Download WordPress and run it as a local website on your Raspberry Pi. Configure WordPress.

Slides:



Advertisements
Similar presentations
WordPress Installation for Beginners Sheila Bergman
Advertisements

How To Make Your Own Web Page: Basic Web Design
Drupal Basics Part 1 An Overview Login Information Edit the Homepage Using the theme Agricultural Communications Services Integrated Media Training Sessions.
MY NCBI (module 4.5).
Dan Fleck.  WAMP – Windows Apache MySQL PHP -  LAMP – Linux Apache MySQL PHP ◦ There are.
1 Configuring Internet- related services (April 22, 2015) © Abdou Illia, Spring 2015.
Rowan County Public Library. Register for and sign into a Wordpress account. Set up a blog. Add pictures and posts. Instill a basic understanding of Wordpress.
What is MySQL? MySQL is a relational database management system (A relational database stores data in separate tables rather than putting all the data.
WPML Translation plugin is the best option when you need to translate your Wordpress website into multiple languages. The plugin makes it easy to translate.
How to post to Wordpress Chruton Budd. Click on the Login link.
1 Configuring Web services (Week 15, Monday 4/17/2006) © Abdou Illia, Spring 2006.
The Internet. Telnet Telnet means using your computer as a terminal. All commands you type are sent to the host computer you are connected to and executed.
CS1020: Intro Workshop. Topics CS1020Intro Workshop Login to UNIX operating system 2. …………………………………… 3. …………………………………… 4. …………………………………… 5. ……………………………………
Getting an account with WordPress.com Open your web browser ( mozilla firefox, internet explorer, opera, etc.,)
Create Your Own Webpage. Today’s Agenda Cut & paste code Notepad++ or Notepad at home FTP Web Hosting Wordpress.
This example is a step by step walkthrough for installing the SRH Front Desk Printer in Windows 8.
Creating a Web Page HTML, FrontPage, Word, Composer.
Review of last Session Adding custom html Adding custom html HTML is the language that web servers understand, all web pages are created using HTML. HTML.
Microsoft Windows 2003 Server. Client/Server Environment Many client computers connect to a server.
One to One instructions Installing and configuring samba on Ubuntu Linux to enable Linux to share files and documents with Windows XP.
Panorama High School E.G.P./ Training to Put Students’ Grades on the Website Wednesday, September 29,
Reading Data in Web Pages tMyn1 Reading Data in Web Pages A very common application of PHP is to have an HTML form gather information from a website's.
Session 5: Working with MySQL iNET Academy Open Source Web Development.
Web Design Using HTML Codes. WHAT DO I NEED TO BEGIN DESIGNING A HOME PAGE? 1.YOU NEED A FOLDER (also called a DIRECTORY) You should set up a folder or.
INTRODUCTION TO DREAMWEAVER 8. What we already know…  Design basics  Contrast  Repetition  Alignment  Repetition  HTML.
bWAPP – Bee Bug – Installation
Singapore Primary Schools Sports Council User Guide.
Drupal Jumpstart Information Systems 337 Prof. Harry Plantinga.
CIS 205—Web Design & Development Dreamweaver Chapter 1.
Installing and Using MySQL and phpMyAdmin. Last Time... Installing Apache server Installing PHP Running basic PHP scripts on the server Not necessary.
Patrick Bailey, MS IDIS110 Dreamweaver Setup. IDIS110 - RIT After you start Dreamweaver On the first time, if you are asked, select “Design Mode” Otherwise,
Downloading and Installing Autodesk Revit 2016
Moodle with Style Integrating new technologies to empower learning and transform leadership.
Diagnostic Pathfinder for Instructors. Diagnostic Pathfinder Local File vs. Database Normal operations Expert operations Admin operations.
Creating a Web Site Using 000webhost.com The 000webhost.com Site You will be required to create an account in order to use their host computer 000webhost.com.
Apache, MySQL and PHP Installation and Configuration Chapter 1 Apache Installation and Configuration.
Publishing Your Web Pages Ann Emmanuel SIUE Web Administrator
USING WORDPRESS TO CREATE A WEBSITE (RATHER THAN A BLOG) STEP-BY-STEP INSTRUCTIONS.
How to Use Facebook This guide will help you navigate around the social networking site, Facebook.
Downloading and Installing Autodesk Inventor Professional 2015 This is a 4 step process 1.Register with the Autodesk Student Community 2.Downloading the.
Setting Up your Hosting Account and Installing WordPress and Omeka CCC America Advanced Omeka Training.
How To Design Your Own Webpage Created Especially For You By: Amanda E. Stricklin.
Creating a simple database This shows you how to set up a database using PHPMyAdmin (installed with WAMP)
Apache, MySQL and PHP Installation and Configuration Chapter 2 MySQL Installation and Configuration.
MySQL Getting Started BCIS 3680 Enterprise Programming.
January 2006Colby College ITS Setting Up Course Pages.
Managing Your Specialty Area Website: A What’s What and How-To Guide.
Unit 1 – Web Concepts Instructor: Brent Presley.
PHP Form Processing * referenced from
VB.NET and Databases. ADO.NET VB.Net allows you many ways to connect to a database. The technology used to interact with a database or data source is.
Multi-Domain Hosting CPTE 212 “Missing Slides” for 1/22/2015 John Beckett.
MySQL Getting Started BCIS 3680 Enterprise Programming.
1.Switch on the computer and wait for loading. 2.Select the Windows 7 OS at the end of the list. 3.Click on the link ‘Administrator’ 4.Enter the administrator.
Instructional Design Center Embedding Google Documents in Blackboard.
Joomla Awdhesh Kumar Singsys Pte Ltd. What is Joomla? Joomla is an award-winning content management system (CMS), which enables you to build Web sites.
Installing and Configuring Moodle. Download Download latest Windows Install package from Moodle.orgMoodle.org.
1.Switch on the computer and wait for loading. 2.Select the Windows 7 OS at the end of the list. 3.Click on the link ‘Administrator’ 4.Enter the administrator.
WordPress and Etherpad with BlueMix and Docker. Our aim is to run on BlueMix containers (now in beta) these two famous services In the BlueMix dashboard,
How to use Drupal Awdhesh Kumar (Team Leader) Presentation Topic.
COM621: Advanced Interactive Web Development Lecture 10 PHP and MySQL.
HOW TO SET UP A WEBSITE. Why use WordPress? Nearly half of the websites on the Internet are running on the WordPress website platform It’s totally free.
Basic Web Design UVICELL Week 4 Templates and site management Week 4 Templates and site management.
Migrating Wordpress Migrating Wordpress can sometimes get more complicated as it should. There is no plugin that does this for you, the best way is to.
Getting an account with WordPress.com
Intro to WordPress (Using XAMPP)
CS1010: Intro Workshop.
Easy Way to Reset WordPress Admin Password on Localhost? Guided By: WPGLOBALSUPPORTWPGLOBALSUPPORT.
INSTALLING AND SETTING UP APACHE2 IN A LINUX ENVIRONMENT
Configuring Internet-related services
Getting Started: Amazon AWS Account Creation
Presentation transcript:

Building Your Own Website Using:

Install & configure LAMP. Download WordPress and run it as a local website on your Raspberry Pi. Configure WordPress and make your website accessible to the class on your local network. GOALS FOR TODAY

STEP ONE: SET UP APACHE WEB SERVER sudo apt-get install apache2 -y

TEST THE WEB SERVER By default, Apache puts a test HTML in the web folder. This default page is served when you browse to on the Pi itself, or from another computer on the network. Find your ip address by typing hostname -I TAKE NOTE OF YOUR IP ADDRESS! Once you type this information into your web browser you should see the default page on the following slide….

IF YOU SEE THIS PAGE, THIS IS GOOD!

STEP TWO: INSTALL PHP sudo apt-get install php5 libapache2-mod-php5 -y

TEST PHP Before we test PHP, we must know where to put our file that we’ll use to test it. First, type in the following commands: cd /var/www/html ls -al Now that we are in the right directory, we can create or first file which will be a.php file. So now, we’ll create the file “index.php”, but first, let’s install an editor. Let’s use “vim”: sudo apt-get install vim “vim” is one of the many editor’s you can use in linux. Linux comes with the editor “nano”, however, I think “vim” is a lot better! Now that we got that done, let’s create our “index.php” file by typing the following command: sudo vim index.php

TEST PHP CONTINUED Press the button “insert” on your keyboard which will allow you to start coding. Afterwards type: One finished, press the “esc” button to exit editor mode, and then type: :x! to save your new file. Now type ls -al again. Notice that you have two files with “index” as their file names. Lets remove the.html one by typing: sudo rm index.html Refresh your browser. You should see “hello world”. If you want to see something that changes automatically, type in:

STEP THREE: INSTALL MYSQL sudo apt-get install mysql-server php5-mysql -y

TECHNOLOGIES TO LOOK INTO IN ADDITION TO MYSQL

STEP FOUR: DOWNLOAD WORDPRESS

THE PROCESS We will download WordPress in our “html” folder. If you aren’t there, type exit, open a new terminal, and type the following command: cd/var/www/html We will now remove all contents of this folder and change the ownership of this folder to us so that it recognizes us as the root user. Type in the following commands: sudo chown pi:. sudo rm *; wget

THE PROCESS… Now extract the tarball, move the contents of the folder it extracted (wordpress) to the current directory and remove the (now empty) folder and the tarball to tidy up: tar xzf latest.tar.gz mv wordpress/*. rm –rf wordpress latest.tar.gz Running the ls or (tree -L 1) command here will show you the contents of a WordPress project.

STEP FIVE: SETUP YOUR WORD PRESS DATABASE

SETTING UP YOUR DATABASE To get your WordPress site set up, you need a database. Run the mysql command in the terminal and provide your login credentials (e.g. username root, password password): mysql -uroot -p(your password) Here I have provided my password (the word password) on the command line; there is no space between -p and your password. Alternatively you can simply supply an empty -p flag and wait to be asked for a password: mysql -uroot -p Now you will be prompted to enter the root user password you created earlier.

SETTING UP YOUR DATABASE… Once you're connected to MySQL, you can create the database your WordPress installation will use: mysql> create database wordpress; Note the semi-colon ending the statement. On success you should see the following message: Query OK, 1 row affected (0.00 sec) Exit out of MySQL prompt with Ctrl + D.

STEP SIX: WORD PRESS CONFIGURATION

WORD PRESS CONFIGURATION Navigate to e.g. in the web browser on your Pi. You may possibly see an error. This is because a specific extension is not found that connects PHP to MySQL. To do this, we have to uncomment a specific line of code. We will now go to the directory that has the file we need to edit which is “php.ini”: exit cd /etc/php5/apache2 sudo vim php.ini

WORD PRESS CONFIGURATION… Now we need to find the line of code we need to uncomment. Comments in this php file are marked with “;”. The line you need to find is “;extension=php_mysql.dll” or something similar to it. Once you find it, delete the “;” sign, then press “esc” and to save, press “:” then “x” and lastly “!” and press enter. Now we must restart the apache2 server. Type: sudo /etc/init.d/apache2 restart Once it’s finished, type in your IP address in your browser. You should see a WordPress error page; this is good! Click the big button marked “Create a Configuration File” followed by the “Let's go!” button on the next page.

STILL CONFIGURING GUYS Now fill out the basic site information as follows: Database Name: wordpress User Name: root Password: Database Host: localhost Table Prefix: wp_ Upon successful database connection, you will be given the contents of your wp- config.php file:

YOU SHOULD SEE THIS PAGE NOW

AAAAND BACK TO EDITING Copy this text, return to the terminal on the Pi and edit the file with: vim wp-config.php Paste the text into this file, and save and exit with: :x! Now hit the Run the install button.

WELCOME SCREEN Fill out the information: give your site a title, create a username and password, put in your address and untick the search engines box. Hit the Install WordPress button, then log in using the account you just created. Now you're logged in and have your site set up, you can see the website by visiting your IP address in the browser on the Pi or another computer on the network. To log in again (or on another computer), type in your browser:

FRIENDLY PERMALINKS It's recommended that you change your permalink settings to make your URLs more friendly. To do this, log in to WordPress and go to the dashboard. Go to Settings then Permalinks. Select the Post name option and click Save Changes. After saving, you will be prompted to update your.htaccess file. You probably don't have one yet, so add one in /var/www/html/ by typing: vim.htaccess note this is a hidden file, so it starts with a dot. Then paste in the contents provided: RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule. /index.php [L]

FRIENDLY PERMALINKS CONTINUTED… Save the file and return to the website homepage. Click on the post title or the sample page link and you'll probably see a Not Found error page. This is because the rewrite module has not been enabled in Apache. To do this, type in: sudo a2enmod rewrite You'll also need to tell the virtual host serving the site to allow requests to be overwritten. Do this by editing the virtual host file (with root permissions): sudo vim /etc/apache2/sites-available/default also, change the AllowOverride setting on line 11 (inside the block) from None to All. Save the file and then restart Apache with: sudo service apache2 restart

RESULT OF THE RESTART Once it's restarted, refresh the page and it should load successfully. Now posts have URLs like /hello-world/ instead of /?p=123, and pages have URLs like /sample-page/ instead of /?page_id=2.

STEP SEVEN: CUSTOMIZATION

CUSTOMIZATION WordPress is very customizable. By clicking your site name in the WordPress banner along the top of the page (when logged in), you'll be taken to the Dashboard. From here you can change the theme, add pages and posts, edit the menu, add plugins and lots more. This is just a taster for getting something interesting set up on the Raspberry Pi's web server.

NEXT SET OF GOALS Try adding pages and posts to your website. Try installing different themes from the appearance menu. Try customizing your theme, or creating your own. Try using your web server to display useful information to people on your network.