Home > develop, unix/linux, web > LAMP on Ubuntu 8.10 Desktop Edition

LAMP on Ubuntu 8.10 Desktop Edition

November 10th, 2008 Leave a comment Go to comments

LAMP on Ubuntu 8.10 Desktop Edition

# LAMP on Ubuntu 8.10 desktop edition
sudo apt-get install mysql-server
# Set root password (MySQL)
sudo apt-get install apache2
# Install PHP as module
sudo apt-get install libapache2-mod-php5
# Support MySQL on PHP
sudo apt-get install php5-mysql
# Restart Apache server
sudo /etc/init.d/apache2 restart
# Test php5 on Apache2
sudo echo "<? phpinfo ?>" > ._info.php
sudo mv ._info.php /var/www/info.php
firefox http://localhost/info.php

GEOIP

Something I found interesting is that there is already a php5-geoip module that uses a database of MaxMInd, see GeoIP Database on MySQL.

Categories: develop, unix/linux, web Tags: ,
  1. December 15th, 2008 at 03:32 | #1
    Surfing Firefox 3.0.4 Firefox 3.0.4 on Ubuntu Ubuntu

    Thank you for your guide, it’s very easy to understand and works correctly. But
    sudo echo “” > ._info.php
    should be changed to
    sudo echo “” > ._info.php

    Apart from that your guide is really good.

    Greatings ComShadow

    P.S. I hope my english is correct…

  2. December 18th, 2008 at 23:23 | #2
    Surfing Firefox 3.0.5 Firefox 3.0.5 on Ubuntu Ubuntu

    I think ComShadow’s comment got munched. I believe he meant to say that the “echo” line should look like this:

    Regardless, thanks for this post! Quick and to the point.

  3. December 18th, 2008 at 23:23 | #3
    Surfing Firefox 3.0.5 Firefox 3.0.5 on Ubuntu Ubuntu

    I think ComShadow’s comment got munched. I believe he meant to say that the “echo” line should look like this:

    “”

    Regardless, thanks for this post! Quick and to the point.

  4. albertux
    December 19th, 2008 at 00:18 | #4
    Surfing Firefox 3.0.5 Firefox 3.0.5 on Windows Vista Windows Vista

    Sorry I don’t know why WordPress erase the text

  5. mchrisneglia
    March 28th, 2009 at 13:55 | #5
    Surfing Firefox 3.0.7 Firefox 3.0.7 on Ubuntu Ubuntu

    for the last time hopefully, in between the php tags, it should read ‘phpinfo();’ without the quotes. Wordpress runs strip_tags() to get rid of potential execution of php code (or javascript or html)

  1. March 23rd, 2009 at 08:38 | #1

Switch to our mobile site