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
plaestkmnh (no verificado)
Dom, 07/04/2019 - 19:39
Enlace permanente
where to buy levitra over the counter - 95616786671
Cheap viagra cialis levitra Where to buy prednisolone tablets Buy levitra super force online Purchase methylprednisolone online Cheap alternative to levitra
jlaestbtnm (no verificado)
Dom, 07/04/2019 - 20:12
Enlace permanente
where can i buy cytotec in philippines - 13468703779
Valtrex for sale cheap Methylprednisolone order online Buy cytotec abortion pill online Levitra to buy Levitra online order
claestafdy (no verificado)
Dom, 07/04/2019 - 20:46
Enlace permanente
mail order levitra - 51352253958
Zoloft online uk Can i buy cytotec at cvs Purchase valtrex canada Where to buy cytotec in kenya Buy viagra levitra and cialis
jlaestippn (no verificado)
Dom, 07/04/2019 - 21:26
Enlace permanente
buy valtrex online prescription - 159104360342
[url=http://gc.pknowledge.eu/forums/Thema/can-you-buy-cytotec-over-the-counte... you buy cytotec over the counter[/url] [url=http://gc.pknowledge.eu/forums/Thema/cheap-levitra-usa/]Cheap levitra usa[/url] [url=http://cannabis.voyage/forums/topic/levitra-online-italia/]Levitra online italia[/url] [url=http://www.cafebozorgsali.com/forums/topic/cheap-levitra-in-usa/]Cheap levitra in usa[/url] [url=http://earthuru.com/forums/topic/buy-levitra-online-24-hours/]Buy levitra online 24 hours[/url]
rlaestchmu (no verificado)
Dom, 07/04/2019 - 22:03
Enlace permanente
mail order levitra online - 583817281514
Levitra generic online Buy levitra in hong kong Safe buy levitra online Buy valtrex cheap Buy levitra malaysia
claestwdlu (no verificado)
Dom, 07/04/2019 - 22:46
Enlace permanente
buy cytotec uk - 749783866372
Buy cytotec online philippines Buy cytotec baguio Where to buy cytotec pills in cebu Cheap prednisolone tablets Buy original levitra online
olaestktze (no verificado)
Dom, 07/04/2019 - 23:25
Enlace permanente
canadian pharmacy online levitra - 627458708800
Where can i buy levitra in doha Where to buy cytotec in laguna Buy cialis levitra and viagra Levitra 20mg buy Buy levitra vardenafil
dlaestinnx (no verificado)
Lun, 08/04/2019 - 00:11
Enlace permanente
cytotec online sale - 531612667678
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
ilaestjgqe (no verificado)
Lun, 08/04/2019 - 01:27
Enlace permanente
online levitra sales - 179581106297
Levitra online purchase Buy cytotec cheap online Buy cytotec in malaysia Buy valtrex online ireland Buy cytotec in usa
wlaestifof (no verificado)
Lun, 08/04/2019 - 02:43
Enlace permanente
cytotec uk buy - 440445526617
Where to buy cytotec online philippines Cheap generic valtrex Buying valtrex online safe Buy valtrex over the counter Mail order levitra online
xlaestnusk (no verificado)
Lun, 08/04/2019 - 03:25
Enlace permanente
discount valtrex online - 18367733326
Prednisolone 5mg online Buy cytotec misoprostol tablets Levitra online shop Where can i buy cytotec in dubai Buy levitra qatar
zlaestsdgx (no verificado)
Lun, 08/04/2019 - 04:05
Enlace permanente
cheap levitra professional - 13990194099
Where can i buy cytotec pills in south africa Order misoprostol cytotec Where to buy methylprednisolone 100 mg Buy cytotec in kuwait Buying valtrex online reviews
claestlfju (no verificado)
Lun, 08/04/2019 - 05:39
Enlace permanente
mail order levitra online - 431937501774
Buy prednisolone tablets 5mg Buy generic levitra 10mg Buying valtrex in mexico Buy zoloft australia Can you buy valtrex in canada
olaestytjx (no verificado)
Lun, 08/04/2019 - 06:34
Enlace permanente
cytotec order online - 317134446207
How to buy cytotec in malaysia Cheap prednisolone uk Purchase cheap generic cytotec Cytotec 200 mg buy online Zoloft sale online
tlaestwkoz (no verificado)
Lun, 08/04/2019 - 07:37
Enlace permanente
where can i buy cytotec in south africa - 475667889339
Buy valtrex walmart Buy valtrex cream online Order cytotec in philippines Valtrex epocrates online Buy levitra in toronto
ilaestuimc (no verificado)
Lun, 08/04/2019 - 08:19
Enlace permanente
buy cytotec baguio - 27585066274
Where to buy cytotec in dubai Order levitra online uk Prednisolone online uk Buy levitra super force Buying valtrex thailand
ulaestuwhd (no verificado)
Lun, 08/04/2019 - 09:45
Enlace permanente
buy valtrex from canada - 919573651909
Buy levitra online uk Buy zoloft online europe Buy prednisolone acetate ophthalmic suspension usp 1 Best levitra online Levitra online drugstore
rlaestprki (no verificado)
Lun, 08/04/2019 - 11:13
Enlace permanente
levitra online italia - 479430416977
Buy valtrex online in usa Buy original levitra Levitra originale online Can you buy valtrex otc Can you buy levitra over the counter
flaesttghf (no verificado)
Lun, 08/04/2019 - 11:50
Enlace permanente
valtrex buy online canada - 917659120658
Can u buy valtrex over the counter Cytotec beli online Valtrex uk buy Levitra online prescription Buy viagra cialis or levitra
claestayqh (no verificado)
Lun, 08/04/2019 - 12:30
Enlace permanente
vendita levitra originale online - 124334604929
Buy levitra australia Prescription levitra online Where can we buy cytotec in the philippines Buy cytotec pills online cheap Levitra pills online
xlaestzsyn (no verificado)
Lun, 08/04/2019 - 13:04
Enlace permanente
levitra uk online - 2701967618
Where to buy cytotec in manila philippines Levitra online deutschland Buy valtrex online cheap canada Levitra online canada Order zoloft over the counter
zlaestcgpe (no verificado)
Lun, 08/04/2019 - 13:40
Enlace permanente
buy cytotec online - 2721292359
Buy valtrex online cheap Valtrex australia buy Generic zoloft buy Can you buy cytotec at walgreens Dove acquistare levitra online
dlaestvbmx (no verificado)
Lun, 08/04/2019 - 14:19
Enlace permanente
valtrex generic online - 599323267144
Buy real viagra levitra cialis online edrugstore md Where can i buy levitra in australia Get valtrex cheap Prednisolone mims online Buy methylprednisolone 4mg
wlaestopwe (no verificado)
Lun, 08/04/2019 - 14:55
Enlace permanente
buy levitra paypal - 22492103593
Prednisolone order online Cytotec tablet online Levitra online from india Buy levitra online overnight delivery Levitra buy online pharmacy
wlaestllqd (no verificado)
Lun, 08/04/2019 - 15:37
Enlace permanente
how to get valtrex online - 274478878950
Order levitra over the counter Where to buy prednisolone 5mg Where can i buy cytotec in davao city Ordering cytotec online Zoloft buy online uk
vlaestpuqe (no verificado)
Lun, 08/04/2019 - 22:24
Enlace permanente
buy viagra cialis levitra online - 462514899405
Cheap levitra 20 mg Can u buy valtrex over the counter Cytotec beli online Valtrex uk buy Levitra online prescription
ylaestztph (no verificado)
Mar, 09/04/2019 - 05:23
Enlace permanente
can i buy zoloft online - 876869157845
Where to buy cytotec pills in cebu Cheap prednisolone tablets Buy original levitra online Generic zoloft online How to buy cytotec pills
jlaestsvjr (no verificado)
Mar, 09/04/2019 - 07:02
Enlace permanente
buy zoloft canada - 615955207862
Buy levitra online paypal Can i buy cytotec over the counter at walmart Vardenafil levitra online Can u buy cytotec over the counter Buy cytotec in india
ylaestbvyt (no verificado)
Mar, 09/04/2019 - 10:23
Enlace permanente
canada levitra buy online - 169882702161
Where to buy cytotec in manila philippines Levitra online deutschland Buy valtrex online cheap canada Levitra online canada Order zoloft over the counter
qlaestazpi (no verificado)
Mar, 09/04/2019 - 18:48
Enlace permanente
where can i buy real cytotec in manila - 838168234847
Where can i buy cytotec in kuwait Cytotec cheap online Where can i buy cytotec in cebu city Where can i buy cytotec in philippines Buy cytotec forum
ilaestvtto (no verificado)
Mar, 09/04/2019 - 20:23
Enlace permanente
10mg levitra online - 869266993310
Methylprednisolone dose pack online Where to buy valtrex 500mg Levitra original buy Generic levitra online uk Levitra online sverige
claestoadx (no verificado)
Mié, 10/04/2019 - 01:41
Enlace permanente
online levitra generic - 387211415205
Order levitra online legally Generic cialis viagra levitra online Levitra to buy uk Where to buy cytotec online in the philippines Buy cytotec canada
qlaestshib (no verificado)
Mié, 10/04/2019 - 03:32
Enlace permanente
buy generic valtrex online canada - 983514934536
Order levitra online legally Generic cialis viagra levitra online Levitra to buy uk Where to buy cytotec online in the philippines Buy cytotec canada
tlaestlnlr (no verificado)
Mié, 10/04/2019 - 05:08
Enlace permanente
buy cytotec south africa - 4173029205
Where to buy cytotec pills in south africa Is it illegal to buy levitra online Cytotec abortion pill buy online Cytotec manila where to buy Buy sildalis online
slaestlxcf (no verificado)
Mié, 10/04/2019 - 06:42
Enlace permanente
buy viagra cialis levitra online - 403664841107
Buy brand name levitra Prednisolone uk buy Order zoloft from canada Levitra generico vendita online Buy levitra ireland
claestmgcm (no verificado)
Mié, 10/04/2019 - 08:16
Enlace permanente
buy prednisolone tablets - 616263438975
Cytotec uk buy Can i buy valtrex over the counter uk Prednisolone acetate buy online Comprare levitra online forum Buy cytotec in ghana
dlaesthxdu (no verificado)
Mié, 10/04/2019 - 09:42
Enlace permanente
buy generic valtrex cheap - 544822516498
Levitra originale online italia Buy valtrex online uk Buy valtrex pills online Order cytotec online philippines Buy zoloft brand online
vlaestdnog (no verificado)
Mié, 10/04/2019 - 12:32
Enlace permanente
beli cytotec online malaysia - 149677346999
Valtrex generic ordering online Levitra buy usa Buy levitra from india Where can i buy levitra in london Valtrex 500 mg buy online
nlaestbhza (no verificado)
Mié, 10/04/2019 - 18:25
Enlace permanente
online levitra in canada - 251548991259
Buy levitra philippines Get valtrex prescription online Where to buy original cytotec in manila Levitra cialis online Purchase levitra canada
xlaestznvz (no verificado)
Mié, 10/04/2019 - 21:13
Enlace permanente
zoloft order online - 371173335599
Levitra professional online Valtrex buy online uk Zoloft online overnight 10mg levitra online Can you buy levitra over the counter in spain
ilaestkmme (no verificado)
Mié, 10/04/2019 - 22:36
Enlace permanente
buy valtrex over the counter - 846956430642
Where can i buy cytotec for abortion Buy levitra safely online Cheap valtrex for sale Cheapest levitra online Methylprednisolone online pharmacy
plaestajnv (no verificado)
Jue, 11/04/2019 - 01:26
Enlace permanente
cytotec abortion pills online - 965720614260
Can i buy cytotec in south africa Buy levitra generic online Ordering valtrex canada Buy levitra online india Buy levitra 20mg uk
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
Páginas
Añadir nuevo comentario