Instalar LAMP

Ubuntu 16.04

sudo apt-get install apache2
sudo apt-get install mysql-client mysql-server
sudo apt-get install php php-mysql libapache2-mod-php

sudo gedit /var/www/html/test.php
  < ? php phpinfo(); ? >


$ sudo mysql -u root -p #newer versions of mysql-server don't permit using root username to connect when executing from non-root (non-sudo) login. So, you have to create a different username in mysql 

mysql> create user 'usuario'@'localhost' identified by 'password'; #Create a new mysql user "nuevo" and grant this user privileges on all databases. I chose to have a blank password.
mysql> GRANT ALL PRIVILEGES ON * . * TO 'usuario'@'localhost';
mysql> exit

sudo apt-get install openjdk-8-jdk #netbeans 8.2 requiere jdk 8 //descargar netbeans
cd /home/user/Descargas
chmod +x netbeans-8.2-php-linux-x64
./netbeans-8.2-php-linux-x64 #Descargar workbench e ejecutar instalación del .deb
sudo dpkg -i mysql-workbench-community-6.3.9-1ubuntu16.10-amd64.deb 
sudo apt-get install -f

sudo apt-get install git
git clone

sudo apt-get install meld

sudo apt-get install phpmyadmin #opcional, instalar phpmyadmin
sudo apt-get install php-pgsql #opcional: Librerias de acceso a postgres





Leave a Reply

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>