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
klaestobzj (no verificado)
Sáb, 16/03/2019 - 22:22
Enlace permanente
buy zoloft online australia - 23763786870
Prednisolone purchase uk Buy levitra cheap Buy cheap zoloft online Order zoloft uk Canada levitra buy online
blaestlhqx (no verificado)
Dom, 17/03/2019 - 00:26
Enlace permanente
cheap levitra in usa - 8791328554
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
wlaestxxvt (no verificado)
Dom, 17/03/2019 - 01:09
Enlace permanente
buy levitra pakistan - 310536348717
Cheap levitra pills uk Buying cytotec online Buying zoloft in thailand Cheap levitra online Buy valtrex online europe
glaestmamy (no verificado)
Dom, 17/03/2019 - 01:50
Enlace permanente
can i buy valtrex in uk - 583541517764
Can u buy valtrex online Where to buy levitra online in canada Buy real valtrex online Buy levitra online canada Where to buy cytotec in doha qatar
llaestyllk (no verificado)
Dom, 17/03/2019 - 03:12
Enlace permanente
buy prednisolone acetate eye drops - 820426171627
Can you buy cytotec online Buy levitra 20 mg online Where to buy generic levitra online Misoprostol cytotec online Cytotec 200 mcg online
claestsrwr (no verificado)
Dom, 17/03/2019 - 03:51
Enlace permanente
beli cytotec online malaysia - 756654968421
Online levitra purchase Buy cytotec in nigeria Levitra bayer vendita online Zoloft australia buy Cytotec online seller
claestfkei (no verificado)
Dom, 17/03/2019 - 04:33
Enlace permanente
valtrex order online uk - 6503564642
Buy zoloft from canada Cytotec online europe Levitra order canada Ordering levitra online Buy methylprednisolone 4 mg online
blaestdiuj (no verificado)
Dom, 17/03/2019 - 05:15
Enlace permanente
levitra 20mg online apotheke - 59957293597
Levitra order canada Ordering levitra online Buy methylprednisolone 4 mg online Cytotec pill online Where to buy cytotec in metro manila
nlaestmdgc (no verificado)
Dom, 17/03/2019 - 09:56
Enlace permanente
levitra bayer online - 734274643758
Levitra gГјnstig online Levitra purchase canada Levitra buy online india Valtrex online overnight Order valtrex generic online
llaestvelh (no verificado)
Dom, 17/03/2019 - 10:39
Enlace permanente
levitra purchase canada - 958341789487
Cytotec online in south africa Levitra online sale Online pharmacy cytotec Get zoloft online Buy levitra in south africa
vlaestfssb (no verificado)
Dom, 17/03/2019 - 12:01
Enlace permanente
where can i buy cytotec in dubai - 7912792520
Buy genuine levitra online Buy cytotec over counter Where can you buy cytotec in the philippines Prednisolone 5mg online Buy cytotec misoprostol tablets
mlaestawbv (no verificado)
Dom, 17/03/2019 - 12:43
Enlace permanente
levitra 20 mg buy online - 1801443575
Buy valtrex online europe Online pharmacy uk cytotec Cytotec buy online Buy valtrex online cheap Valtrex australia buy
dlaestntbd (no verificado)
Dom, 17/03/2019 - 14:13
Enlace permanente
levitra online rx - 730929226855
Buy cytotec online malaysia Cheapest generic levitra online Brand name levitra online Buy cytotec united states Buy cytotec in the philippines
jlaestwtfd (no verificado)
Dom, 17/03/2019 - 14:54
Enlace permanente
buy zoloft online india - 68591409514
Valtrex buy online canada Buy levitra 10 mg Viagra medicine online levitra Buy valtrex online prescription Cytotec abortion pills online
wlaestjvfw (no verificado)
Dom, 17/03/2019 - 15:44
Enlace permanente
cytotec online purchase philippines - 684532726697
Buy levitra 20 mg online Where to buy generic levitra online Misoprostol cytotec online Cytotec 200 mcg online Where can i buy cytotec in bahrain
dlaestkfvy (no verificado)
Dom, 17/03/2019 - 18:45
Enlace permanente
valtrex online canada - 997618169762
Prednisolone for sale online Buy prednisolone acetate eye drops Buy prednisolone in the uk Buy generic levitra uk Where can i buy cytotec in quiapo
nlaestjaqb (no verificado)
Dom, 17/03/2019 - 19:27
Enlace permanente
buy cytotec over counter - 90500412101
Buy valtrex cream online Order cytotec in philippines Valtrex epocrates online Buy levitra in toronto Cytotec order set
ilaestjadj (no verificado)
Dom, 17/03/2019 - 21:56
Enlace permanente
cytotec sale online - 917751306319
Where can i buy misoprostol cytotec in the philippines Purchase valtrex online Where to buy abortion pills misoprostol (cytotec) Buy levitra reviews Buy generic levitra online canada
elaestrxht (no verificado)
Dom, 17/03/2019 - 22:41
Enlace permanente
buy cytotec south africa - 789211591668
Where to buy cytotec online philippines Cheap generic valtrex Buying valtrex online safe Buy valtrex over the counter Mail order levitra online
ulaestanub (no verificado)
Lun, 18/03/2019 - 02:10
Enlace permanente
buy 40 mg levitra - 37689330884
Levitra sales online Levitra buy canada Cheapest valtrex online Best levitra online pharmacy Order levitra generic
llaestinrx (no verificado)
Lun, 18/03/2019 - 02:48
Enlace permanente
levitra online europe - 9956582890
Can i buy valtrex over the counter uk Prednisolone acetate buy online Comprare levitra online forum Buy cytotec in ghana Levitra 20mg paypal
dlaestovaa (no verificado)
Lun, 18/03/2019 - 03:28
Enlace permanente
cheap cytotec for sale - 61661455818
Jual cytotec online bandung Cytotec online canada Levitra online overnight delivery Buy levitra professional Generic levitra online pharmacy
llaestujwi (no verificado)
Lun, 18/03/2019 - 04:07
Enlace permanente
buy cytotec online singapore - 168196484790
Prescription valtrex online Purchase cytotec (misoprostol) Cytotec abortion where to buy Valtrex buy australia Cytotec online pharmacy with paypal
glaestrqfb (no verificado)
Lun, 18/03/2019 - 04:49
Enlace permanente
order zoloft over the counter - 716125150997
Valtrex tablets buy online Cytotec online store Cheap levitra in uk Cytotec uk buy Can i buy valtrex over the counter uk
slaestwngm (no verificado)
Lun, 18/03/2019 - 06:05
Enlace permanente
buy cytotec in usa - 126364833334
Purchase levitra online Valtrex tablets buy online Cytotec online store Cheap levitra in uk Cytotec uk buy
rlaestncgi (no verificado)
Lun, 18/03/2019 - 07:22
Enlace permanente
buy valtrex online mexico - 86041826226
Prescription valtrex online Purchase cytotec (misoprostol) Cytotec abortion where to buy Valtrex buy australia Cytotec online pharmacy with paypal
ylaestepek (no verificado)
Lun, 18/03/2019 - 08:05
Enlace permanente
buy cytotec online cheap - 767778792760
Buy methylprednisolone aceponate Buy levitra singapore Buy generic valtrex cheap Where can i buy cheap cytotec Cytotec online cheap
claesteucm (no verificado)
Lun, 18/03/2019 - 09:27
Enlace permanente
methylprednisolone buy online - 226932757
Buy valtrex online Misoprostol cytotec where to buy Levitra kopen online Where to buy cytotec online philippines Cheap generic valtrex
plaestsbia (no verificado)
Lun, 18/03/2019 - 12:13
Enlace permanente
is it legal to buy levitra online - 886468283810
Levitra 10 mg orodispersibile online Acquistare levitra online forum Purchase levitra online Valtrex tablets buy online Cytotec online store
flaestfdyx (no verificado)
Lun, 18/03/2019 - 12:53
Enlace permanente
buy generic levitra canada - 75795587795
Buy bayer levitra online Buy valtrex online with prescription Where can i buy cytotec in kuwait Cytotec cheap online Where can i buy cytotec in cebu city
jlaestpcbl (no verificado)
Lun, 18/03/2019 - 13:38
Enlace permanente
levitra prescriptions online - 275624580427
Brand zoloft online Prednisolone tablets buy online Buy cytotec misoprostol online Levitra australia online Buy levitra in new zealand
alaestpnbw (no verificado)
Lun, 18/03/2019 - 16:00
Enlace permanente
cytotec sale online - 733935856779
Buy cytotec online india Cheap levitra uk Buy prednisolone tablets Buy levitra online europe Where can i buy cytotec in cebu
nlaestdeyt (no verificado)
Lun, 18/03/2019 - 16:47
Enlace permanente
cheap levitra india - 616717208534
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
ilaestqqft (no verificado)
Lun, 18/03/2019 - 17:33
Enlace permanente
buy 40 mg levitra - 2859398928
Buy prednisolone online australia Where can i buy cytotec pills online Buy cytotec at walmart Prednisolone eye drops buy online Buy cytotec online philippines
zlaestwfhz (no verificado)
Lun, 18/03/2019 - 18:24
Enlace permanente
buy generic levitra online - 456180102501
Generic levitra online reviews Buy brand name levitra online Where to buy cytotec in abu dhabi Buy levitra pakistan Cheap levitra australia
qlaestcgqj (no verificado)
Lun, 18/03/2019 - 19:14
Enlace permanente
ordering valtrex online - 177431593532
Valtrex buy cheap Where to buy prednisolone 5mg uk Cytotec for sale online Generic levitra online reviews Buy brand name levitra online
xlaesticyn (no verificado)
Lun, 18/03/2019 - 23:46
Enlace permanente
where can buy cytotec in the philippines - 489652628307
Cytotec buy online Buy valtrex online cheap Valtrex australia buy Generic zoloft buy Can you buy cytotec at walgreens
claestmwdq (no verificado)
Mar, 19/03/2019 - 05:34
Enlace permanente
where to buy cytotec in cagayan de oro city - 940390716106
Where can i buy cheap cytotec Cytotec online cheap Buy cytotec uae Valtrex generic purchase Prednisolone 5mg buy online uk
alaesttveh (no verificado)
Mar, 19/03/2019 - 07:30
Enlace permanente
buy zoloft online - 839889972891
I need to buy cytotec Where can i buy cytotec here in cebu Valtrex online order Cytotec where to buy philippines Cheap cytotec pills online
flaesttkoi (no verificado)
Mar, 19/03/2019 - 08:18
Enlace permanente
where can i buy cytotec in manila philippines - 8645763249
Buy cytotec baguio Where to buy cytotec pills in cebu Cheap prednisolone tablets Buy original levitra online Generic zoloft online
flaestndcl (no verificado)
Mar, 19/03/2019 - 09:06
Enlace permanente
buy levitra 20 mg online - 703352164324
Cheap viagra cialis levitra Where to buy prednisolone tablets Buy levitra super force online Purchase methylprednisolone online Cheap alternative to levitra
ilaestzyob (no verificado)
Mar, 19/03/2019 - 09:58
Enlace permanente
buy genuine levitra online - 6513491854
Can u order valtrex online Can you buy levitra over the counter in canada Cytotec misoprostol online Buy brand name levitra Prednisolone uk buy
jlaesttmko (no verificado)
Mar, 19/03/2019 - 10:44
Enlace permanente
buy cytotec philippines - 878965903639
Buy cytotec dubai Buy valtrex generic Levitra with dapoxetine online Where can i buy cytotec here in philippines Buy valtrex in canada
alaestvpvv (no verificado)
Mar, 19/03/2019 - 17:36
Enlace permanente
buy levitra canada online - 444241509991
Generic valtrex online canada Cytotec where can i buy it online Cytotec sale online Cheapest levitra online uk Cheap cytotec philippines
claestipry (no verificado)
Mar, 19/03/2019 - 18:26
Enlace permanente
levitra online shop - 340855128177
Levitra generika mit paypal bezahlen Viagra cialis levitra online Levitra online pay paypal Where to buy cytotec in manila Levitra purchase cheap
olaestkhzv (no verificado)
Vie, 22/03/2019 - 00:07
Enlace permanente
buy generic levitra in usa - 469557858108
Cytotec online seller Levitra order online Cytotec online purchase Real valtrex online Buy mifepristone and cytotec online
tlaestewwk (no verificado)
Vie, 22/03/2019 - 00:53
Enlace permanente
discount levitra online - 766444589715
Buy valtrex in uk Buy cheap generic valtrex Where to buy levitra in london Valtrex generic cheap Cytotec in philippines where can i buy
nlaestggue (no verificado)
Vie, 22/03/2019 - 01:40
Enlace permanente
order prednisolone online uk - 481245767468
Buy levitra online with prescription Buy cheap levitra uk Levitra originale 10 mg online Cytotec where to buy quick philippines Buy cytotec online in india
xlaestkqbp (no verificado)
Vie, 22/03/2019 - 02:33
Enlace permanente
prednisolone online uk - 1620415575
Generic zoloft online How to buy cytotec pills Levitra online uk Order valtrex uk Where can i buy original cytotec in the philippines
slaestiogu (no verificado)
Vie, 22/03/2019 - 05:44
Enlace permanente
acquistare levitra online - 207277918716
Valtrex online overnight Order valtrex generic online Levitra uk cheap Viagra levitra online Cytotec online sale
Páginas
Añadir nuevo comentario