maanantai 26. elokuuta 2013

How To: Install LAMP w/ PHPmyAdmin on Ubuntu or Xubuntu

Easiest instructions here: http://www.othworld.info/2013/03/how-to-install-lamp-w-phpmyadmin-on.html

Install L(inux) A(pache) M(ySQL) P(HP)
First we need a software called "tasksel"

sudo apt-get install tasksel

Then we need to install the LAMP Stack

sudo tasksel install lamp-server

When prompt give a username and password for MySQL users, also select Apache2 to be configured



Installing PHPmyAdmin
Install phpmyadmin from the repository

sudo apt-get install phpmyadmin

Then we need to install php5-gd

sudo apt-get install php5-gd

Create a symbolic link for phpmyadmin to be access

sudo ln -s /usr/share/phpmyadmin/ /var/www/phpmyadmin

Then restart apache to take changes

sudo service apache2 restart



Now test your webserver, open web-browser and type:
http://localhost/ | http://localhost/phpmyadmin



phpmyadmin default username is root.

also to test if php is working create a new file in /var/www for example keppi.php and insert this code in to it

<html> <head>
<title>PHP Test</title>
</head>
<body>
<?php echo '<p>Hello World</p>'; ?>
</body>
</html>

If it prints out it should work just fine.


1 kommentti: