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
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
glaestbmcm (no verificado)
Sáb, 30/03/2019 - 07:51
Enlace permanente
cheap alternative to levitra - 83166595268
Can i buy zoloft online Buy cytotec online in uk Can you buy valtrex over the counter in canada Levitra buy online uk Buy zoloft 100mg
vlaestrnds (no verificado)
Sáb, 30/03/2019 - 09:17
Enlace permanente
get levitra online - 266291448879
Buy generic levitra vardenafil Levitra venta online Where can i buy levitra over the counter Levitra gГјnstig online Levitra purchase canada
ulaesteluk (no verificado)
Sáb, 30/03/2019 - 09:57
Enlace permanente
buy methylprednisolone 4mg - 866503147471
Levitra online best price Where can i buy prednisolone tablets Valtrex order online Where to buy original cytotec in philippines Vendita levitra online italia
claestauhb (no verificado)
Sáb, 30/03/2019 - 10:37
Enlace permanente
levitra vendita online - 671257813972
Buy cytotec dubai Buy valtrex generic Levitra with dapoxetine online Where can i buy cytotec here in philippines Buy valtrex in canada
blaesttlfh (no verificado)
Sáb, 30/03/2019 - 11:16
Enlace permanente
zoloft buy uk - 87968159792
Can i buy cytotec at walgreens Buy misoprostol cytotec online Can i buy valtrex in mexico Levitra online kopen Buy prednisolone online australia
blaestyvus (no verificado)
Sáb, 30/03/2019 - 11:53
Enlace permanente
zoloft online overnight - 7322592829
Levitra 10 mg orodispersibile online Acquistare levitra online forum Purchase levitra online Valtrex tablets buy online Cytotec online store
vlaestgfiq (no verificado)
Sáb, 30/03/2019 - 12:35
Enlace permanente
generic levitra online uk - 331573700588
Real valtrex online Buy mifepristone and cytotec online Buy levitra online in canada Buy generic valtrex online cheap Levitra online australia
mlaestjfgw (no verificado)
Sáb, 30/03/2019 - 13:55
Enlace permanente
where can i get zoloft online - 102179891651
Where can you buy cytotec in the philippines Prednisolone 5mg online Buy cytotec misoprostol tablets Levitra online shop Where can i buy cytotec in dubai
ylaestdrdg (no verificado)
Sáb, 30/03/2019 - 14:45
Enlace permanente
can i buy valtrex over the counter uk - 61249685982
Buy valtrex online canada Order misoprostol cytotec online Where can i buy cytotec in uae Buying levitra online australia Levitra online store
ylaestziap (no verificado)
Sáb, 30/03/2019 - 15:28
Enlace permanente
where to buy prednisolone tablets - 301626572592
Brand levitra online pharmacy Where to buy cytotec in malaysia pharmacy Buy real cytotec manila Valtrex purchase online Can i purchase valtrex over the counter
elaestbvnv (no verificado)
Sáb, 30/03/2019 - 16:47
Enlace permanente
levitra original buy - 932362260651
Buy cheap cytotec online Buy cytotec malaysia Can i buy prednisolone online Where to buy cytotec in the philippines Rxmeds hub order levitra online
jlaestfaax (no verificado)
Sáb, 30/03/2019 - 17:25
Enlace permanente
valtrex pharmacy online - 47428458188
Buy cytotec in usa Buy cytotec ireland Order valtrex online uk Buy 40 mg levitra Levitra 20 mg vendita online
jlaesthxze (no verificado)
Sáb, 30/03/2019 - 18:09
Enlace permanente
buy valtrex in mexico - 662484538400
Prednisolone tablets 5mg buy Where to buy cytotec in manila ph Levitra online schweiz How to get valtrex online Buy valtrex australia
Terryfloox (no verificado)
Dom, 31/03/2019 - 23:23
Enlace permanente
best best online pharmacy for viagra 330 mg
Hi! safe online pharmacies good site.
flaestnnwi (no verificado)
Lun, 01/04/2019 - 04:39
Enlace permanente
levitra pay with paypal - 285184422795
Safe levitra online Levitra online canadian pharmacy Cheap generic levitra professional Valtrex for sale online Buy bayer levitra online
wlaestqxik (no verificado)
Lun, 01/04/2019 - 05:15
Enlace permanente
buy generic levitra online - 953819235379
Where to buy cytotec in the manila Buy valtrex generic online Buy cytotec at cvs Buy levitra pills online Valtrex online sales
olaestnadv (no verificado)
Lun, 01/04/2019 - 06:26
Enlace permanente
can you buy levitra over the counter in canada - 167383177901
Cytotec online purchase philippines Valtrex to buy uk Buy valtrex online in usa Buy original levitra Levitra originale online
plaestaknn (no verificado)
Lun, 01/04/2019 - 07:03
Enlace permanente
purchase cytotec (misoprostol) - 790297382374
Where can i buy real levitra online Buy cytotec online Jual obat cytotec online Buy misoprostol cytotec Order levitra canada
dlaestjroh (no verificado)
Lun, 01/04/2019 - 07:38
Enlace permanente
levitra online overnight delivery - 87848634276
Buy cytotec abortion pills Buy cytotec iloilo Ordering valtrex online Cheap valtrex online Buy cheap cytotec online
zlaestafsk (no verificado)
Lun, 01/04/2019 - 08:15
Enlace permanente
cytotec for sale online philippines - 836190532196
Cheap valtrex 1000 mg Where can i buy levitra in uk Best place to buy generic levitra online Buy valtrex for cold sores Cytotec where to buy
qlaestfktm (no verificado)
Lun, 01/04/2019 - 08:51
Enlace permanente
buy prednisolone 5mg - 0400199823
Order cytotec online in philippines Buying cytotec philippines Levitra online singapore Valtrex buy uk Prednisolone 5mg buy online
elaestfsyw (no verificado)
Lun, 01/04/2019 - 11:30
Enlace permanente
levitra uk cheap - 7662749697
Is ordering levitra online safe Buy prednisolone 25mg tablets Levitra 10 mg buy Buy brand levitra online Levitra generico acquisto online
slaestkaju (no verificado)
Lun, 01/04/2019 - 12:09
Enlace permanente
can you purchase valtrex online - 521979173530
Cheapest levitra online Methylprednisolone online pharmacy Get cytotec online Safe levitra online Levitra online canadian pharmacy
plaestrpgs (no verificado)
Lun, 01/04/2019 - 12:49
Enlace permanente
how to buy cytotec in dubai - 13483857735
Buy levitra australia Prescription levitra online Where can we buy cytotec in the philippines Buy cytotec pills online cheap Levitra pills online
xlaestbkns (no verificado)
Lun, 01/04/2019 - 15:31
Enlace permanente
cheap levitra in uk - 8561473190
Can you order valtrex online Can you buy valtrex over the counter uk Cytotec where to buy quickly How to buy cytotec in singapore How to buy cytotec in uae
tlaestxjke (no verificado)
Lun, 01/04/2019 - 16:15
Enlace permanente
order misoprostol cytotec - 708233672307
Where to buy cytotec in dubai Order levitra online uk Prednisolone online uk Buy levitra super force Buying valtrex thailand
blaestcalg (no verificado)
Lun, 01/04/2019 - 17:01
Enlace permanente
where to buy cytotec in cebu city - 83834927799
Online levitra sales Buy cytotec online fast delivery philippines Buy cytotec online for abortion Prednisolone for sale online Buy prednisolone acetate eye drops
qlaestgxjw (no verificado)
Lun, 01/04/2019 - 17:46
Enlace permanente
cytotec purchase online - 168691696486
Generic zoloft online pharmacy Where to buy misoprostol (cytotec) Zoloft 100mg buy online I need to buy cytotec Where can i buy cytotec here in cebu
zlaestdwuj (no verificado)
Lun, 01/04/2019 - 18:34
Enlace permanente
levitra online buy - 85778594585
Zoloft uk buy Levitra online buy Beli obat cytotec online Order valtrex online Purchase prednisolone online
blaestjkgf (no verificado)
Lun, 01/04/2019 - 19:23
Enlace permanente
can you buy methylprednisolone online - 338158577459
Buy cytotec online uk Buy levitra in australia Where can i buy levitra in the philippines Buy levitra boots Valtrex online uk
qlaestpucf (no verificado)
Lun, 01/04/2019 - 21:41
Enlace permanente
prednisolone 5mg buy online uk - 79296918758
Purchase levitra online Valtrex tablets buy online Cytotec online store Cheap levitra in uk Cytotec uk buy
hlaestccsa (no verificado)
Lun, 01/04/2019 - 23:17
Enlace permanente
buy methylprednisolone injection online - 970227776365
Levitra buy online uk Buy zoloft 100mg Cytotec pills online Where to buy original cytotec philippines Can i buy valtrex online
ilaestfmdc (no verificado)
Mar, 02/04/2019 - 00:00
Enlace permanente
where to buy cytotec in malaysia pharmacy - 302708661733
Buy valtrex 1000 mg Buy cheap cytotec in usa Buy levitra online singapore Buy prednisolone 5mg Ordering levitra from canada
glaestysnj (no verificado)
Mar, 02/04/2019 - 02:25
Enlace permanente
purchase cheap generic cytotec - 3913733528
Brand zoloft online Prednisolone tablets buy online Buy cytotec misoprostol online Levitra australia online Buy levitra in new zealand
tlaestmcti (no verificado)
Mar, 02/04/2019 - 03:06
Enlace permanente
cheap valtrex generic - 81218539960
Cytotec jual online Buy cialis and levitra online Levitra online us pharmacy Buying prednisolone online Can i get valtrex online
blaestnvxj (no verificado)
Mar, 02/04/2019 - 04:33
Enlace permanente
where to buy cytotec in manila 2014 - 281605152230
Where to buy cytotec pills in dubai Buy generic zoloft Can you buy cytotec over the counter at walgreens Buy zoloft usa Buy levitra online cheap
wlaestobmn (no verificado)
Mar, 02/04/2019 - 05:16
Enlace permanente
order cytotec online usa - 203837715745
Online prednisolone 5mg Valtrex generic online Buy cytotec for abortion Buy liquid prednisolone online Purchase generic levitra
zlaestsygh (no verificado)
Mar, 02/04/2019 - 05:59
Enlace permanente
buy levitra in uk - 6271121926
Levitra 5 mg online Levitra uk online Levitra mail order Buying levitra online reviews Cheap levitra india
qlaestmeek (no verificado)
Mar, 02/04/2019 - 06:38
Enlace permanente
order prednisolone eye drops - 306572114149
Where can i buy real cytotec in manila Levitra viagra online Purchase zoloft online Where to buy cytotec in cagayan de oro city Buy zoloft online canada
mtaletawgz (no verificado)
Mié, 03/04/2019 - 22:28
Enlace permanente
vbtzyfcftzpwfwqzdwqhzpbxeqlzukd
can i buy cialis online http://essaybuyhtd.com
order cialis super active
elaestvohf (no verificado)
Mié, 03/04/2019 - 22:55
Enlace permanente
cytotec online in south africa - 161438649179
Prednisolone tablets 5mg buy Where to buy cytotec in manila ph Levitra online schweiz How to get valtrex online Buy valtrex australia
slaestubio (no verificado)
Mié, 03/04/2019 - 23:42
Enlace permanente
ordering valtrex overnight delivery - 607590110703
Order valtrex online canada Buy levitra usa Where can i get zoloft online Buy valtrex cream Order cytotec online in philippines
glaestcnyy (no verificado)
Jue, 04/04/2019 - 07:24
Enlace permanente
levitra purchase online - 99652393835
Where can i buy levitra online Buy cytotec online usa Buy generic levitra vardenafil Levitra venta online Where can i buy levitra over the counter
Páginas
Añadir nuevo comentario