How to install Apache on the PcDuino 3 (LAMP P1)

If you are reading this then you probably have a PcDuino 3 that you need to install a LAMP (Linux Apache MySQL PHP) server on, and the first step is to install Apache. This guide should work for all older versions of the PcDuino as well, though some things may be specific to the current version of the board. For those of you who are not aware Apache is a free open source web server that can be installed on just about any machine. The instructions in this guide are specific to the PcDuino 3, but should be roughly identical on most Ubuntu builds.

The Pcduino 3 requires 5V DC power through use of a USB micro, an HDMI cable to be connected to a television or monitor that allows HDMI input, a standard keyboard, and a mouse (technically not required, but it sure makes it easier to open things up). To ensure that the keyboard and mouse can be used together it is wise to use a powered USB hub throughout set-up since some Mouse/Keyboard combos may exceed your supply if you don’t have the recommended 2A supply connected.

Installing the Apache server on PcDuino 3:

Once PCDuino3 has completed boot up a desktop several preset icons will be present on the

screen.  One of these icons will be labeled LXTerminal. Opening this icon allows for you to enter the terminal commands throughout this guide.

Linux – Lucky for you the Linux operating system should already be installed, and the PcDuino 3 uses a custom version of Ubuntu. If you have time you can get started by updating the built in apt-get software repositories by inputting the command “sudo apt-get update” into the terminal.

NOTE: the “sudo apt-get update” command can take several hours to update all

repositories depending on how out of date yours are. Most users can proceed without

the update, but if unexpected problems come up this can often be the cause.

Now to install Apache on the PcDuino 3.  The Apache web server can be installed by typing the following command into the terminal “sudo apt-get install apache2“. This should start a 10 to 20 minute installation process which may require you to type “y” once or twice to confirm installation.

When asked to continue type y and press enter. To ensure the Apache web server is working the chromium web browser in the task bar at the bottom of the screen can be opened and in the address bar type localhost or and press enter. If it is working properly the page will display

It works!” or another Apache diagnostics landing page with some details on your installation. To ensure that the Apache server can be accessed outside of the local host go back to the PCDuino3 desktop and right click on the network icon in the bottom toolbar and select network properties. The IP address will be displayed in the information page that appears. Go to another device (computer or phone) on the same network and open up the web browser. In the address line type the IP address and hit enter. If it is working properly the page will display the same page you just saw from localhost on the PcDuino 3.

If you were able to see the page on the localhost, but are not able to see it from another machine double check the IP address you typed. Generally if you are unable to view the page from another machine it means there may be a problem with your network configuration, or that maybe your phone or PC are not on the same network (eg. check that you are on wifi with a phone, a 3G/4G network won’t have access to your internal addresses).

If you have problems with your server you can always try the following before taking any drastic measures restart the Apache server with the following command “sudo service apache2 restart“.

After that you should be good to go for regular HTML pages. However, most people want just a little more kick in their websites then text and images… so check out the next guide to learn how to install PHP!

No comments yet.

Leave a Reply