18 May 2017

Install LAMP on Ubuntu

Install LAMP on Ubuntu -
    https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu-16-04

Proper LAMP Setup on Ubuntu -

1. Install & enable mbstring module

2. Install phpmyadmin on Ubunttu & add (in file/etc/apache2/apache2.conf )

#Include the phpmyadmin configuration
Include /etc/phpmyadmin/apache.conf

3. Following changes will be needed to work htaccess properly,
/etc/apache2/apache2.conf file. 
First, find
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
And change AllowOverride None to All and save.
Then enable mode rewrite using the command(In this case already enabeled),
$ sudo a2enmod rewrite
Then restart the server,
$ sudo /etc/init.d/apache2 restart
Run the project.

No comments:

Post a Comment