1. Install Apache.
command: sudo apt-get install apache2
2. Install PHP.
command: sudo apt-get install php5 libapache2-mod-php5
3. Restart Apache.
command: sudo /etc/init.d/apache2 restart
4. Install MySQL.
command: sudo apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql
note: When you get a prompt enter a password you would like to use as the root MySQL user.
Once done open, ‘/etc/mysql/my.cnf‘ and change the bind-address to your local IP. (usually 192.x number).
5. Install phpmyadmin.
command: sudo apt-get install phpmyadmin
After finishing, you need to execute this command below for changing phpMyadmin folder to var/www
command :sudo ln -s /usr/share/phpmyadmin/ /var/www/phpmyadmin
note: After phpmyadmin is installed you can see it view it, http://localhost/phpmyadmin/.
6. Install MySQL Server.
command :sudo apt-get install mysql-server
7. Use mod_rewrite.
command :sudo a2enmod rewrite
sudo /etc/init.d/apache restart
note :Chances are you want to use mod_rewrite in your applications to make URLs a bit more pretty. It is also required by lots of software, like Wordpress.
8. Starting and Stopping Apache.
start :sudo /usr/sbin/apache2ctl start
stop :sudo /usr/sbin/apache2ctl stop
restart :sudo /usr/sbin/apache2ctl restart
Saturday, September 26, 2009
Subscribe to:
Post Comments (Atom)

No comments:
Post a Comment