header

how to install php mysql myphpadmin

I use this to setup raspberry pi and beaglebone using wheezy on pi and ubuntu on beaglebone works on both just copy and paste each line enter password as it installs theres 2 the first time it asks for password will be mysql root password the 2nd is to for myphpadmin.

install apache2 php mysql

install in order apache2 php mysql
sudo bash
apt-get update
apt-get upgrade
apt-get install apache2 apache2-doc apache2-utils
apt-get install libapache2-mod-php5 php5 php-pear php5-xcache
apt-get install php5-mysql
apt-get install mysql-server mysql-client
Here comes 1st password its for mysql root user enter twice
reboot

install myphpadminl

sudo bash
apt-get install phpmyadmin

Make sure apache2 has the dot in it press enter
choose apache2
ok
enter password 3 times I’m using root for whole thing that makes easy to
login for now.
make more secure when you get hang of using it
Configure Apache to work with PhpMyAdmin

nano /etc/apache2/apache2.conf

place this line at bottom of file
Include /etc/phpmyadmin/apache.conf

ctrl-x y enter restart apache
/etc/init.d/apache2 restart

now login 192.168.1.?/phpmyadmin/
fix for The mcrypt extension is missing. Please check your PHP
configuration

sudo apt-get install php5-mcrypt
sudo ln -s /etc/php5/conf.d/mcrypt.ini /etc/php5/mods-available
sudo php5enmod mcrypt
sudo service apache2 restart