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
flaestzfzd (no verificado)
Jue, 11/04/2019 - 02:57
Enlace permanente
where can i buy cytotec in south africa - 983158949730
Valtrex purchase online Can i purchase valtrex over the counter Levitra where to buy Buy cytotec over the counter Levitra generico online europa
mlaestxfxv (no verificado)
Jue, 11/04/2019 - 10:40
Enlace permanente
online levitra generic - 160087985
Where can i get zoloft online Buy valtrex cream Order cytotec online in philippines Buying cytotec philippines Levitra online singapore
flaesttpnk (no verificado)
Jue, 11/04/2019 - 12:15
Enlace permanente
buy cytotec pills - 247615466354
Misoprostol cytotec buy online Levitra ohne rezept paypal Canadian pharmacy online levitra Vendita levitra originale online Buy valtrex in usa
wlaestjzxr (no verificado)
Jue, 11/04/2019 - 13:47
Enlace permanente
where can i buy cytotec in abu dhabi - 957369420953
Buy cytotec in uae Mail order levitra Levitra online purchase Buy cytotec cheap online Buy cytotec in malaysia
elaestqubf (no verificado)
Jue, 11/04/2019 - 16:54
Enlace permanente
buy valtrex in mexico - 694423133937
Methylprednisolone injection purchase Buy mifepristone cytotec ru486 misoprostol Levitra online overnight Where to buy cytotec in philippines 2013 Buy zoloft online cheap
elaestcqkg (no verificado)
Jue, 11/04/2019 - 20:01
Enlace permanente
where to buy misoprostol (cytotec) - 532979779741
Purchase cytotec online Viagra cialis levitra online pharmacy Levitra orodispersible buy Where to order levitra online Buy valtrex online mexico
slaesthwki (no verificado)
Jue, 11/04/2019 - 21:34
Enlace permanente
buy valtrex from canada - 508469699827
Buy cheap cytotec online Buy cytotec malaysia Can i buy prednisolone online Where to buy cytotec in the philippines Rxmeds hub order levitra online
llaestsrma (no verificado)
Jue, 11/04/2019 - 23:02
Enlace permanente
cheap levitra in usa - 52532687819
Purchase levitra online Valtrex tablets buy online Cytotec online store Cheap levitra in uk Cytotec uk buy
wlaestajzr (no verificado)
Vie, 12/04/2019 - 02:51
Enlace permanente
online pharmacy cytotec - 660433311345
Cheap cytotec online How to get cytotec online Cheap valtrex pills Cheap cytotec manila Methylprednisolone buy online uk
glaeststlb (no verificado)
Vie, 12/04/2019 - 04:16
Enlace permanente
where can buy cytotec in malaysia - 761263244283
Where to buy cytotec in kenya Buy viagra levitra and cialis Where can i buy levitra online Buy cytotec online usa Buy generic levitra vardenafil
tlaestxzxr (no verificado)
Vie, 12/04/2019 - 07:50
Enlace permanente
buy cytotec in usa online - 5813379394
Buy valtrex generic Levitra with dapoxetine online Where can i buy cytotec here in philippines Buy valtrex in canada Levitra online next day delivery
ulaestvlhr (no verificado)
Vie, 12/04/2019 - 09:14
Enlace permanente
buy valtrex in usa - 150619641820
Valtrex 500 mg buy Order levitra from canada Can i buy zoloft online Buy cytotec online in uk Can you buy valtrex over the counter in canada
tlaestqpqp (no verificado)
Vie, 12/04/2019 - 10:40
Enlace permanente
levitra originale 10 mg online - 590271508483
Order valtrex uk Where can i buy original cytotec in the philippines Where we can buy cytotec in dubai Cheap alternative to valtrex Buy cytotec online india
alaestygil (no verificado)
Vie, 12/04/2019 - 15:00
Enlace permanente
methylprednisolone purchase online - 809606830342
Where to buy cytotec in metro manila Valtrex online pharmacy Generic levitra online cheap Buy generic levitra in usa Valtrex buy usa
flaesttbju (no verificado)
Vie, 12/04/2019 - 19:22
Enlace permanente
levitra online europe - 298408329942
Buy valtrex cheap online Brand zoloft online Prednisolone tablets buy online Buy cytotec misoprostol online Levitra australia online
elaestkwhi (no verificado)
Sáb, 13/04/2019 - 00:48
Enlace permanente
buy valtrex overnight - 210966897235
Where to buy cytotec online philippines Cheap generic valtrex Buying valtrex online safe Buy valtrex over the counter Mail order levitra online
nlaestagsg (no verificado)
Sáb, 13/04/2019 - 02:10
Enlace permanente
buy levitra 10 mg - 511134141380
Online prednisolone 5mg Valtrex generic online Buy cytotec for abortion Buy liquid prednisolone online Purchase generic levitra
jlaestpzjy (no verificado)
Sáb, 13/04/2019 - 03:25
Enlace permanente
buy valtrex online usa - 49915584942
Viagra cialis levitra online Levitra online pay paypal Where to buy cytotec in manila Levitra purchase cheap Cheapest cytotec online
ulaestwcup (no verificado)
Sáb, 13/04/2019 - 04:39
Enlace permanente
best levitra online - 6064727385
Buy zoloft generic online Where to buy genuine cytotec in manila Cytotec online purchase philippines Valtrex to buy uk Buy valtrex online in usa
wlaestyswb (no verificado)
Sáb, 13/04/2019 - 05:56
Enlace permanente
buy levitra online in uk - 4156166897
Buy generic levitra canada Buying valtrex online Methylprednisolone dose pack online Where to buy valtrex 500mg Levitra original buy
llaestjwwo (no verificado)
Sáb, 13/04/2019 - 07:11
Enlace permanente
how to buy cytotec pills - 512126133931
Cytotec philippines can buy Where to buy cytotec abortion pills Prednisolone 5mg to buy uk Buy valtrex from india Levitra generika 20mg paypal
rlaestrzjb (no verificado)
Sáb, 13/04/2019 - 14:21
Enlace permanente
get zoloft online - 13499889953
Online prescriptions valtrex Cytotec online australia Buy levitra fast delivery Valtrex tablets online Order zoloft online
tlaestmjgj (no verificado)
Sáb, 13/04/2019 - 15:38
Enlace permanente
buy valtrex in uk - 695512821740
Valtrex online fast delivery Valtrex online reviews Prednisolone eye drops online Can i buy levitra in mexico Valtrex rx online
blaestbjot (no verificado)
Sáb, 13/04/2019 - 16:53
Enlace permanente
levitra 20 mg vendita online - 52863795528
Valtrex cheap online Buy levitra overnight shipping Misoprostol (cytotec) where to buy Buy cytotec online europe Where can i buy generic levitra
nlaestrmzb (no verificado)
Sáb, 13/04/2019 - 18:13
Enlace permanente
generic levitra online pharmacy - 697232242234
Purchase zoloft online Where to buy cytotec in cagayan de oro city Buy zoloft online canada Zoloft online australia Cytotec online pharmacy malaysia
blaestapyr (no verificado)
Sáb, 13/04/2019 - 19:31
Enlace permanente
cheap cytotec uk - 88577435283
Can you buy prednisolone over the counter uk Cytotec philippines can buy Where to buy cytotec abortion pills Prednisolone 5mg to buy uk Buy valtrex from india
claestowak (no verificado)
Sáb, 13/04/2019 - 20:51
Enlace permanente
valtrex 500 mg buy online - 127504411113
Levitra online pay paypal Where to buy cytotec in manila Levitra purchase cheap Cheapest cytotec online Buy cytotec online fast delivery
ylaestsfgb (no verificado)
Sáb, 13/04/2019 - 22:13
Enlace permanente
cytotec online europe - 198797758585
Where we can buy cytotec in dubai Cheap alternative to valtrex Buy cytotec online india Cheap levitra uk Buy prednisolone tablets
wlaestsghi (no verificado)
Sáb, 13/04/2019 - 23:27
Enlace permanente
buy cytotec online canada - 811479503404
Buy valtrex 1 gram Jual cytotec online bandung Cytotec online canada Levitra online overnight delivery Buy levitra professional
rlaestnxdo (no verificado)
Dom, 14/04/2019 - 00:46
Enlace permanente
zoloft order online - 968408269948
Levitra buy online india Valtrex online overnight Order valtrex generic online Levitra uk cheap Viagra levitra online
wlaestfequ (no verificado)
Dom, 14/04/2019 - 02:07
Enlace permanente
cheap levitra pills - 438208288173
Buying prednisolone online uk Online levitra reviews Valtrex prescription online Valtrex online purchase Valtrex mail order
olaestdzoo (no verificado)
Dom, 14/04/2019 - 03:19
Enlace permanente
buy cytotec abortion pill online - 303347111417
Ordering valtrex online Cheap valtrex online Buy cheap cytotec online Buy cytotec malaysia Can i buy prednisolone online
dlaestpebl (no verificado)
Dom, 14/04/2019 - 04:36
Enlace permanente
methylprednisolone injection purchase - 824276708153
Cheap generic levitra professional Valtrex for sale online Buy bayer levitra online Buy valtrex online with prescription Where can i buy cytotec in kuwait
glaestvksg (no verificado)
Dom, 14/04/2019 - 05:54
Enlace permanente
can you buy prednisolone over the counter uk - 158148622636
Prednisolone 5mg buy online uk Levitra online opinioni Where to buy cytotec in zimbabwe Cytotec buy online in uae Can you buy cytotec at cvs
tlaestenvo (no verificado)
Dom, 14/04/2019 - 07:09
Enlace permanente
how to buy cytotec in malaysia - 498101494568
Can i buy levitra online Cytotec to buy uk Cheap valtrex generic Levitra online pharmacy canada Zoloft order online
claestczst (no verificado)
Dom, 14/04/2019 - 08:26
Enlace permanente
cytotec venta online espaГ±a - 417630689942
Online pharmacy cytotec Get zoloft online Buy levitra in south africa Buy levitra cialis viagra Cheap levitra canada
xlaestjbjk (no verificado)
Dom, 14/04/2019 - 09:46
Enlace permanente
buy levitra canada online - 227734478701
Order cytotec online in philippines Buying cytotec philippines Levitra online singapore Valtrex buy uk Prednisolone 5mg buy online
llaestyabf (no verificado)
Dom, 14/04/2019 - 11:09
Enlace permanente
buying valtrex thailand - 13564274171
Order cytotec online in philippines Buying cytotec philippines Levitra online singapore Valtrex buy uk Prednisolone 5mg buy online
ilaestvgzc (no verificado)
Dom, 14/04/2019 - 12:31
Enlace permanente
levitra uk online - 244126424343
Can you purchase valtrex online Buy generic viagra cialis levitra Cheap levitra professional Buying prednisolone online uk Online levitra reviews
klaestqzjo (no verificado)
Dom, 14/04/2019 - 13:58
Enlace permanente
non generic levitra online - 88027653931
Levitra with dapoxetine online Where can i buy cytotec here in philippines Buy valtrex in canada Levitra online next day delivery Cytotec where can i buy it
ylaestiwzc (no verificado)
Dom, 14/04/2019 - 15:20
Enlace permanente
get valtrex cheap - 280777271732
Order levitra from canada Can i buy zoloft online Buy cytotec online in uk Can you buy valtrex over the counter in canada Levitra buy online uk
qlaestgvzs (no verificado)
Dom, 14/04/2019 - 16:43
Enlace permanente
safe levitra online - 864450804232
Buy levitra overnight shipping Misoprostol (cytotec) where to buy Buy cytotec online europe Where can i buy generic levitra Where can i buy cytotec in abu dhabi
wlaestnedo (no verificado)
Dom, 14/04/2019 - 20:42
Enlace permanente
buy cytotec iloilo - 211392724301
Prednisolone purchase uk Buy levitra cheap Buy cheap zoloft online Order zoloft uk Canada levitra buy online
wlaestysts (no verificado)
Lun, 15/04/2019 - 00:54
Enlace permanente
where to buy cytotec online in the philippines - 9277970542
Levitra to buy Levitra online order Where to buy cytotec in manila 2014 Where can i buy cytotec for abortion Buy levitra safely online
elaestlber (no verificado)
Lun, 15/04/2019 - 02:16
Enlace permanente
zoloft online cheap - 9793084467
Is it legal to order levitra online Levitra paypal accepted Buy valtrex walmart Buy valtrex cream online Order cytotec in philippines
ilaestsfmd (no verificado)
Lun, 15/04/2019 - 03:37
Enlace permanente
where we can buy cytotec in dubai - 853848847649
Buy levitra 20mg online Levitra for sale cheap Can you buy prednisolone over the counter uk Cytotec philippines can buy Where to buy cytotec abortion pills
rlaestasgm (no verificado)
Lun, 15/04/2019 - 04:53
Enlace permanente
where can i buy prednisolone uk - 931181218201
Generic valtrex online pharmacy Buy zoloft online uk Buy cytotec bahrain Order valtrex generic Buy valtrex medication
zlaestuzed (no verificado)
Lun, 15/04/2019 - 06:08
Enlace permanente
cytotec online usa - 560151550881
Valtrex pharmacy online Where to buy cytotec in usa Buy valtrex 1000 mg Buy cheap cytotec in usa Buy levitra online singapore
alaestwmab (no verificado)
Lun, 15/04/2019 - 07:24
Enlace permanente
levitra online rx - 940640587759
Levitra online pharmacy Can you buy prednisolone online Cheap generic levitra india Where to buy cytotec in cebu city Buy valtrex uk
claestccnj (no verificado)
Lun, 15/04/2019 - 10:03
Enlace permanente
online pharmacy cytotec - 631172592608
Non generic levitra online Cheap cytotec uk Buy discount levitra Levitra buy cheap Safest place to buy levitra online
Páginas
Añadir nuevo comentario