Time: About an hour.
Difficulty: Medium.
You Will Need:
- A Raspberry Pi running Raspbian
- An Internet connection
- Keyboard, mouse, and monitor. Or you can use remote desktop.
Steps:
- Log in to Raspbian and open the terminal.
- Type sudo apt-get install apache2 -y and press Enter.
- Find the IP address of your Pi with hostname -I.
- Write down and save the IP address.
- In a web browser, navigate to the IP address.
- You should see this.
- Type sudo apt-get install php5 libapache2-mod-php5 -y. This will install php.
- Type sudo apt-get install mysql-server php5-mysql -y. This will install SQL.
- SQL will prompt you to set a password. Remember it, you'll need it later.
- Now we will install Wordpress.
- Type cd /var/www
- Type sudo chown pi: .
- Type sudo rm *
- Type wget http://wordpress.org/latest.tar.gz
- Type tar xzf latest.tar.gz
- Type mv wordpress/* .
- Type rm -rf wordpress latest.tar.gz
- Now let's set up the Wordpress database
- Type mysql -uroot -p
- You will have to enter the password you set earlier.
- Type create database wordpress;
- Then use Ctrl-D to exit
- Go to the IP address of your Pi and you should see a Wordpress site like this one.
- Press the Let's Go! button to fill in the details for the configuration form.
- You will now have to enter in the information as follows.
-
- Press submit.
- Copy and paste the information from the next screen to wp-config.php and hit Ctrl+X, Y, and Enter.
- Click Run the Install.
- Fill out the form in the next page and click Install Wordpress.
- DONE!
Log in to Wordpress to customize your site!
The code for this project came from the Raspberry Pi Official Website. They have many great tutorials so check them out!
The code for this project came from the Raspberry Pi Official Website. They have many great tutorials so check them out!
No comments:
Post a Comment