Search This Blog

Apache, Php & MySQL Configuration in Ubuntu

Install Apache package

susanta@admin:~$ sudo  -s
root@admin:~# apt-get install apache2

Click here to get detail information about how to install and configure Apach server.

Main configuration file is apache2.conf

root@admin:~# gedit /etc/apache2/apache2.conf

 







Install php packages

root@admin:~# apt-get install php5


The main configuration file is php.ini

root@admin:~# gedit /etc/php5/apache2/php.ini







Install MySQL packages

root@admin:~# apt-get  install mysql-server
root@admin:~# apt-get install php5-mysql

It will ask the root password of MySQL at the time of installation,

The main configuration file is my.cn. Open the file and edit the line,

root@admin:~# gedit /etc/mysql/my.cnf
# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
bind-address        = 127.0.0.1
# bind-address        = admin.home.com





Installing Administrative packages of Apache, Php & MySQL

root@admin:~# apt-get install php5 phpmyadmin





It will ask the administrative password.

 

No comments:

Post a Comment