Install LAMP on Ubuntu 9.10 Karmic Koala

October 29, 2009 by Linerd · 98 Comments
Filed under: HowTo, Ubuntu, linux, web development 

Why install LAMP on your desktop computer?

Why would I want to install and set up a LAMP (Linux, Apache, MySQL, php) stack on Ubuntu 9.10? It’s useful if you want to set up a private web development environment. Perhaps you want to develop your own WordPress theme. If you are developing websites and experimenting, it’s nice to do it in the privacy of your own computer, rather than out on the public internet.

Install LAMP

The Ubuntu developers have created a very easy way to install a LAMP server on an existing system. It's all kicked off with this one simple terminal command.

sudo apt-get install lamp-server^

Note: Please make note of the caret (^) in the above command, it's not a typo, it's required to make the command work.

Install LAMP with apt-get

Install LAMP with apt-get

The apt package manager will show all the packages that need to be installed. Hit <Enter> to confirm that you want to install them.

You will then be prompted to change the password for the root user on the MySQL database.

Setting root password for MySQL

Setting root password for MySQL

Enter the password you want. You'll be prompted to enter it a second time to confirm.

After you confirm your password, apt will continue to install the rest of the packages.

Lamp installation is complete

Lamp installation is complete

Congratulations, your LAMP installation is complete! That was the easy part, now you need to get things configured to make the system easy to work with.

Test Apache

Open a web browser and enter the address http://localhost/. You should see a web page that says "It Works!"

Apache works!

Apache works!

Testing php

Now that you know Apache works, it's time to test the php installation. You'll need to create a file in /var/www called testing.php. Open a terminal and enter:

gksudo gedit /var/www/testing.php

Enter the following line into the text editor, save the file and exit.

<?php phpinfo(); ?>
Creating testing.php

Creating testing.php

Next, restart Apache with the following terminal command.

sudo /etc/init.d/apache2 restart

Now go back to your web browser and enter the address http://localhost/testing.php/. You should see a page displaying version information for your php installation.

Testing php - it works!

Testing php - it works!

Configuring MySQL

Since I'm installing LAMP for a web development environment, I want to bind the MySQL database to the localhost IP address. This should be 127.0.0.1 for your system. You can verify it with this terminal command.

cat /etc/hosts | grep localhost

You'll now want to verify that the correct bind address is set up in the my.cnf file.

cat /etc/mysql/my.cnf | grep bind-address

You should see a line that looks like

bind-address		= 127.0.0.1

If the IP address doesn't match the one for your system, you'll need to edit the my.cnf file to correct it.

Install phpMyAdmin

You don't need to install phpMyAdmin, but it's a much easier way to get in and muck around with things in your MySQL database if you're not familiar with the MySQL commands. You can install phpMyAdmin from the command line with

sudo apt-get install libapache2-mod-auth-mysql phpmyadmin

The installation will prompt you to select a web server for automatic configuration. Use the space bar on your keyboard to select apache2 and then hit <Enter>.

Configure phpMyAdmin for Apache2

Configure phpMyAdmin for Apache2

Another screen will come up asking if you want to configure a new database called dbconfig-common.  Since this is a fresh installation, use the <Tab> key to select Yes and hit <Enter>.

Configure dbconfig-common

Configure dbconfig-common

You'll be prompted next to enter the MySQL root password. Enter the MySQL root password that you created earlier, hit <Tab> to select Ok and hit <Enter>.

Enter MySQL root password

Enter MySQL root password

You'll then be prompted to enter a MySQL application password for phpmyadmin. You can hit <Enter> and a random password will be generated. I chose to use the same password that I used for the root MySQL password. If you enter your own password, a password confirmation screen will come up. Confirm your password.

MySQL application password confirmation

MySQL application password confirmation

The phpMyAdmin installation is now complete.

Testing phpMyAdmin

Open your web browser and enter the address http://localhost/phpmyadmin/. You should see a page like this.

Testing phpMyAdmin

Testing phpMyAdmin

You can log in with the username root and the root password that you created earlier.

phpMyAdmin home screen

phpMyAdmin home screen

Congratulations, you're now ready to start building your local website. If you're only working on one site you can put all of the files into /var/www.  If you'll be working on multiple sites you may want to consider some additional Apache configuration to keep things neat and clean on you system.

Motorola/Verizon Droid Specs Leaked

October 25, 2009 by Linerd · 1 Comment
Filed under: gadget, linux 

This past Thursday evening someone tipped off the Boy Genius Report that the Motorola Droid phone specs were published on the Motorola website. The pages were only up for about half an hour, but the Boy Genius Report managed to grab some screen captures of the spec pages. Here's the rundown of the leaked specs.

Motorola Droid (Verizon) Phone Specs

General

  • Android Operating System Android 2.0 (Eclair)
  • CDMA CDMA 1X 800/1900, EVDO rev. A
  • Slider

Camera

  • Camera with Image stabilization
  • Megapixels 5 MP
  • Digital Zoom 4x
  • Flash Dual LED
  • Focus Automatic

Music & Video

  • Music Enabled
  • Music Player Yes
  • Video Capture
  • Playable Formats AAC, H.263, H.264, MP3, MPEG-4, WAV, WMA, eAAC+, AMR WB, MIDI, AMR NB, AAC+
  • Streaming Media Audio, Video
  • Video Capture Rate DVD quality up to 24 fps: D1 (720x480) resolution

Power

  • up to 385 min. usage time (continuous)
  • Battery Type 1400 mAh Li Ion
  • Standby Time up to 270 hrs.

Messaging

  • Email IMAP, POP3, Exchange
  • Multimedia Messaging (MMS)
  • Predictive Text
  • Text Messaging (SMS) Yes
  • Instant Messaging (IM) Google Talk
  • Image File Formats BMP, PNG, GIF, JPEG
  • Voice Mail Standard voice mail, verizon Visual Voice Mail (capable)

Connectivity

  • Bluetooth Technology Stereo Bluetooth technology v2.1 + EDR
  • Synchronization Support for MS Exchange, GMail, Corporate Calendar (supports Exchange 2003 and 2007 protocol) and Google Calendar
  • Wifi 802.11 b,g
  • Data Access Yes
  • Connector Type Micro USB
  • Data Transmission Rate USB 2.0 High Speed

Internet and Games

  • Web Access
  • Web Browser Webkit HTML5, Flash 10 (available 2010)

Accessory Compatibility

  • Headset Jack 3.5 mm

Calling

  • Caller ID On main display, Picture ID, Ringer ID
  • Speakerphone
  • Advanced Speech Recognition
  • Automatic Answer
  • Automatic Redial
  • Conference Calling Group call
  • Emergency Dial
  • Noise ReductionDual microphone noise reduction
  • On Hold Call
  • Phone Book Unified contact list (GMail, Exchange, Facebook)
  • Speed Dial Yes
  • Vibracall
  • Voice Dialing
  • Wait And Pause Dialing

Google Mobile Services

  • Android Market
  • GMail
  • Google Calendar Sync
  • Google Contact Sync
  • Google Maps With Street View
  • Google Maps
  • Googel Quick Search Box
  • Google Search By Voice
  • Google Talk
  • Google Turn-By-Turn Directions
  • Google Set-up
  • Network Location Provider
  • Youtube

Included Applications

  • Business QuickOffice Document Viewer
  • Entertainment Amazon MP3 Store
  • Social Networking Facebook

Interface

  • Operating System Android 2.0 (Eclair)
  • Backlight Yes
  • Dedicated Keys Volume control, Camera, Back, Search, Menu, Home, Lock
  • Haptic Feedback
  • Light-responsive Display
  • QWERTY Keyboard
  • Touch Screen
  • Virtual Keyboard
  • Voice Commands

Personalization

  • Ringtone Formats AAC, AAC+, eAAC, eAAC+, MP3
  • Ringtones Preloaded and downloadable
  • Wallpapers Preloaded and downloadable

Physical

  • Display Type TFT
  • Colors Licorice w/brown sugar accents
  • Display Size 3.7", WVGA (480 x 854 pixels); 16:9 widescreen; PPI 267
  • Weight 6 oz; 169 g
  • Size (H x W x D) 2.4 x 4.6 x .5 in.; 60.00 x 115.80 x 13.70 mm
  • Antenna Type Internal
  • Form Factor Slider

Technology

  • Accelerometer Yes
  • Networks CDMA 1X 800/1900, EVDO rev. A
  • Processor Speed 550 mHz
  • Removable Memory 16 GB microSD pre-installed, supports up to 32 GB microSD expandable

Next Page »