Raspberry Pi A User Manual page 164

Hide thumbs Also See for Raspberry Pi A:
Table of Contents

Advertisement

148
PA R T I I
When the software installation has finished, both the MySQL and Apache servers—known
in Linux parlance as daemons—will be running in the background. To check that the server is
working correctly, use another computer on the network to connect to the Raspberry Pi
using a web browser. In the address bar, type the IP address of the Pi to display the default
Apache installation page (see Figure 10-3). If you're not sure what IP address the Pi is using,
type
section corresponding to the network adapter in use on your Pi if you're not using the Model
B's built-in Ethernet port. For more information on checking and adjusting network settings
on the Pi, see Chapter 5, "Network Configuration".
Figure 10-3:
Connecting to
the Pi's Apache
server using a
web browser
The final step is to confirm that the PHP scripting module is loaded correctly in Apache. This
module is important: because it allows the Apache web server to run PHP scripts to serve
dynamic content. Without a working PHP module—or an alternative module for another
scripting language like Python—Apache is only able to serve static pages. To test the Apache
PHP module, create a new PHP script file using the following command, typed as a single line:
sudo sh -c 'echo "<?php phpinfo(); ?>" > ↵
/var/www/phptest.php'
B U I L D I N G A M E D I A C E N T R E , P R O D U C T I V I T Y M A C H I N E O R W E B S E R V E R
at the terminal and look for the IP address listed in the
ifconfig
section, or the
eth0

Hide quick links:

Advertisement

Table of Contents
loading

Related Products for Raspberry Pi Raspberry Pi A

This manual is also suitable for:

Raspberry pi b

Table of Contents