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
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
flaestvykm (no verificado)
Mié, 27/03/2019 - 22:43
Enlace permanente
levitra generico vendita online - 608114305724
Where to buy levitra cheap Buy valtrex nz Buy cytotec online singapore Cytotec online buy Viagra cialis levitra order online
olaestfgll (no verificado)
Jue, 28/03/2019 - 08:52
Enlace permanente
levitra 20 mg buy online - 670532699535
Where can i buy cytotec for abortion Buy levitra safely online Cheap valtrex for sale Cheapest levitra online Methylprednisolone online pharmacy
zlaesttaev (no verificado)
Jue, 28/03/2019 - 09:38
Enlace permanente
buy levitra pills online - 884995422136
Buy cytotec in dubai Buy cytotec online south africa Is it legal to order levitra online Levitra paypal accepted Buy valtrex walmart
olaestsdsu (no verificado)
Jue, 28/03/2019 - 10:38
Enlace permanente
zoloft sale online - 579434777928
Buy cytotec in uae Mail order levitra Levitra online purchase Buy cytotec cheap online Buy cytotec in malaysia
xlaestsydf (no verificado)
Jue, 28/03/2019 - 12:37
Enlace permanente
buy levitra canada online - 305205873276
Purchase levitra online Valtrex tablets buy online Cytotec online store Cheap levitra in uk Cytotec uk buy
blaestzynr (no verificado)
Jue, 28/03/2019 - 13:33
Enlace permanente
buy cytotec in malaysia - 9086894274
Best levitra online pharmacy Order levitra generic Levitra online paypal Where to buy original cytotec in quiapo Can you buy levitra in mexico
plaestngwr (no verificado)
Jue, 28/03/2019 - 14:26
Enlace permanente
valtrex online order - 88654922212
Valtrex online order Cytotec where to buy philippines Cheap cytotec pills online Can you buy zoloft over the counter Buy valtrex cheap online
Páginas
Añadir nuevo comentario