Saturday, August 13, 2016

Install LAMP and PHPmyAdmin && PHPpgAdmin on Ubuntu 14.04

Install LAMP

Steps are:
  1. sudo apt-get update
  2. sudo apt-get install apache2
  3. sudo apt-get install mysql-server php5-mysql
  4. sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt
  5. sudo gedit /etc/apache2/conf-available/serve-cgi-bin.conf Add this line at the end of the file:
      1. ServerName localhost
     
  6. save this file
  7. sudo service apache2 restart
 

Install PHPmyAdmin

Steps are :
  1. sudo apt-get install phpmyadmin
  2. sudo php5enmod mcrypt
  3. sudo ln -s /usr/share/phpmyadmin /var/www/html/phpmyadmin
  4. sudo service apache2 restart
 

Install PHPpgAdmin

Steps are :
  1. sudo apt-get install phppgadmin
  2. sudo gedit /etc/apache2/conf.d/phppgadmin
    • uncomment this line allow from all
  3. sudo ln -s /usr/share/phppgadmin /var/www/phppgadmin
  4. sudo cp /etc/apache2/conf.d/phppgadmin /etc/apache2/conf-enabled/phppgadmin.conf
  5. sudo gedit /etc/phppgadmin/config.inc.php
    • set $conf['extra_login_security'] = true; to false
  6. sudo service apache2 restart

Related Posts:

  • Laravel 5.2 using queue to send email To sent email after desired number of second, first change the .env file as follow. First provide database credential set QUEUE_DRIVER=sync to QUEUE_DRIVER=database Normally , QUEUE_DRIVER=sync tries to sent email immedi… Read More
  • Create Your own command on Laravel 5.2 In Laravel application , when you try this command php artisan you would see lots of command for laravel application. So if you want to create your own command, laravel provide you very easy way to do this. Here is the … Read More
  • Add Cron jobs to run scheduling jobs for Laravel Developer on Ubuntu I have faced a lot of problems to run schedule jobs in Laravel. I am using Ubuntu 14.04 and i spent a lot of time to make it work. Here i wrote down the basic procedure that i followed. First  To run scheduled job… Read More
  • Laravel 5.2 queuing Event listeners First , we need to create Event and to listen event, we also have to create listener. To do this , laravel provides us several ways. The easiest way to create event and corresponding listener we can use this command php ar… Read More
  • Laravel 5.2 Implicit model binding In Laravel 5.2 new feature called implicit model binding added. Which can be implement efficiently and in a very easy manner. Here how its done : In your routes.php file create a new route Route::get('user',function(){}); … Read More

0 comments:

Post a Comment