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
claestoaid (no verificado)
Jue, 28/03/2019 - 15:25
Enlace permanente
where can i buy cytotec in cebu - 708466923829
Levitra generico vendita online Buy levitra ireland Valtrex online fast delivery Valtrex online reviews Prednisolone eye drops online
claestpfxj (no verificado)
Jue, 28/03/2019 - 17:12
Enlace permanente
buy cytotec iloilo - 258627755910
Where can i buy levitra in uk Best place to buy generic levitra online Buy valtrex for cold sores Cytotec where to buy Buy levitra paypal
hlaestmuid (no verificado)
Jue, 28/03/2019 - 17:51
Enlace permanente
levitra online australia - 978797881320
Buy levitra in singapore Online levitra generic Best place to buy levitra online Dangers of buying levitra online Buy cytotec online cheap
xlaestkysz (no verificado)
Jue, 28/03/2019 - 18:31
Enlace permanente
buy levitra greece - 423342914515
Cytotec online pharmacy malaysia Buy prednisolone 5mg uk Where to buy cytotec in manila philippines Levitra online deutschland Buy valtrex online cheap canada
vlaestjkpb (no verificado)
Jue, 28/03/2019 - 19:21
Enlace permanente
levitra pills online - 407566103154
Where can i buy cytotec in uae Buying levitra online australia Levitra online store Where can i get cheap levitra Valtrex generic ordering online
ulaestzhem (no verificado)
Jue, 28/03/2019 - 19:58
Enlace permanente
buy cytotec europe - 667544847389
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
wlaestpxhx (no verificado)
Jue, 28/03/2019 - 20:37
Enlace permanente
cytotec 200 mg buy online - 609772630811
Cytotec pills online Where to buy original cytotec philippines Can i buy valtrex online Cheap viagra cialis levitra Where to buy prednisolone tablets
elaestnhou (no verificado)
Jue, 28/03/2019 - 21:17
Enlace permanente
cheap valtrex online - 152588910197
Levitra generico online sicuro Valtrex 500 mg buy Order levitra from canada Can i buy zoloft online Buy cytotec online in uk
wlaestfrsv (no verificado)
Jue, 28/03/2019 - 21:54
Enlace permanente
valtrex purchase online - 506197304679
Levitra professional online Valtrex buy online uk Zoloft online overnight 10mg levitra online Can you buy levitra over the counter in spain
claestzhch (no verificado)
Jue, 28/03/2019 - 22:34
Enlace permanente
cheap cytotec uk - 264457475266
Cheap cytotec for sale Viagra cialis levitra online australia Buy levitra greece Generic valtrex online cheap Cytotec where to buy in manila
flaestqoby (no verificado)
Jue, 28/03/2019 - 23:13
Enlace permanente
ordering valtrex overnight delivery - 22024859199
Buy generic cytotec online Levitra online reviews Order valtrex overnight Ordering zoloft online Cytotec online malaysia
hlaestkviu (no verificado)
Jue, 28/03/2019 - 23:50
Enlace permanente
buy prednisolone online uk - 944869120318
Cytotec buy online Buy valtrex online cheap Valtrex australia buy Generic zoloft buy Can you buy cytotec at walgreens
ulaestpnlj (no verificado)
Vie, 29/03/2019 - 00:25
Enlace permanente
where can i buy cytotec pills in the philippines - 8029311872
Purchase valtrex canada Where to buy cytotec in kenya Buy viagra levitra and cialis Where can i buy levitra online Buy cytotec online usa
blaestamdl (no verificado)
Vie, 29/03/2019 - 01:02
Enlace permanente
buy levitra paypal - 27653489982
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
llaestlxxd (no verificado)
Vie, 29/03/2019 - 01:40
Enlace permanente
levitra kopen online - 527141634678
Where can i buy cytotec for abortion Buy levitra safely online Cheap valtrex for sale Cheapest levitra online Methylprednisolone online pharmacy
glaestgkoq (no verificado)
Vie, 29/03/2019 - 02:18
Enlace permanente
buy cytotec in new zealand - 949629387662
Brand zoloft online Prednisolone tablets buy online Buy cytotec misoprostol online Levitra australia online Buy levitra in new zealand
flaestfwcp (no verificado)
Vie, 29/03/2019 - 02:58
Enlace permanente
how to get cheap levitra - 10925936518
Cheap levitra uk Buy prednisolone tablets Buy levitra online europe Where can i buy cytotec in cebu Cheap prednisolone acetate
wlaestckna (no verificado)
Vie, 29/03/2019 - 03:35
Enlace permanente
where can i buy cytotec here in philippines - 509311594840
Jual obat cytotec online Buy misoprostol cytotec Order levitra canada Buy viagra cialis levitra online Cytotec philippines where to buy
zlaestzxvs (no verificado)
Vie, 29/03/2019 - 04:13
Enlace permanente
online pharmacy valtrex - 123479574429
Levitra generico online sicuro Valtrex 500 mg buy Order levitra from canada Can i buy zoloft online Buy cytotec online in uk
klaestudyr (no verificado)
Vie, 29/03/2019 - 04:51
Enlace permanente
where to buy cytotec in ghana - 54556115193
Best place to buy generic levitra online Buy valtrex for cold sores Cytotec where to buy Buy levitra paypal Generic valtrex online pharmacy
plaesttuqs (no verificado)
Vie, 29/03/2019 - 05:29
Enlace permanente
buying valtrex in mexico - 548220251722
Buy zoloft online cheap I want to buy valtrex Buy methylprednisolone injection online Buy levitra online Where can i buy mifeprex and cytotec
xlaestlqkj (no verificado)
Vie, 29/03/2019 - 06:09
Enlace permanente
how to buy cytotec in singapore - 49283156550
Levitra online europe Valtrex mexico buy Order valtrex online canada Buy levitra usa Where can i get zoloft online
zlaestjdbl (no verificado)
Vie, 29/03/2019 - 07:27
Enlace permanente
where to buy cytotec in manila 2013 - 782770816680
Order levitra online Order levitra online usa Cytotec venta online espaГ±a Order cytotec online uk Can i buy levitra at walmart
olaestkjzh (no verificado)
Vie, 29/03/2019 - 08:04
Enlace permanente
can u buy valtrex over the counter - 89353346264
Levitra paypal accepted Buy valtrex walmart Buy valtrex cream online Order cytotec in philippines Valtrex epocrates online
nlaestzdef (no verificado)
Vie, 29/03/2019 - 08:46
Enlace permanente
how to buy cytotec in uae - 84434784344
Levitra generico acquisto online Buy levitra online in india Safe place to buy levitra online Levitra per paypal bezahlen Where can you buy levitra over the counter
ylaestsdxd (no verificado)
Vie, 29/03/2019 - 10:00
Enlace permanente
ordering valtrex canada - 9141579464
Cheap viagra cialis levitra Where to buy prednisolone tablets Buy levitra super force online Purchase methylprednisolone online Cheap alternative to levitra
ylaestjyuf (no verificado)
Vie, 29/03/2019 - 11:18
Enlace permanente
viagra cialis levitra online - 192973661419
Levitra purchase cheap Cheapest cytotec online Buy cytotec online fast delivery Levitra online from canada Can you buy cytotec at walmart
flaestccgj (no verificado)
Vie, 29/03/2019 - 13:38
Enlace permanente
zoloft sale online - 596746268955
Levitra buy cheap Safest place to buy levitra online Order cytotec online usa Prednisolone online australia Levitra generico online
slaestmiwe (no verificado)
Vie, 29/03/2019 - 14:27
Enlace permanente
where to buy original cytotec in manila - 93496553553
Valtrex prescriptions online Buy generic levitra canada Buying valtrex online Methylprednisolone dose pack online Where to buy valtrex 500mg
flaestnvzi (no verificado)
Vie, 29/03/2019 - 15:15
Enlace permanente
where to buy cytotec in malaysia - 55624985535
Buy cytotec uk Levitra soft online Methylprednisolone buy online Valtrex for sale cheap Methylprednisolone order online
nlaestccbl (no verificado)
Vie, 29/03/2019 - 16:04
Enlace permanente
buy cytotec online canada - 986705442205
Where to buy cytotec in the manila Buy valtrex generic online Buy cytotec at cvs Buy levitra pills online Valtrex online sales
tlaestqnsd (no verificado)
Vie, 29/03/2019 - 16:50
Enlace permanente
levitra pay with paypal - 986231266348
Beli pil cytotec online Buy methylprednisolone uk Prednisolone 5mg to buy Buy prednisolone 1mg tablets Comprare levitra generico online
ilaestdptg (no verificado)
Vie, 29/03/2019 - 18:21
Enlace permanente
levitra professional online - 7768814399
Cheap generic zoloft Order prednisolone online uk Buy cytotec online canada Levitra buy uk Buy levitra uk
ilaesttfvk (no verificado)
Vie, 29/03/2019 - 19:08
Enlace permanente
buy methylprednisolone online - 549156319821
How to buy generic levitra online Buy cheap sildalis Where to buy cytotec in ghana Order levitra online legally Generic cialis viagra levitra online
ilaestxltx (no verificado)
Vie, 29/03/2019 - 19:47
Enlace permanente
levitra online greece - 212938933989
Cheap generic valtrex online Where can i get cytotec to buy in ghana Online pharmacy valtrex Buy levitra south africa Cytotec where to buy in dubai
xlaestcukg (no verificado)
Vie, 29/03/2019 - 20:30
Enlace permanente
levitra generico online europa - 52077769400
Where can i buy cytotec pills in the philippines Zoloft online uk Can i buy cytotec at cvs Purchase valtrex canada Where to buy cytotec in kenya
mlaestdcbf (no verificado)
Vie, 29/03/2019 - 21:49
Enlace permanente
buy methylprednisolone uk - 100508294969
Buy cytotec baguio Where to buy cytotec pills in cebu Cheap prednisolone tablets Buy original levitra online Generic zoloft online
olaestheuw (no verificado)
Vie, 29/03/2019 - 22:32
Enlace permanente
levitra purchase cheap - 45047286181
Cytotec sale online Cheapest levitra online uk Cheap cytotec philippines Valtrex sale online Where to buy levitra in canada online
ylaestbrhh (no verificado)
Vie, 29/03/2019 - 23:12
Enlace permanente
levitra bayer vendita online - 241260305463
Levitra pharmacy online Generic valtrex online Levitra generika paypal Buy cytotec online australia Levitra online greece
mlaestqfcu (no verificado)
Vie, 29/03/2019 - 23:55
Enlace permanente
brand levitra online pharmacy - 413414635765
Buy levitra from canada Methylprednisolone purchase online Where can i buy cytotec pills in south africa Order misoprostol cytotec Where to buy methylprednisolone 100 mg
llaestxrvc (no verificado)
Sáb, 30/03/2019 - 01:23
Enlace permanente
buy valtrex in usa - 73911847957
Buying levitra in mexico Buy prednisolone uk Is it safe to order levitra online Order generic levitra online Can you buy cytotec online
llaesthqjf (no verificado)
Sáb, 30/03/2019 - 02:02
Enlace permanente
where can i buy real levitra online - 31134348906
Levitra kopen online Where to buy cytotec online philippines Cheap generic valtrex Buying valtrex online safe Buy valtrex over the counter
olaestwzul (no verificado)
Sáb, 30/03/2019 - 02:42
Enlace permanente
where to buy cytotec in laguna - 658932518548
Zoloft buy uk Buying levitra online safe Cheap valtrex canada Levitra generico online forum Where to buy cytotec in quiapo
klaestxnjs (no verificado)
Sáb, 30/03/2019 - 03:21
Enlace permanente
order zoloft uk - 83020222590
Levitra originale online Can you buy valtrex otc Can you buy levitra over the counter Buy zoloft 50 mg Valtrex generic buy online
zlaestpcsm (no verificado)
Sáb, 30/03/2019 - 03:59
Enlace permanente
cytotec where can i buy it online - 707818730887
Order levitra canada Buy viagra cialis levitra online Cytotec philippines where to buy Where can i buy cytotec in south africa Levitra prescriptions online
ulaestvymg (no verificado)
Sáb, 30/03/2019 - 04:38
Enlace permanente
buy generic levitra online uk - 340520983406
Cheap cytotec pills Buy cialis levitra viagra Online drugstore valtrex Buy cytotec tablets online Buy levitra using paypal
ylaestsxil (no verificado)
Sáb, 30/03/2019 - 05:18
Enlace permanente
buy cytotec in kuwait - 840521903858
Discount levitra online Cytotec online usa Prednisolone online canada Levitra 40 mg online Online apotheke levitra 10mg
PhilipHah (no verificado)
Sáb, 30/03/2019 - 05:49
Enlace permanente
health pharmacy online 247 mg
Hi! walgreen best online pharmacy beneficial internet site.
nlaestasqd (no verificado)
Sáb, 30/03/2019 - 06:35
Enlace permanente
cheap levitra for sale - 942992729204
Buy cytotec misoprostol tablets Levitra online shop Where can i buy cytotec in dubai Buy levitra qatar Purchase cytotec online
hlaestghrg (no verificado)
Sáb, 30/03/2019 - 07:14
Enlace permanente
jual cytotec online bandung - 687142210523
Where to buy cytotec in philippines 2013 Buy zoloft online cheap I want to buy valtrex Buy methylprednisolone injection online Buy levitra online
Páginas
Añadir nuevo comentario