Installation of Apache2 with php5, MySql and phpmyadmin support

The way given below is the easiest one to install all these packages like Apache2, php5, MySql and phpmyadmin which are basically required to make dynamic websites. To install these follow these steps:

1. $ sudo apt-get install tasksel
$ sudo tasksel install lamp-server

2. Install Apache:

$ sudo apt-get update
$ sudo apt-get install apache2
$ sudo apt-get install php mysql-server mysql-client php5-mysql
libapache2-mod-auth-mysql php-mbstring php5-gd libapache2-mod-php5

3. Set password for mysql:

$ sudo /usr/bin/mysql_secure_installation

4. Then install php

$ sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt
$ sudo apt-get install php5-mysql php5-curl php5-gd php5-intl php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl

5. Then to check php

$ sudo vim /var/www/info.php

6. Now, type

$ sudo /etc/init.d/apache2 restart

7. Install phpmyadmin

$ apt-get install phpmyadmin

*While installation it will ask for some settings for choosing apache server or lighthttpd choosen apache

Choose Apache
Choose no for dbconfig-common
Now Navigate to the Web Browser and openup the IP mentioned with/phpmyadmin/

eg. : http//IP_Address/phpmyadmin
or : http//localhost/phpmyadmin

8. Use your login details to start then.

Advertisements

One thought on “Installation of Apache2 with php5, MySql and phpmyadmin support

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s