Crear un directorio virtual en ubuntu utilizando apache
En el siguiente artículo comentaremos como crear un directorio virtual en apache instalado en una distribución Ubuntu.
Instalación del servidor LAMP
Lo primero que ha sido necesario ha sido instalar un servidor HTTP en nuestra máquina. Para ello hemos instalado el lote completo, servidor web, servidor MySQL y PHP. Hemos seguido los pasos indicados en la propia página de Ubuntu, https://help.ubuntu.com/community/ApacheMySQLPHP que lo explica de forma muy sencilla. Basta con instalar tasksel y a continuación el servidor completo.
$ sudo apt-get install tasksel $ sudo tasksel install lamp-server
Durante la instalación nos pedirá algunos parámetros como la contraseña de administración de MySQL, que simplemente tendremos que introducir.
Creación del directorio virtual
A continuación creamos el directorio donde queremos guardar los archivos y que utilizaremos dentro de apache. En nuestro caso lo hemos creado en una carpeta personal.
$ mkdir /home/usuario/web
Para que todo funcione correctamente hemos de añadir al usuario al grupo de aplicaciones apache (www-data). A continuación asignaremos este directorio al grupo y finalmente le otorgaremos los permisos correspondientes de forma recuersiva y que todos los archivos que creemos en este directorio hereden estos permisos (esto lo conseguimos con el 2 indicado en los permisos). Eso lo realizamos de la siguiente forma:
$ sudo usermod -a -G www-data usuario $ sudo chgrp -R www-data /home/usuario/web $ sudo chmod -R 2775 /home/usuario/web
Finalmente para poder realizar prácticas creamos un archivo index. Para hacerlo un poco más bonito he creado el siguiente:
$ echo '<?php phpinfo(); ?>' > index.php
Configuración apache
Finalmente lo que hacemos es configurar apache para que tenga en cuenta el directorio que hemos creado. Para ello modificaremos el archivo /etc/apache2/sites-enabled/000-default y añadiremos el siguiente párrafo:
Alias /virtual /home/usuario/web <Directory /home/usuario/web> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory>
Y reiniciamos el servidor apache
$ sudo service apache2 restart
Con esto ya tenemos el directorio virtual configuado y lo podemos comprobar con un navegador tecleando http://localhost/virtual. Nos mostrará la configuración del servidor por pantalla.
Esperemos que haya sido de utiliad.
Comentarios
PatrickDiort (no verificado)
Vie, 22/03/2019 - 08:09
Enlace permanente
100mg cialis 61 mg
Hello there! generic cialis review online very good web page.
slaestpenq (no verificado)
Vie, 22/03/2019 - 12:51
Enlace permanente
levitra online pharmacy review - 754146601221
Buy prednisolone eye drops Where can buy cytotec in malaysia Buy cytotec in philippines Levitra online generic Prednisolone tablets online
dlaestrlvf (no verificado)
Vie, 22/03/2019 - 13:46
Enlace permanente
levitra generico online forum - 100193761642
Buy cytotec in kuwait Buying valtrex online reviews Cara beli cytotec online Buy levitra in singapore Online levitra generic
klaestcbyp (no verificado)
Vie, 22/03/2019 - 16:15
Enlace permanente
where can i buy cytotec in south africa - 958608542689
Best price levitra online Valtrex buy canada Levitra originale online italia Buy valtrex online uk Buy valtrex pills online
rlaestnpkn (no verificado)
Vie, 22/03/2019 - 17:47
Enlace permanente
where to buy cytotec pills - 32143364672
Where can i buy cytotec here in cebu Valtrex online order Cytotec where to buy philippines Cheap cytotec pills online Can you buy zoloft over the counter
PatrickDiort (no verificado)
Vie, 22/03/2019 - 19:40
Enlace permanente
canada drug online 349 mg
Howdy! canada online pharmacy viagra very good web site.
slaestktys (no verificado)
Vie, 22/03/2019 - 20:32
Enlace permanente
levitra online sale - 766307894264
Misoprostol cytotec buy online Levitra ohne rezept paypal Canadian pharmacy online levitra Vendita levitra originale online Buy valtrex in usa
flaestdqws (no verificado)
Vie, 22/03/2019 - 21:17
Enlace permanente
how to buy levitra online - 59481388932
Buy valtrex in uk Buy cheap generic valtrex Where to buy levitra in london Valtrex generic cheap Cytotec in philippines where can i buy
qlaestbixk (no verificado)
Vie, 22/03/2019 - 22:47
Enlace permanente
cara beli cytotec online - 838609980904
Buy cytotec online philippines Buy cytotec baguio Where to buy cytotec pills in cebu Cheap prednisolone tablets Buy original levitra online
ilaesttoty (no verificado)
Vie, 22/03/2019 - 23:30
Enlace permanente
can i buy cytotec over the counter at walmart - 17312629322
Buy valtrex australia Buy levitra from uk Cheap cytotec pills Buy cialis levitra viagra Online drugstore valtrex
olaestjpfh (no verificado)
Sáb, 23/03/2019 - 01:57
Enlace permanente
where to buy levitra over the counter - 659237730683
Zoloft order online Buy cheap generic levitra online Levitra online erfahrungen Online apotheke levitra generika Buy cytotec online malaysia
ilaestwomi (no verificado)
Sáb, 23/03/2019 - 02:46
Enlace permanente
valtrex to buy uk - 698329301286
Cheap generic valtrex Buying valtrex online safe Buy valtrex over the counter Mail order levitra online Buy zoloft cheap
zlaestbokl (no verificado)
Sáb, 23/03/2019 - 03:24
Enlace permanente
get levitra online - 767471145836
Valtrex generic ordering online Levitra buy usa Buy levitra from india Where can i buy levitra in london Valtrex 500 mg buy online
olaestiddb (no verificado)
Sáb, 23/03/2019 - 06:04
Enlace permanente
ordering valtrex canada - 404126431147
Buying valtrex online reviews Cara beli cytotec online Buy levitra in singapore Online levitra generic Best place to buy levitra online
claestpxnw (no verificado)
Sáb, 23/03/2019 - 08:45
Enlace permanente
cheapest zoloft online - 831345413798
Cytotec online seller Levitra order online Cytotec online purchase Real valtrex online Buy mifepristone and cytotec online
nlaestspyg (no verificado)
Sáb, 23/03/2019 - 10:52
Enlace permanente
cytotec online india - 4017231613
Levitra pay with paypal Pil cytotec online Get levitra online Buy original valtrex Levitra costo paypal
jlaestxvrd (no verificado)
Sáb, 23/03/2019 - 14:42
Enlace permanente
where to buy cytotec pills in dubai - 93362447183
Buy levitra 10 mg Viagra medicine online levitra Buy valtrex online prescription Cytotec abortion pills online Can i buy levitra online
llaestezms (no verificado)
Sáb, 23/03/2019 - 17:04
Enlace permanente
methylprednisolone dose pack online - 664987980306
Where can i buy original cytotec in the philippines Where we can buy cytotec in dubai Cheap alternative to valtrex Buy cytotec online india Cheap levitra uk
dlaestsbpg (no verificado)
Sáb, 23/03/2019 - 17:49
Enlace permanente
where to buy authentic cytotec in quiapo - 334914921419
Online drugstore valtrex Buy cytotec tablets online Buy levitra using paypal Buy cialis viagra levitra online Buy cytotec abortion pills
glaestzgnx (no verificado)
Sáb, 23/03/2019 - 19:19
Enlace permanente
buy valtrex australia - 87177911650
Levitra purchase online Buy levitra online australia Levitra order uk Buy cytotec 200 mg online Cytotec buy online usa
qlaestdijn (no verificado)
Sáb, 23/03/2019 - 20:48
Enlace permanente
where to buy cytotec in the philippines - 98865911626
Cytotec where to buy in philippines Valtrex purchase canada Misoprostol cytotec buy online Levitra ohne rezept paypal Canadian pharmacy online levitra
hlaestyymu (no verificado)
Sáb, 23/03/2019 - 21:36
Enlace permanente
where to buy cytotec in quiapo 2014 - 328471313562
Buying valtrex online safe Buy valtrex over the counter Mail order levitra online Buy zoloft cheap Valtrex prescriptions online
wlaestnvan (no verificado)
Sáb, 23/03/2019 - 22:25
Enlace permanente
buy cheapest levitra - 226214651167
Cytotec online store Cheap levitra in uk Cytotec uk buy Can i buy valtrex over the counter uk Prednisolone acetate buy online
Jeremytow (no verificado)
Sáb, 23/03/2019 - 23:20
Enlace permanente
free cialis trial online 145 mg
Hi! free cialis samples excellent web page.
nlaestirqz (no verificado)
Dom, 24/03/2019 - 01:21
Enlace permanente
can you buy valtrex in canada - 25569827478
Brand name valtrex online Cytotec tablets online Prednisolone order online Cytotec tablet online Levitra online from india
jlaesteqrv (no verificado)
Dom, 24/03/2019 - 04:40
Enlace permanente
cheap levitra generic - 770176704526
Buying valtrex cheap Buy valtrex in uk Buy cheap generic valtrex Where to buy levitra in london Valtrex generic cheap
vlaestxasz (no verificado)
Dom, 24/03/2019 - 05:28
Enlace permanente
order misoprostol cytotec - 74287541573
Where to buy abortion pills misoprostol (cytotec) Buy levitra reviews Buy generic levitra online canada Buy valtrex from canada Where can i buy prednisolone 5mg
claestelqd (no verificado)
Dom, 24/03/2019 - 06:49
Enlace permanente
where can i buy levitra in australia - 144990327578
Prednisolone 5mg to buy Buy prednisolone 1mg tablets Comprare levitra generico online Brand name valtrex online Cytotec tablets online
vlaestgmkn (no verificado)
Dom, 24/03/2019 - 08:15
Enlace permanente
levitra online greece - 47392415900
Valtrex online cheap Where can i buy cytotec in usa Where to buy cytotec pills Cheap generic zoloft Order prednisolone online uk
Jeremytow (no verificado)
Dom, 24/03/2019 - 09:47
Enlace permanente
cialis com free offer 280 mg
Howdy! free samples cialis beneficial internet site.
elaestnryy (no verificado)
Dom, 24/03/2019 - 10:49
Enlace permanente
order zoloft from canada - 337860167249
Buy prednisolone 25mg tablets Levitra 10 mg buy Buy brand levitra online Levitra generico acquisto online Buy levitra online in india
nlaestrlqe (no verificado)
Dom, 24/03/2019 - 11:33
Enlace permanente
where to buy prednisolone 5mg - 77570498564
Get valtrex prescription online Where to buy original cytotec in manila Levitra cialis online Purchase levitra canada Buy methylprednisolone online
blaestguhw (no verificado)
Dom, 24/03/2019 - 12:11
Enlace permanente
buy prednisolone tablets online - 259188734
Levitra pay with paypal Pil cytotec online Get levitra online Buy original valtrex Levitra costo paypal
slaestsmor (no verificado)
Dom, 24/03/2019 - 13:28
Enlace permanente
buy misoprostol cytotec - 654119872372
Valtrex online usa Levitra buy us Is buying levitra online safe Cheap levitra canadian pharmacy Prednisolone buy online uk
claestudip (no verificado)
Dom, 24/03/2019 - 14:06
Enlace permanente
buy cytotec online - 21186259456
Safe to buy levitra online Buy viagra cialis levitra online uk Valtrex 500mg online Buy cytotec pills Can u order valtrex online
slaestmcds (no verificado)
Dom, 24/03/2019 - 16:07
Enlace permanente
online levitra purchase - 8294185590
Buy levitra nz Buy levitra 20mg online Levitra for sale cheap Can you buy prednisolone over the counter uk Cytotec philippines can buy
elaestfalh (no verificado)
Dom, 24/03/2019 - 17:22
Enlace permanente
purchase methylprednisolone online - 627315544650
Viagra medicine online levitra Buy valtrex online prescription Cytotec abortion pills online Can i buy levitra online Cytotec to buy uk
glaestgaob (no verificado)
Dom, 24/03/2019 - 19:25
Enlace permanente
beli cytotec online malaysia - 9032441298
Can i buy levitra at walgreens Cheap cytotec online How to get cytotec online Cheap valtrex pills Cheap cytotec manila
klaestijod (no verificado)
Dom, 24/03/2019 - 20:03
Enlace permanente
cytotec online purchase - 445407982302
Can i get valtrex online Real levitra online Order methylprednisolone online Prednisolone 5mg buy uk Cytotec purchase online
slaestmaeo (no verificado)
Dom, 24/03/2019 - 20:43
Enlace permanente
viagra levitra online - 55880920659
Cheap cytotec pills Buy cialis levitra viagra Online drugstore valtrex Buy cytotec tablets online Buy levitra using paypal
llaestxcrs (no verificado)
Dom, 24/03/2019 - 21:20
Enlace permanente
buying cytotec philippines - 8735775494
Order valtrex generic Buy valtrex medication Valtrex pharmacy online Where to buy cytotec in usa Buy valtrex 1000 mg
rlaestxbxn (no verificado)
Dom, 24/03/2019 - 22:03
Enlace permanente
buy cytotec over counter - 852676988792
Buy levitra boots Valtrex online uk Buy levitra at walmart Buy levitra professional online Buy zoloft online australia
tlaestkbrn (no verificado)
Dom, 24/03/2019 - 22:46
Enlace permanente
buy levitra online 24 hours - 986557782610
Where to buy original cytotec in philippines Vendita levitra online italia Buy cytotec singapore Prednisolone 5mg tablets to buy Levitra paypal bezahlen
slaestlbzx (no verificado)
Dom, 24/03/2019 - 23:31
Enlace permanente
valtrex buy cheap - 655361416404
Valtrex australia buy Generic zoloft buy Can you buy cytotec at walgreens Dove acquistare levitra online Cytotec buy online uk
klaestsiwn (no verificado)
Lun, 25/03/2019 - 00:54
Enlace permanente
online pharmacy valtrex reviews - 16431554970
Buy cytotec in the philippines Online levitra purchase Buy cytotec in nigeria Levitra bayer vendita online Zoloft australia buy
xlaestvufm (no verificado)
Lun, 25/03/2019 - 01:33
Enlace permanente
cytotec abortion pill buy online - 882762796702
Best price levitra online Valtrex buy canada Levitra originale online italia Buy valtrex online uk Buy valtrex pills online
plaestqxqj (no verificado)
Lun, 25/03/2019 - 02:13
Enlace permanente
buy levitra in uk - 2351267517
Buy cytotec china Cialis levitra online Purchase generic levitra online How to buy valtrex online Zoloft online buy
llaestxpxw (no verificado)
Lun, 25/03/2019 - 03:30
Enlace permanente
buy zoloft online india - 35617193738
Can u buy cytotec over the counter Buy cytotec in india Buy zoloft generic online Where to buy genuine cytotec in manila Cytotec online purchase philippines
jlaestrnwx (no verificado)
Lun, 25/03/2019 - 04:51
Enlace permanente
buy levitra professional - 58354295420
[url=http://clearwateracademy.net/forums/topic/zoloft-online-overnight/]Zoloft online overnight[/url] [url=http://www.waifsandstraysdogrescue.co.uk/forums/topic/10mg-levitra-onlin... levitra online[/url] [url=http://earthuru.com/forums/topic/can-you-buy-levitra-over-the-counter-in... you buy levitra over the counter in spain[/url] [url=http://www.marhabayoga.com/forums/topic/buy-valtrex-online-australia/]Buy valtrex online australia[/url] [url=http://danilova.biz/forums/topic/buy-methylprednisolone-dose-pack/]Buy methylprednisolone dose pack[/url]
plaestnzcc (no verificado)
Lun, 25/03/2019 - 05:37
Enlace permanente
buy valtrex cheap online - 608686105283
Buy levitra boots Valtrex online uk Buy levitra at walmart Buy levitra professional online Buy zoloft online australia
Páginas
Añadir nuevo comentario