martes, 21 de febrero de 2017

Configuracion LAMP Server con UBUNTU 14.04 LTS


1.- INSTALACION UBUNTU SERVER 14.04 LTS
1.1.- Actualizar repositorios y aplicar updates.

        - sudo apt-get update
        - sudo apt-get upgrade

1.2.-Instalación interfaz gráfica

Instalar GNOME :
 sudo apt-get install ubuntu-desktop
Instalar KDE :
 sudo apt-get install kubuntu-desktop
Instalar Xfce :  
 sudo apt-get install xubuntu-desktop

1.3.-Instalación paquete de idiomas
           
El idioma por defecto es el inglés. Para pasarlo a español, abre la Terminal y teclea
cada código individualmente.

sudo apt-get install language-pack-es
sudo apt-get install language-pack-es-base
sudo apt-get install language-pack-gnome-es
sudo apt-get install language-pack-gnome-es-base
sudo apt-get install language-selector
      sudo apt-get install language-support-es

1.4.-Instalación APACHE

        - sudo apt-get install apache2 apache2-utils

1.5.- Instalación MySQL

        - sudo apt-get install mysql-server
        - sudo apt-get install mysql-client
        - sudo apt-get install php5-mysql
        - sudo apt-get install libapache2-mod-auth-mysql

1.6.- Instalación PHP

        - sudo apt-get install php5
        - sudo apt-get install libapache2-mod-php5
        - sudo apt-get install php5-mysql

1.7.- Instalación phpMyAdmin

        - sudo apt-get install phpMyAdmin

1.8.- Instalación Webmin

Añadir repositorio official de Webmin : 
Editar fichero /etc/apt/sources.list -->   sudo gedit /etc/apt/sources.list

Añadir las siguientes lineas:
        deb http://download.webmin.com/download/repository sarge contrib
        deb http://webmin.mirror.somersettechsolutions.co.uk/repository sarge contrib

Añadir la GPG key:
  sudo wget http://www.webmin.com/jcameron-key.asc
        sudo apt-key add jcameron-key.asc
Actualizar la lista de repositorios:
        sudo apt-get update
Instalar webmin:
        sudo apt-get install webmin

2.- Comandos básicos Ubuntu

2.1.- Permisos chmod

        Los grupos son propietario, grupo y todos
        - ls -l
        - Chmod –R 777 prueba

        111 RWX 7
        110 RW- 6
        101 R-X 5
        100 R—  4

2.2.- Cambiar IP Statica

        - sudo gedit /etc/network/interfaces

               #iface eth0 inet dhcp
               Iface eth0 inet static
               Address 192.168.1.9
               Netmask 255.255.255.0
               Network 192.168.1.0
               Broadcast 192.168.1.255
               Gateway 192.168.1.1
               Dns-nameservers 8.8.8.8

        - sudo gedit /etc/resolv.conf

               Añadir :
               Nameserver 192.168.1.1
               Nameserver 8.8.8.8
               Seach myred.local

        - sudo gedit /etc/hosts

               Añadir :
               192.168.1.9    srvubuntu.myred.local  srvubuntu

        - sudo ifdown eth0
        - sudo ifup eth0

 2.3.- Reiniciar Apache

Reiniciar Apache:       sudo /etc/init.d/apache2 restart
Parar/Arrancar:         sudo /etc/init.d/apache2 stop
sudo /etc/init.d/apache2 start
       
 2.4.- Descomprimir ficheros .tar

        Descomprimir .tgz

        - tar –xvzf archivo.tgz

        Descomprimir .tar

        - tar –xvf archivo.tar

        Descomprimir .tar.gz

        - tar zxf archivo.tgz

        Descomprimir tar.bz2

        - tar jxvf archivo.tar.bz2

2.5.- Instalacion extensión LDAP PHP

-  Sudo apt-get install php5-ldap

No hay comentarios:

Publicar un comentario