Installing PHP on the HP Mini Mi

In this screencast I show how to install and enable the PHP programming language on the HP Mini Mi from the terminal with just 3 commands.

HP's Mobile Internet Experience software is based on Ubuntu Linux, which in turn is a derivative of Debian GNU/Linux, so we can make use of the great Advanced Package Tool (APT) for managing software packages.

Thanks to APT installing, updating, and removing applications are easy and straightforward tasks. To install PHP5 execute the following command from a terminal:

sudo apt-get install php5

Dependencies (required packages) will be resolved and also installed automatically. Thus, executing the above command will also install the Apache HTTP server, if it was not installed before.

After all required packages were downloaded, extracted and installed, you need to enable the PHP module for Apache by executing:

sudo ln -s /etc/apache2/mods-available/php5.load /etc/apache2/mods-enabled/

The above command creates a symbolic link for the PHP module in Apache's enabled modules directory. Then you need to restart the Apache server for so the configuration changes take effect:

sudo /etc/init.d/apache2 restart

PHP5 and Apache are now installed and you are ready to write and execute PHP programs. So the last steps are creating the venerable hello world program in the server root directory /var/www and pointing the browser to http://localhost/ to execute the PHP script and display its output.

Since you need superuser privileges for the tasks outlined above all commands start with the sudo command. To learn how to make the terminal easily accessible, check out my screencast on creating a keyboard shortcut for the terminal.

Operating Systems: HP Mobile Internet

Screencast HPMiniMi Development Howto

To be informed of new posts, subscribe to the RSS feed or follow Linux Netbook on Facebook.

Affiliate Disclosure: External links on this website may contain affiliate IDs, which means that I earn a commission if visitors make a purchase via such a link. For details, see the disclosure page.

Related products

HP Mini 1120NR 10.2-Inch Netbook (1.6 GHz Intel Atom N270 Processor, 1 GB RAM, 16 GB Hard Drive, Mobile Internet Experience Software, 3 Cell Battery)

HP Mini 1120NR 10.2-Inch Netbook (1.6 GHz Intel Atom N270 Processor, 1 GB RAM, 16 GB Hard Drive, Mobile Internet Experience Software, 3 Cell Battery)

Search Amazon

HP Mini 1110NR 8.9-Inch Netbook (1.6 GHz Intel Atom N270 Processor, 512 MB RAM, 8 GB Hard Drive, Mobile Internet Experience Software, 3 Cell Battery)

HP Mini 1110NR 8.9-Inch Netbook (1.6 GHz Intel Atom N270 Processor, 512 MB RAM, 8 GB Hard Drive, Mobile Internet Experience Software, 3 Cell Battery)

Search Amazon

Latest Laptops

Lenovo IdeaPad Slim 3 Chromebook -...
Preview:

The Lenovo IdeaPad Slim 3 Chromebook is a lightweight, portable laptop designed for students and...

HP Chromebook 14a-nf0099nr - 14-inch Laptop
Preview:

HP Chromebook with a micro-edge HD display, Intel N100 processor, 8 GB of RAM, and 128 GB UFS...

Google Pixelbook Go - 13.3-inch...
Preview:

The Google Pixelbook Go is a lightweight Chromebook designed for portability, performance, and...

Latest Videos

Acer Chromebook 311 (CB311-12H /...
Preview:

The Acer Chromebook 311 suits its purpose as a basic device well, particularly for educational...

Acer Chromebook Spin 513 Video Review
Preview:

The Acer Chromebook Spin 513 is a 13.3-inch convertible laptop that has caught the attention of...

ASUS Chromebook Plus CX34 CX3402CBA...
Preview:

The ASUS Chromebook Plus CX34 is a 14-inch laptop that aims to deliver solid performance without...

Linux Netbook HomeVideos › Installing PHP on the HP Mini Mi