Step 1 : Install Apache2
sudo apt-get update sudo apt-get install apache2
http://localhost:80/
Step 2 : Install Mysql
sudo apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql
sudo mysql_install_db sudo /usr/bin/mysql_secure_installation
press 'n' to not change the current password
Remove anonymous users? [Y/n] y Disallow root login remotely? [Y/n] y Remove test database and access to it? [Y/n] n Reload privilege tables now? [Y/n] y
Step 3 : Install PHP
sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt
etc/apache2/mods-enabled/dir.conf
<IfModule mod_dir.c> DirectoryIndex index.php index.html index.cgi index.pl index.xhtml index.htm </IfModule>
apt-cache search php5-
sudo apt-get install <module_name>
/var/www/
Step 4 : Restart Apache Web Server
sudo service apache2 restart
No comments:
Post a Comment