Home > Linux, Tutorials > Install LAMP (Linux Apache Mysql PHP) – phpmyadmin

Install LAMP (Linux Apache Mysql PHP) – phpmyadmin

This mini-tutorial was written mainly for personal use. The following steps are an example of the installation with the use of apt-get package manager of Ubuntu and Debian. I think that the packages are the same with any other package manager.

  1. Update your repositories:
    • #apt-get update
  2. Install Apache and PHP:
    • #apt-get install apache2 php5 libapache2-mod-php5
  3. Install Mysql:
    • #apt-get install mysql-server mysql-client php5-mysql
  4. If you need to re-set the root password of the mysql server:
    • #mysql -u root
    • mysql> USE mysql;
    • mysql> UPDATE user SET Password=PASSWORD(‘new-password’) WHERE user=’root’;
    • mysql> FLUSH PRIVILEGES;
  5. Install phpmyadmin:
    • #apt-get install phpmyadmin
    • echo “Include /etc/phpmyadmin/apache.conf” >> /etc/apache2/apache2.conf

Now you are ready to start your webserver and build your sites etc etc

ps: Don’t forget the port forwarding: set all the ports to 80 and under TCP/UDP protocol.

Categories: Linux, Tutorials Tags: , , , , ,
  1. January 5, 2010 at 16:36

    Now you don’t have to make the last step when you are installing phpmyadmin…!
    I am talking about: echo “Include /etc/phpmyadmin/apache.conf” >> /etc/apache2/apache2.conf

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s