After normal installation of ubuntu 12.1 all normal users will find some trouble in installing php,mysql in their computer. so this post is mainly for helping those users..
Here Iam describing about installing it manually through terminal. so for that open the terminal then :-
1) First we tend to install MySQL five like this:
sudo apt-get install mysql-server mysql-client
sudo apt-get install php5 libapache2-mod-php5
sudo /etc/init.d/apache2 restart
To get MySQL support in PHP, we will install the php5-mysql package. it is a sensible plan to put in another PHP5 modules likewise as you would possibly would like them for your applications. you'll be able to explore for on the market PHP5 modules like this:
sudo apt-cache search php5
Pick those you wish and install them like this:
sudo apt-get install php5-mysql php5-curl php5-gd php5-idn 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
Now restart Apache2:
sudo /etc/init.d/apache2 restart
phpMyAdmin may be a net interface through that you'll be able to manage your MySQL databases. it is a sensible plan to put in it:
sudo apt-get install phpmyadmin
Here Iam describing about installing it manually through terminal. so for that open the terminal then :-
1) First we tend to install MySQL five like this:
sudo apt-get install mysql-server mysql-client
2)Installing apache
sudo apt-get install apache2
3) Installing php5 apache as follows:-
4) We should restart Apache afterwards:
5) Obtaining MySQL Support In PHP5
sudo apt-cache search php5
Pick those you wish and install them like this:
sudo apt-get install php5-mysql php5-curl php5-gd php5-idn 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
Now restart Apache2:
sudo /etc/init.d/apache2 restart
7)phpMyAdmin
phpMyAdmin may be a net interface through that you'll be able to manage your MySQL databases. it is a sensible plan to put in it:
sudo apt-get install phpmyadmin
Configure info for phpmyadmin with dbconfig-common
8) Linking phpmyadmin with localhost
sudo ln -s /usr/share/phpmyadmin/ /var/www/
9) Restart apache
sudo /etc/init.d/apache2 restart
10) Open a browser and type localhost/ you can access www directory and to access phpmyadmin..just type localhost/phpmyadmin
11) For enabling urlrewriting
You have to edit the default file in the /etc/apache2/sites-available/ folder..
So for editing you have to type this command
sudo gedit /etc/apache2/sites-available/default
change the line AllowOverride none to AllowOverride All
You have to edit the default file in the /etc/apache2/sites-available/ folder..
So for editing you have to type this command
sudo gedit /etc/apache2/sites-available/default
change the line AllowOverride none to AllowOverride All
No comments:
Post a Comment