if you’re first ubuntu user, you may be confused how to play with my sql/php. Some people used to xampp to operate their php script and mysql database on their windows. I know well how convenient xampp is.Installing xampp is equal to install apache server, mysql, and phpmyadmin. all at once. So I’m here to tell you a story how can I install my phpmyadmin.
The concept is same. We need apache on your computer as server. Open your terminal and type:
sudo apt-get install apache2
You need to install PHP as server language. I don’t understand what exactly installing php is, but It’s also included in xampp package.
sudo apt-get install php5
Then, you need to install my-sql as server database:(you need average 120 MB on your ubuntu drive system)
sudo apt-get install mysql-server
type this script to install mysql for apache…
sudo apt-get install libapache2-mod-auth-mysql
install this too…
sudo apt-get install php5-mysql
To Install Phpmyadmin, use this script:
sudo apt-get install phpmyadmin
If you have installede everything you need, then try to start your apache
Next mission: check your browser, mozilla FF of course, then type:
If you see this:
it means that your apache has run well! well done! But your mission hasn’t finished yet.
Next, you will edit apache configurations. You may edit it with gedit or vi editor.
sudo gedit /etc/apache2/apache2.conf
sudo vi /etc/apache2/apache2.conf
add this line and save:
Now go to http://localhost/phpmyadmin .
Okay, now you have your phpmyadmin on your ubuntu works well.