Monday, 27 August 2012

apache2 php mysql phpmyadmin installation on Ubuntu






techxpert@server:~$su -

2 Installing MySQL 5


root@server:~#apt-get install mysql-server mysql-client

3 Installing Apache2

root@server:~# apt-get install apache2






4 Installing PHP5

root@server:~#apt-get install php5 libapache2-mod-php5

root@server:~#/etc/init.d/apache2 restart

5 Testing PHP5 / Getting Details About Your PHP5 Installation

root@server:~#gedit /var/www/phpinfo.php

<?php phpinfo(); ?>






6 Getting MySQL Support In PHP5




root@server:~#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 






root@server:~#/etc/init.d/apache2 restart

7 phpMyAdmin

root@server:~#apt-get install phpmyadmin




No comments:

Post a Comment