- First login as root and install first apache web server, type the following command:
# sudo apt-get install apache2
- both install the database server:
# sudo apt-get install mysql-server
- then install php for apache:
# sudo apt-get install php5
- The next install mysql for apache:
# apt-get install libapache-mod-acct-mysql
- The next install php module:
# apt-get install php5-mysql
Then subsequent to facilitate processing mysqlnya database, we will install
phpMyAdmin by typing the command:
# sudo apt-get install phpmyadminOnce installed try http://ip_server/phpmyadmin access.
To put it defaul web data we put in / var / www /.
For data database by default located in / var / lib / mysql /.
Done deh, hopefully very helpful well make you want to make a web server in linux