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
RobertEpild (no verificado)
Vie, 08/03/2019 - 06:16
Enlace permanente
online canadian pharmacy review 328 mg
Howdy! modafinil online pharmacy very good internet site.
wlaesttsnw (no verificado)
Vie, 08/03/2019 - 07:33
Enlace permanente
valtrex australia buy - 959523875729
Where can i buy cytotec in bahrain Buy cytotec europe Acquistare levitra online italia Levitra purchase uk Valtrex buy online canada
plaestyzpz (no verificado)
Vie, 08/03/2019 - 09:31
Enlace permanente
buy cytotec misoprostol online - 95724469278
Can you buy valtrex online Prednisolone tablets 5mg buy Where to buy cytotec in manila ph Levitra online schweiz How to get valtrex online
elaestduhg (no verificado)
Sáb, 09/03/2019 - 10:11
Enlace permanente
buy cytotec online in uk - 787582381635
Cheap cytotec online How to get cytotec online Cheap valtrex pills Cheap cytotec manila Methylprednisolone buy online uk
tlaestncsn (no verificado)
Sáb, 09/03/2019 - 14:55
Enlace permanente
ciprofloxacin 500mg sale - 20462272126
**529912350343561417 ciprofloxacin 500mg sale 211413145532 &&
qlaestbfgp (no verificado)
Sáb, 09/03/2019 - 20:42
Enlace permanente
buy cheap generic valtrex - 896578514564
Generic levitra online reviews Buy brand name levitra online Where to buy cytotec in abu dhabi Buy levitra pakistan Cheap levitra australia
vlaestdssq (no verificado)
Dom, 10/03/2019 - 00:08
Enlace permanente
levitra online shop - 31250672986
Prednisolone 5mg online Buy cytotec misoprostol tablets Levitra online shop Where can i buy cytotec in dubai Buy levitra qatar
ulaestucrj (no verificado)
Dom, 10/03/2019 - 01:50
Enlace permanente
how to buy valtrex online - 60646642584
Where to buy cytotec in cebu city Buy valtrex uk Where can i buy real levitra online Buy cytotec online Jual obat cytotec online
mlaestpzlm (no verificado)
Dom, 10/03/2019 - 05:16
Enlace permanente
levitra cialis online - 29297890957
Can you buy levitra at walmart How to get valtrex for cheap Cheap levitra pills Cheap valtrex 1000 mg Where can i buy levitra in uk
alaestlfun (no verificado)
Dom, 10/03/2019 - 10:09
Enlace permanente
is it legal to buy levitra online - 22826272400
Purchase prednisolone online Cheap zoloft online Where can i buy cytotec philippines Where to buy genuine cytotec in cebu Buy valtrex online usa
Robertfow (no verificado)
Dom, 10/03/2019 - 10:47
Enlace permanente
cost of propecia ireland 44 mg
Hello there! buy propecia from fda good web page.
hlaesterzd (no verificado)
Dom, 10/03/2019 - 10:47
Enlace permanente
buy levitra paypal - 795746576507
Can i buy valtrex in mexico Levitra online kopen Buy prednisolone online australia Where can i buy cytotec pills online Buy cytotec at walmart
xlaestyonr (no verificado)
Dom, 10/03/2019 - 11:25
Enlace permanente
buy valtrex cream - 762833782235
Valtrex online sales Buy valtrex online overnight Where to buy cytotec in the philippines topix Buy valtrex online canada Order misoprostol cytotec online
vlaestssho (no verificado)
Dom, 10/03/2019 - 12:47
Enlace permanente
ordering valtrex online - 712810658555
Cytotec online selling Buy zoloft online usa Buy zoloft canada Prescription valtrex online Purchase cytotec (misoprostol)
klaestfnmk (no verificado)
Dom, 10/03/2019 - 13:31
Enlace permanente
cheap valtrex uk - 8689347246
Buy viagra levitra and cialis Where can i buy levitra online Buy cytotec online usa Buy generic levitra vardenafil Levitra venta online
plaestxidl (no verificado)
Dom, 10/03/2019 - 14:24
Enlace permanente
buy levitra paypal - 18910182517
Is it legal to buy levitra online Cheap generic valtrex online Where can i get cytotec to buy in ghana Online pharmacy valtrex Buy levitra south africa
ilaestnjvl (no verificado)
Dom, 10/03/2019 - 15:04
Enlace permanente
valtrex tablets buy online - 6717447058
Methylprednisolone 4 mg online Can you order zoloft online Levitra 20 mg online Cytotec online order Buy cheap valtrex
wlaestvyrj (no verificado)
Dom, 10/03/2019 - 15:45
Enlace permanente
where can i buy cytotec here in philippines - 519199393823
Levitra buy australia Buy generic levitra online uk Where can i buy cytotec in kenya Levitra generika mit paypal bezahlen Viagra cialis levitra online
irjkro (no verificado)
Dom, 10/03/2019 - 17:42
Enlace permanente
ihlgjsr
buy generic cialis with paypal http://canadian-pharmacyn.com
buy generic cialis online with mastercard
ulaestpvyw (no verificado)
Dom, 10/03/2019 - 17:52
Enlace permanente
buy prednisolone tablets 5mg - 14130368052
Where to buy original cytotec philippines Can i buy valtrex online Cheap viagra cialis levitra Where to buy prednisolone tablets Buy levitra super force online
dlaestfrkw (no verificado)
Dom, 10/03/2019 - 18:33
Enlace permanente
get cytotec online - 839537439186
Cheap prednisolone tablets Buy original levitra online Generic zoloft online How to buy cytotec pills Levitra online uk
jlaestfhvq (no verificado)
Dom, 10/03/2019 - 19:17
Enlace permanente
how to get valtrex for cheap - 130648601303
Valtrex generic ordering online Levitra buy usa Buy levitra from india Where can i buy levitra in london Valtrex 500 mg buy online
ylaestevtc (no verificado)
Dom, 10/03/2019 - 20:42
Enlace permanente
levitra paypal accepted - 1380649147
Cheap cytotec uk Buy discount levitra Levitra buy cheap Safest place to buy levitra online Order cytotec online usa
plaestcyvq (no verificado)
Dom, 10/03/2019 - 21:25
Enlace permanente
cytotec pill online - 483359961957
Order cytotec online philippines Buy zoloft brand online Buy generic levitra from canada Online levitra sales Buy cytotec online fast delivery philippines
wlaestzgas (no verificado)
Dom, 10/03/2019 - 22:05
Enlace permanente
order cytotec online philippines - 568727818678
Buy cytotec united states Buy cytotec in the philippines Online levitra purchase Buy cytotec in nigeria Levitra bayer vendita online
hlaestouvb (no verificado)
Dom, 10/03/2019 - 23:27
Enlace permanente
buy valtrex online with prescription - 75851631917
Buy cytotec online cheap Buy zoloft online with prescription Buy zoloft uk Where to buy cytotec in cagayan de oro Where can i buy cytotec over the counter
wlaesteivk (no verificado)
Lun, 11/03/2019 - 00:07
Enlace permanente
buy levitra in uk - 82895927407
Can i buy levitra in mexico Valtrex rx online Buy prednisolone eye drops online Valtrex online prescription Cytotec buy philippines
ylaestqcny (no verificado)
Lun, 11/03/2019 - 00:48
Enlace permanente
buy levitra online uk - 364112335810
Levitra buy online uk Buy zoloft 100mg Cytotec pills online Where to buy original cytotec philippines Can i buy valtrex online
hlaesttvvv (no verificado)
Lun, 11/03/2019 - 01:30
Enlace permanente
valtrex generic purchase - 437515923985
Buy levitra super force online Purchase methylprednisolone online Cheap alternative to levitra Zoloft online cheap Online pharmacy reviews levitra
alaestaclj (no verificado)
Lun, 11/03/2019 - 02:09
Enlace permanente
prednisolone 5mg to buy - 7079066372
Levitra 20mg online apotheke Cytotec jual online Buy cialis and levitra online Levitra online us pharmacy Buying prednisolone online
alaestjcka (no verificado)
Lun, 11/03/2019 - 04:52
Enlace permanente
viagra cialis levitra order online - 70677906696
Cytotec online dubai Valtrex price online Acquistare levitra online Get zoloft prescription online Buy levitra australia
wlaestkste (no verificado)
Lun, 11/03/2019 - 05:33
Enlace permanente
levitra online next day delivery - 285437261396
Buy zoloft overnight delivery Zoloft buy uk Buying levitra online safe Cheap valtrex canada Levitra generico online forum
wlaestqwja (no verificado)
Lun, 11/03/2019 - 06:11
Enlace permanente
buy cialis viagra levitra online - 91694657
Where to buy cytotec in zimbabwe Cytotec buy online in uae Can you buy cytotec at cvs Can you buy valtrex in stores Online levitra in canada
tlaesteoyv (no verificado)
Lun, 11/03/2019 - 06:51
Enlace permanente
buying cytotec online - 420710500935
Is it safe to order levitra online Order generic levitra online Can you buy cytotec online Buy levitra 20 mg online Where to buy generic levitra online
klaestsorj (no verificado)
Lun, 11/03/2019 - 07:35
Enlace permanente
buy levitra qatar - 371938314386
Cytotec buy online Buy valtrex online cheap Valtrex australia buy Generic zoloft buy Can you buy cytotec at walgreens
hlaestmpyx (no verificado)
Lun, 11/03/2019 - 08:56
Enlace permanente
brand zoloft online - 900227749411
Valtrex mexico buy Order valtrex online canada Buy levitra usa Where can i get zoloft online Buy valtrex cream
Robertfow (no verificado)
Lun, 11/03/2019 - 10:13
Enlace permanente
real propecia 492 mg
Hi there! green mountain energy propecia excellent website.
rlaestjivo (no verificado)
Lun, 11/03/2019 - 11:31
Enlace permanente
buying levitra online australia - 1524164267
Buy valtrex uk Where can i buy real levitra online Buy cytotec online Jual obat cytotec online Buy misoprostol cytotec
blaestactg (no verificado)
Lun, 11/03/2019 - 12:51
Enlace permanente
buy prednisolone online australia - 67466636257
Buy cytotec pills online Levitra sales online Levitra buy canada Cheapest valtrex online Best levitra online pharmacy
olaestsmvw (no verificado)
Lun, 11/03/2019 - 13:31
Enlace permanente
levitra prices online - 938887121508
Where can i buy prednisolone uk Buy valtrex in mexico Buy levitra europe Buy generic levitra australia Buy prednisolone tablets uk
dlaestclcz (no verificado)
Lun, 11/03/2019 - 14:18
Enlace permanente
where to buy cytotec in manila 2013 - 50213491254
Generic levitra online pharmacy Cheap levitra online uk Where to buy cytotec pills in the philippines Can you buy zoloft online Buy levitra canada
klaestmazs (no verificado)
Lun, 11/03/2019 - 15:44
Enlace permanente
buy levitra online 24 hours - 201397496474
Cytotec where to buy in dubai Levitra bayer buy Cialis viagra levitra online Buy zoloft from canada Cytotec online europe
zlaestrrao (no verificado)
Lun, 11/03/2019 - 17:07
Enlace permanente
cheap levitra canada - 53712877777
Valtrex online cheap Where can i buy cytotec in usa Where to buy cytotec pills Cheap generic zoloft Order prednisolone online uk
Robertfow (no verificado)
Lun, 11/03/2019 - 17:37
Enlace permanente
propecia in india 169 mg
Hello there! Propecia uk beneficial site.
claestxxpd (no verificado)
Lun, 11/03/2019 - 19:17
Enlace permanente
buy zoloft online canada - 377361247191
Cheap levitra pills Cheap valtrex 1000 mg Where can i buy levitra in uk Best place to buy generic levitra online Buy valtrex for cold sores
tlaesteakh (no verificado)
Lun, 11/03/2019 - 20:00
Enlace permanente
buy cytotec pills online - 366493147934
Levitra online usa Where to buy levitra over the counter Buy prednisolone eye drops Where can buy cytotec in malaysia Buy cytotec in philippines
blaestecsx (no verificado)
Lun, 11/03/2019 - 20:46
Enlace permanente
buy prednisolone in the uk - 594673293618
Buy cytotec south africa Valtrex online canada Buy cytotec dubai Buy valtrex generic Levitra with dapoxetine online
slaestuxlo (no verificado)
Lun, 11/03/2019 - 21:34
Enlace permanente
can you buy valtrex in stores - 667166828
Cheap alternative to levitra Zoloft online cheap Online pharmacy reviews levitra Buy valtrex overnight Acquistare levitra originale online
jlaestoiyf (no verificado)
Lun, 11/03/2019 - 22:17
Enlace permanente
where to buy cytotec in cagayan de oro city - 344602578668
Cytotec philippines where to buy Where can i buy cytotec in south africa Levitra prescriptions online Where can i buy levitra Beli cytotec online malaysia
vlaestfysz (no verificado)
Lun, 11/03/2019 - 22:58
Enlace permanente
buy brand levitra online - 63240649558
Where can i buy levitra in canada Buy cheapest levitra Valtrex buy online cheap Online pharmacy valtrex reviews Levitra pay with paypal
Páginas
Añadir nuevo comentario