#Install Apache#
sudo apt-get update
sudo apt-get install apache2
#Install PHP#
sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt
#Install MySQL#
sudo apt-get install mysql-server
#Harden MySQL Server#
sudo mysql_secure_installation
#Use MySQL#
mysql -u root -p
# Enabling mod_rewrite#
sudo a2enmod rewrite
##This will activate the module or alert you that the module is already in effect. To put these changes into effect, restart Apache.##
sudo service apache2 restart
##curl install##
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install php-curl
#Setting Up .htaccess#
##First, allow changes in the .htaccess file. Open the default Apache configuration file using nano or your favorite text editor##.
sudo nano /etc/apache2/sites-enabled/000-default.conf
or
/etc/apache2/sites-available$ sudo gedit 000-default.conf
##Inside that file, you will find the <VirtualHost *:80> ....</VirtualHost>. Inside of line##
<Directory /var/www/html>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
#restart Apache.#
sudo service apache2 restart
sudo apt-get install php-mcrypt
#create the .htaccess file.#
sudo nano /var/www/html/.htaccess
##To check your hostname run:##
hostname
hostname -f
sudo apt-get update
sudo apt-get install apache2
#Install PHP#
sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt
#Install MySQL#
sudo apt-get install mysql-server
#Harden MySQL Server#
sudo mysql_secure_installation
#Use MySQL#
mysql -u root -p
# Enabling mod_rewrite#
sudo a2enmod rewrite
##This will activate the module or alert you that the module is already in effect. To put these changes into effect, restart Apache.##
sudo service apache2 restart
##curl install##
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install php-curl
#Setting Up .htaccess#
##First, allow changes in the .htaccess file. Open the default Apache configuration file using nano or your favorite text editor##.
sudo nano /etc/apache2/sites-enabled/000-default.conf
or
/etc/apache2/sites-available$ sudo gedit 000-default.conf
##Inside that file, you will find the <VirtualHost *:80> ....</VirtualHost>. Inside of line##
<Directory /var/www/html>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
#restart Apache.#
sudo service apache2 restart
sudo apt-get install php-mcrypt
#create the .htaccess file.#
sudo nano /var/www/html/.htaccess
##To check your hostname run:##
hostname
hostname -f
Comments
Post a Comment