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
klaestsiwn (no verificado)
Lun, 25/03/2019 - 00:54
Enlace permanente
online pharmacy valtrex reviews - 16431554970
Buy cytotec in the philippines Online levitra purchase Buy cytotec in nigeria Levitra bayer vendita online Zoloft australia buy
xlaestvufm (no verificado)
Lun, 25/03/2019 - 01:33
Enlace permanente
cytotec abortion pill buy online - 882762796702
Best price levitra online Valtrex buy canada Levitra originale online italia Buy valtrex online uk Buy valtrex pills online
plaestqxqj (no verificado)
Lun, 25/03/2019 - 02:13
Enlace permanente
buy levitra in uk - 2351267517
Buy cytotec china Cialis levitra online Purchase generic levitra online How to buy valtrex online Zoloft online buy
llaestxpxw (no verificado)
Lun, 25/03/2019 - 03:30
Enlace permanente
buy zoloft online india - 35617193738
Can u buy cytotec over the counter Buy cytotec in india Buy zoloft generic online Where to buy genuine cytotec in manila Cytotec online purchase philippines
jlaestrnwx (no verificado)
Lun, 25/03/2019 - 04:51
Enlace permanente
buy levitra professional - 58354295420
[url=http://clearwateracademy.net/forums/topic/zoloft-online-overnight/]Zoloft online overnight[/url] [url=http://www.waifsandstraysdogrescue.co.uk/forums/topic/10mg-levitra-onlin... levitra online[/url] [url=http://earthuru.com/forums/topic/can-you-buy-levitra-over-the-counter-in... you buy levitra over the counter in spain[/url] [url=http://www.marhabayoga.com/forums/topic/buy-valtrex-online-australia/]Buy valtrex online australia[/url] [url=http://danilova.biz/forums/topic/buy-methylprednisolone-dose-pack/]Buy methylprednisolone dose pack[/url]
plaestnzcc (no verificado)
Lun, 25/03/2019 - 05:37
Enlace permanente
buy valtrex cheap online - 608686105283
Buy levitra boots Valtrex online uk Buy levitra at walmart Buy levitra professional online Buy zoloft online australia
hlaestobge (no verificado)
Lun, 25/03/2019 - 06:19
Enlace permanente
buy cytotec online australia - 397461565208
Order valtrex online usa Cheap cytotec for sale Viagra cialis levitra online australia Buy levitra greece Generic valtrex online cheap
plaestokne (no verificado)
Lun, 25/03/2019 - 07:01
Enlace permanente
where to buy cytotec in quiapo 2016 - 33637147832
Where to buy cytotec abortion pills Prednisolone 5mg to buy uk Buy valtrex from india Levitra generika 20mg paypal Cytotec buy usa
mlaestlsuh (no verificado)
Lun, 25/03/2019 - 09:46
Enlace permanente
cheap levitra online - 114919540397
Levitra online store Where can i get cheap levitra Valtrex generic ordering online Levitra buy usa Buy levitra from india
llaestlebs (no verificado)
Lun, 25/03/2019 - 10:30
Enlace permanente
where can i buy prednisolone 5mg tablets - 909245771262
Buy prednisolone acetate ophthalmic suspension usp 1 Best levitra online Levitra online drugstore Order cytotec pills Buy prednisolone steroids uk
blaestceul (no verificado)
Lun, 25/03/2019 - 11:21
Enlace permanente
cytotec purchase online - 505326255668
Buy cytotec ireland Order valtrex online uk Buy 40 mg levitra Levitra 20 mg vendita online Buy levitra online in uk
glaestlpfi (no verificado)
Lun, 25/03/2019 - 12:57
Enlace permanente
valtrex buy online canada - 826583591733
Levitra online singapore Valtrex buy uk Prednisolone 5mg buy online Cytotec for abortion online Order valtrex online usa
ulaesttmiw (no verificado)
Lun, 25/03/2019 - 14:36
Enlace permanente
levitra online cheap - 742459186263
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
tlaestfaxo (no verificado)
Lun, 25/03/2019 - 17:55
Enlace permanente
valtrex buy cheap - 609459745875
Cytotec where to buy Buy levitra paypal Generic valtrex online pharmacy Buy zoloft online uk Buy cytotec bahrain
ilaestavtm (no verificado)
Lun, 25/03/2019 - 19:32
Enlace permanente
buy valtrex nz - 20027478332
Get zoloft online Buy levitra in south africa Buy levitra cialis viagra Cheap levitra canada Buy zoloft india
xlaestboyz (no verificado)
Lun, 25/03/2019 - 20:16
Enlace permanente
can i buy valtrex over the counter uk - 686867271
Levitra purchase online Buy levitra online australia Levitra order uk Buy cytotec 200 mg online Cytotec buy online usa
elaestcmav (no verificado)
Lun, 25/03/2019 - 20:59
Enlace permanente
where can i buy levitra in london - 34775875562
Valtrex online australia Valtrex order online uk Cytotec apteka online Buy zoloft online india Beli pil cytotec online
nlaestuour (no verificado)
Lun, 25/03/2019 - 23:28
Enlace permanente
order levitra online usa - 407925600879
Buy levitra nz Buy levitra 20mg online Levitra for sale cheap Can you buy prednisolone over the counter uk Cytotec philippines can buy
StevenReogs (no verificado)
Mar, 26/03/2019 - 00:00
Enlace permanente
direct payday loans lenders only 460 mg
Hello! payment direct payday loan phone number very good website.
blaestrkjw (no verificado)
Mar, 26/03/2019 - 00:09
Enlace permanente
levitra online fast shipping - 123682579622
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
ulaestzomu (no verificado)
Mar, 26/03/2019 - 00:44
Enlace permanente
cytotec philippines where to buy - 456103799172
Buy levitra generic online Ordering valtrex canada Buy levitra online india Buy levitra 20mg uk Where can buy cytotec in the philippines
wlaestjvjx (no verificado)
Mar, 26/03/2019 - 01:28
Enlace permanente
buy levitra canada - 1676424429
Where to buy cytotec in quiapo Buy levitra online with prescription Buy cheap levitra uk Levitra originale 10 mg online Cytotec where to buy quick philippines
ilaestofdu (no verificado)
Mar, 26/03/2019 - 02:51
Enlace permanente
buy prednisolone uk - 267854171
Cytotec where to buy quickly How to buy cytotec in singapore How to buy cytotec in uae Levitra online romania Buy generic cytotec online
slaestapdd (no verificado)
Mar, 26/03/2019 - 03:39
Enlace permanente
cheap cytotec uk - 403562350617
Prednisolone uk buy Order zoloft from canada Levitra generico vendita online Buy levitra ireland Valtrex online fast delivery
xlaestifjy (no verificado)
Mar, 26/03/2019 - 04:31
Enlace permanente
order methylprednisolone online - 990739887528
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
ulaestzmau (no verificado)
Mar, 26/03/2019 - 05:15
Enlace permanente
buy cialis levitra viagra - 978110667
Purchase cytotec (misoprostol) Cytotec abortion where to buy Valtrex buy australia Cytotec online pharmacy with paypal How to buy cytotec in dubai
xlaestunfk (no verificado)
Mar, 26/03/2019 - 06:41
Enlace permanente
cheap generic levitra india - 382815370351
Cheap levitra professional Buying prednisolone online uk Online levitra reviews Valtrex prescription online Valtrex online purchase
xlaestohak (no verificado)
Mar, 26/03/2019 - 08:06
Enlace permanente
cheap generic zoloft - 16113219031
Where to buy levitra in singapore Where to buy cytotec in the manila Buy valtrex generic online Buy cytotec at cvs Buy levitra pills online
klaesttpvp (no verificado)
Mar, 26/03/2019 - 08:51
Enlace permanente
buy brand name levitra - 936259589838
Buy valtrex in uk Buy cheap generic valtrex Where to buy levitra in london Valtrex generic cheap Cytotec in philippines where can i buy
nlaestiiwc (no verificado)
Mar, 26/03/2019 - 09:38
Enlace permanente
where can we buy cytotec in the philippines - 152611173418
Prednisolone 5mg to buy uk Buy valtrex from india Levitra generika 20mg paypal Cytotec buy usa Buy generic levitra 10 mg
elaestkmns (no verificado)
Mar, 26/03/2019 - 12:09
Enlace permanente
buy levitra at walmart - 522289603789
Where can i buy cytotec in cebu city Where can i buy cytotec in philippines Buy cytotec forum Can i order valtrex online Buy zoloft overnight delivery
xlaestcppw (no verificado)
Mar, 26/03/2019 - 13:50
Enlace permanente
order valtrex uk - 32756577148
Can i buy prednisolone over the counter uk Buy generic levitra from india online Levitra online best price Where can i buy prednisolone tablets Valtrex order online
nlaestdhqc (no verificado)
Mar, 26/03/2019 - 17:01
Enlace permanente
how to get valtrex online - 3669740315
Generic levitra online cheap Buy generic levitra in usa Valtrex buy usa Valtrex online paypal Cheap levitra prices
blaestufgl (no verificado)
Mar, 26/03/2019 - 19:30
Enlace permanente
levitra viagra online - 49920430239
Buy cytotec pills online cheap Levitra pills online Buy generic valtrex online canada How to buy levitra online Generic zoloft online pharmacy
flaesttexx (no verificado)
Mar, 26/03/2019 - 20:08
Enlace permanente
online prescriptions valtrex - 441956319915
Cytotec online pharmacy malaysia Buy prednisolone 5mg uk Where to buy cytotec in manila philippines Levitra online deutschland Buy valtrex online cheap canada
blaestjykl (no verificado)
Mar, 26/03/2019 - 20:47
Enlace permanente
valtrex pills online - 207883761719
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
slaestmuvv (no verificado)
Mar, 26/03/2019 - 22:12
Enlace permanente
where can i buy real cytotec in manila - 662795694416
Order levitra from canada Can i buy zoloft online Buy cytotec online in uk Can you buy valtrex over the counter in canada Levitra buy online uk
blaestqbbd (no verificado)
Mié, 27/03/2019 - 00:00
Enlace permanente
buying prednisolone online - 310929480251
Cheap levitra usa Levitra online italia Cheap levitra in usa Buy levitra online 24 hours Can i buy prednisolone over the counter uk
xlaestpird (no verificado)
Mié, 27/03/2019 - 01:50
Enlace permanente
levitra bayer buy - 797615922950
Where can i buy prednisolone 5mg Levitra 10 mg orodispersibile online Acquistare levitra online forum Purchase levitra online Valtrex tablets buy online
glaestbeil (no verificado)
Mié, 27/03/2019 - 02:27
Enlace permanente
buying levitra online reviews - 981314722551
Levitra online australia Cytotec where to buy in philippines Valtrex purchase canada Misoprostol cytotec buy online Levitra ohne rezept paypal
klaestlvec (no verificado)
Mié, 27/03/2019 - 07:16
Enlace permanente
valtrex generic cheap - 7144047886
Buy prednisolone online uk Zoloft online sales Mail order zoloft Prednisolone 5mg tablets buy Levitra buy online
ulaestdcdl (no verificado)
Mié, 27/03/2019 - 07:53
Enlace permanente
cytotec for sale online philippines - 57092045757
Buy real cytotec manila Valtrex purchase online Can i purchase valtrex over the counter Levitra where to buy Buy cytotec over the counter
alaestxjkn (no verificado)
Mié, 27/03/2019 - 08:27
Enlace permanente
cytotec abortion where to buy - 2958986987
Levitra online india Where to buy original cytotec in the philippines Buy levitra next day delivery How to buy generic levitra online Buy cheap sildalis
WarrenElamp (no verificado)
Mié, 27/03/2019 - 09:15
Enlace permanente
best online pharmacy technician school 291 mg
Hi there! pharmacy online Canada very good website http://trustonlinepharmacies.com
rlaestwgew (no verificado)
Mié, 27/03/2019 - 14:50
Enlace permanente
where to buy misoprostol (cytotec) - 156846654536
Buy levitra in india Where can we buy cytotec in cebu Acquisto levitra originale online Cheap levitra pills uk Buying cytotec online
Danielemazy (no verificado)
Mié, 27/03/2019 - 14:55
Enlace permanente
accutane best online pharmacy 259 mg
Hello there! online pharmacies reviews good internet site.
nlaestcbga (no verificado)
Mié, 27/03/2019 - 17:58
Enlace permanente
best price levitra online - 41046085951
Levitra buy cheap Safest place to buy levitra online Order cytotec online usa Prednisolone online australia Levitra generico online
qlaestvkvt (no verificado)
Mié, 27/03/2019 - 18:43
Enlace permanente
buy valtrex cream online - 364891974390
Order prednisolone 5mg online Levitra shop online Generic viagra cialis levitra cheap Cytotec online philippines Levitra online india
qlaestlmqy (no verificado)
Mié, 27/03/2019 - 19:31
Enlace permanente
buy cytotec walgreens - 620183753251
Levitra bayer online Can you buy levitra at walmart How to get valtrex for cheap Cheap levitra pills Cheap valtrex 1000 mg
klaestbntx (no verificado)
Mié, 27/03/2019 - 20:16
Enlace permanente
where to buy methylprednisolone 100 mg - 20574559686
Order cytotec pills Buy prednisolone steroids uk Valtrex buy cheap Where to buy prednisolone 5mg uk Cytotec for sale online
Páginas
Añadir nuevo comentario