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
blaestcntd (no verificado)
Mar, 12/03/2019 - 07:49
Enlace permanente
levitra online apotheke - 502123567935
Buy zoloft online Cytotec online pharmacy Cytotec buy in the philippines Prednisolone online pharmacy Generic valtrex online canada
llaestyzwb (no verificado)
Mar, 12/03/2019 - 11:57
Enlace permanente
get levitra online - 204314256245
Where to buy cytotec online philippines Cheap generic valtrex Buying valtrex online safe Buy valtrex over the counter Mail order levitra online
nlaestdcri (no verificado)
Mar, 12/03/2019 - 12:40
Enlace permanente
can you buy valtrex in canada - 99169111810
Online levitra sales Buy cytotec online fast delivery philippines Buy cytotec online for abortion Prednisolone for sale online Buy prednisolone acetate eye drops
xlaesteftf (no verificado)
Mar, 12/03/2019 - 14:43
Enlace permanente
where to buy cytotec in cebu city - 289241799399
Levitra online pharmacy canada Zoloft order online Buy cheap generic levitra online Levitra online erfahrungen Online apotheke levitra generika
alaestgygy (no verificado)
Mar, 12/03/2019 - 16:21
Enlace permanente
buy cheapest levitra - 781392588246
Cytotec manila where to buy Buy sildalis online Order prednisolone 5mg online Levitra shop online Generic viagra cialis levitra cheap
ilaestxemf (no verificado)
Mar, 12/03/2019 - 19:40
Enlace permanente
buy levitra online - 528222316577
Order prednisolone online uk Buy cytotec online canada Levitra buy uk Buy levitra uk Levitra soft tabs online
Garzandnof (no verificado)
Mar, 12/03/2019 - 21:54
Enlace permanente
Pronouncement cheap sldnfl no hallucinogenic
viagra most users ever online was
http://xlviagragen.com - viagra generic
viagra 20mg coupons sort by
generic viagra
- viagra and alcohol interaction joined
viagra 20mg canada yahoo messenger
llaestlkye (no verificado)
Mar, 12/03/2019 - 21:57
Enlace permanente
valtrex online usa - 26188684321
Best levitra online Levitra online drugstore Order cytotec pills Buy prednisolone steroids uk Valtrex buy cheap
klaestfejg (no verificado)
Mar, 12/03/2019 - 22:43
Enlace permanente
buy prednisolone tablets - 74801391459
Cytotec where to buy quick philippines Buy cytotec online in india Where can i buy prednisolone uk Buy valtrex in mexico Buy levitra europe
mlaesticbg (no verificado)
Mar, 12/03/2019 - 23:30
Enlace permanente
buy cytotec online canada - 749388254255
Levitra mail order Buying levitra online reviews Cheap levitra india Buying levitra in mexico Buy prednisolone uk
dlaestxkff (no verificado)
Mié, 13/03/2019 - 00:52
Enlace permanente
how to buy cytotec pills - 986208319324
Levitra online usa Where to buy levitra over the counter Buy prednisolone eye drops Where can buy cytotec in malaysia Buy cytotec in philippines
qlaestqmiy (no verificado)
Mié, 13/03/2019 - 01:39
Enlace permanente
misoprostol cytotec buy online - 794133644880
Valtrex cheap online Buy levitra overnight shipping Misoprostol (cytotec) where to buy Buy cytotec online europe Where can i buy generic levitra
flaestobxl (no verificado)
Mié, 13/03/2019 - 02:23
Enlace permanente
prednisolone tablets 5mg buy - 848100757253
Can you buy zoloft online Buy levitra canada Buy methylprednisolone aceponate Buy levitra singapore Buy generic valtrex cheap
dlaestywny (no verificado)
Mié, 13/03/2019 - 03:10
Enlace permanente
levitra online prescription - 312545336818
Ordering valtrex overnight delivery How to buy cytotec in malaysia Cheap prednisolone uk Purchase cheap generic cytotec Cytotec 200 mg buy online
alaestjdfq (no verificado)
Mié, 13/03/2019 - 05:26
Enlace permanente
cytotec pills for sale online - 348300895300
Buy levitra pills online Valtrex online sales Buy valtrex online overnight Where to buy cytotec in the philippines topix Buy valtrex online canada
ulaestytbx (no verificado)
Mié, 13/03/2019 - 06:48
Enlace permanente
levitra online consegna 24 ore - 10543578937
Buy levitra nz Buy levitra 20mg online Levitra for sale cheap Can you buy prednisolone over the counter uk Cytotec philippines can buy
qlaestvpkt (no verificado)
Mié, 13/03/2019 - 07:34
Enlace permanente
online levitra generic - 941878959539
Where can i buy cytotec in kenya Levitra generika mit paypal bezahlen Viagra cialis levitra online Levitra online pay paypal Where to buy cytotec in manila
xlaestedob (no verificado)
Mié, 13/03/2019 - 11:41
Enlace permanente
buy cheap zoloft online - 485641582461
Levitra professional online Valtrex buy online uk Zoloft online overnight 10mg levitra online Can you buy levitra over the counter in spain
slaestdgzq (no verificado)
Mié, 13/03/2019 - 13:27
Enlace permanente
buy misoprostol cytotec online - 348970485162
Cheap levitra 20 mg Can u buy valtrex over the counter Cytotec beli online Valtrex uk buy Levitra online prescription
plaestflzy (no verificado)
Mié, 13/03/2019 - 14:17
Enlace permanente
where to order levitra online - 128542468501
Misoprostol cytotec buy online Levitra ohne rezept paypal Canadian pharmacy online levitra Vendita levitra originale online Buy valtrex in usa
slaestaoym (no verificado)
Mié, 13/03/2019 - 17:49
Enlace permanente
cytotec for sale online - 700885374164
Can you buy cytotec at walmart Us levitra online Can i buy valtrex over the counter Levitra 20mg online Levitra online consegna 24 ore
xlaestfzjc (no verificado)
Mié, 13/03/2019 - 18:50
Enlace permanente
methylprednisolone injection purchase - 53549496410
Buy levitra in toronto Cytotec order set Where can i buy prednisolone 5mg tablets Buy levitra in canada Buy levitra in uk
zlaestscpu (no verificado)
Jue, 14/03/2019 - 00:59
Enlace permanente
cheap cytotec for sale - 672429908280
Where can you buy cytotec in south africa Order methylprednisolone 4mg Buy genuine levitra online Buy cytotec over counter Where can you buy cytotec in the philippines
slaestakdu (no verificado)
Jue, 14/03/2019 - 01:47
Enlace permanente
cytotec online malaysia - 38477313196
Prednisolone mims online Buy methylprednisolone 4mg Discount levitra online Cytotec online usa Prednisolone online canada
mlaesthpef (no verificado)
Jue, 14/03/2019 - 02:32
Enlace permanente
beli cytotec online malaysia - 62221597460
Levitra online pagamento paypal Valtrex online australia Valtrex order online uk Cytotec apteka online Buy zoloft online india
klaestpjqy (no verificado)
Jue, 14/03/2019 - 03:17
Enlace permanente
cytotec online india - 525924351717
Levitra buy online Buy levitra online canadian pharmacy Can you buy valtrex over the counter in australia Buy valtrex 500 mg Get valtrex online
ilaestakvo (no verificado)
Jue, 14/03/2019 - 04:08
Enlace permanente
valtrex epocrates online - 404295205307
Buy valtrex cream online Order cytotec in philippines Valtrex epocrates online Buy levitra in toronto Cytotec order set
elaestnzot (no verificado)
Jue, 14/03/2019 - 04:53
Enlace permanente
can you buy levitra over the counter in spain - 475740772863
Where can i buy cytotec pills in malaysia Buy prednisolone 5mg online Pil cytotec online malaysia Cheap levitra 20mg Can you buy cytotec over the counter
olaestsnmn (no verificado)
Jue, 14/03/2019 - 08:08
Enlace permanente
safe place to buy levitra online - 628363275382
Cheapest generic levitra online Brand name levitra online Buy cytotec united states Buy cytotec in the philippines Online levitra purchase
ylaestipqh (no verificado)
Jue, 14/03/2019 - 20:20
Enlace permanente
valtrex online cheap - 381397674347
Valtrex buy online canada Buy levitra 10 mg Viagra medicine online levitra Buy valtrex online prescription Cytotec abortion pills online
vlaestkrdt (no verificado)
Jue, 14/03/2019 - 23:48
Enlace permanente
buy valtrex online in usa - 123904158653
Where to buy levitra online in canada Buy real valtrex online Buy levitra online canada Where to buy cytotec in doha qatar Buy levitra in india
hlaesttkbi (no verificado)
Vie, 15/03/2019 - 00:44
Enlace permanente
cytotec 200mg online - 326437794869
Order levitra online legally Generic cialis viagra levitra online Levitra to buy uk Where to buy cytotec online in the philippines Buy cytotec canada
hlaestlbue (no verificado)
Vie, 15/03/2019 - 06:04
Enlace permanente
levitra to buy - 378675601769
Buy generic zoloft online Zoloft uk buy Levitra online buy Beli obat cytotec online Order valtrex online
blaestzwgg (no verificado)
Vie, 15/03/2019 - 06:50
Enlace permanente
buy cialis viagra levitra online - 71570893226
Where can we buy cytotec in the philippines Buy cytotec pills online cheap Levitra pills online Buy generic valtrex online canada How to buy levitra online
hlaestrech (no verificado)
Vie, 15/03/2019 - 16:43
Enlace permanente
buy valtrex online with prescription - 845990681494
Cytotec buy online uk Levitra paypal australia Levitra prices online Where can you buy cytotec in south africa Order methylprednisolone 4mg
ulaestcltd (no verificado)
Vie, 15/03/2019 - 17:40
Enlace permanente
order methylprednisolone online - 89646262118
Buy cytotec in nigeria Levitra bayer vendita online Zoloft australia buy Cytotec online seller Levitra order online
ylaestddcl (no verificado)
Vie, 15/03/2019 - 19:30
Enlace permanente
levitra online pharmacy canada - 779911887974
Buy cytotec forum Can i order valtrex online Buy zoloft overnight delivery Zoloft buy uk Buying levitra online safe
olaestxipm (no verificado)
Vie, 15/03/2019 - 21:14
Enlace permanente
where to buy cytotec in malaysia - 43423225903
Buy viagra cialis or levitra Cytotec online selling Buy zoloft online usa Buy zoloft canada Prescription valtrex online
claestxciq (no verificado)
Sáb, 16/03/2019 - 10:00
Enlace permanente
buy valtrex in mexico - 822749390370
Levitra shop online Generic viagra cialis levitra cheap Cytotec online philippines Levitra online india Where to buy original cytotec in the philippines
llaestxkvk (no verificado)
Sáb, 16/03/2019 - 10:45
Enlace permanente
acquistare levitra online forum - 268649529721
Levitra online singapore Valtrex buy uk Prednisolone 5mg buy online Cytotec for abortion online Order valtrex online usa
hlaestagwz (no verificado)
Sáb, 16/03/2019 - 11:31
Enlace permanente
cytotec order set - 393313834282
Pil cytotec online malaysia Cheap levitra 20mg Can you buy cytotec over the counter Cheap levitra usa Levitra online italia
llaestgfll (no verificado)
Sáb, 16/03/2019 - 12:15
Enlace permanente
order zoloft online - 769125381917
Can you buy cytotec over the counter Cheap levitra usa Levitra online italia Cheap levitra in usa Buy levitra online 24 hours
ulaestewiz (no verificado)
Sáb, 16/03/2019 - 13:05
Enlace permanente
cytotec sale online - 905100973143
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
dlaestutoj (no verificado)
Sáb, 16/03/2019 - 13:49
Enlace permanente
cheap levitra online uk - 593899189203
Order zoloft uk Canada levitra buy online Buy prednisolone tablets online Where to buy cytotec pills in dubai Buy generic zoloft
vlaestgacr (no verificado)
Sáb, 16/03/2019 - 16:25
Enlace permanente
buy valtrex online cheap canada - 366115649232
Buy cytotec online canada Levitra buy uk Buy levitra uk Levitra soft tabs online Is online levitra safe
ylaestuhby (no verificado)
Sáb, 16/03/2019 - 17:54
Enlace permanente
buy generic valtrex online canada - 95578678159
Buy generic levitra 10mg Buying valtrex in mexico Buy zoloft australia Can you buy valtrex in canada Cheap generic levitra
jlaestcbnz (no verificado)
Sáb, 16/03/2019 - 18:38
Enlace permanente
buy real cytotec manila - 17432154410
Prednisolone purchase uk Buy levitra cheap Buy cheap zoloft online Order zoloft uk Canada levitra buy online
wlaestnyfh (no verificado)
Sáb, 16/03/2019 - 19:23
Enlace permanente
buy valtrex online cheap - 62999189968
Pil cytotec online malaysia Cheap levitra 20mg Can you buy cytotec over the counter Cheap levitra usa Levitra online italia
tlaestnpnd (no verificado)
Sáb, 16/03/2019 - 21:37
Enlace permanente
cheap levitra prices - 44874855679
Where to buy cytotec in quiapo 2016 Can i buy cytotec over the counter in uk Where can i buy cytotec pills in malaysia Buy prednisolone 5mg online Pil cytotec online malaysia
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
Páginas
Añadir nuevo comentario