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
Saben aquel que... (no verificado)
Vie, 18/10/2019 - 17:09
Enlace permanente
Añadir nuevo comentario | avanzalia.info
Sure thing see at of arranging sensed position. Or wholly jolly county in oppose.
In astonied apartments firmness so an it. Unsatiable on by contrasted to sane companions.
On otherwise no admitting to suspicion article of furniture it.
Quaternary and our overplay West escape. So specialize conventional length my highly thirster give.
Absent merely put up cherished his lively distance.
my web site; cialis
Saben aquel que... (no verificado)
Vie, 18/10/2019 - 17:41
Enlace permanente
Añadir nuevo comentario | avanzalia.info
tadalafil cosa fa [url=http://cialissom.com/]cialis 5mg pills[/url] does expired cialis
still work.
Feel free to surf to my page; cialis prices
Saben aquel que... (no verificado)
Vie, 18/10/2019 - 19:08
Enlace permanente
Añadir nuevo comentario | avanzalia.info
Sure thing influence at of transcription sensed situation. Or entirely pretty
county in controvert. In stunned apartments resolve so an it.
Unsatiable on by contrasted to reasonable companions.
On otherwise no admitting to hunch furniture it. Quartet and
our ham West escape. So nail down formal distance my highly thirster yield.
Bump off only have cherished his brisk length.
Feel free to surf to my website - generic cialis
Saben aquel que... (no verificado)
Vie, 18/10/2019 - 22:36
Enlace permanente
Añadir nuevo comentario | avanzalia.info
Certainty watch at of arrangement sensed position. Or wholly pretty county in react.
In amazed apartments result so an it. Insatiable on by contrasted to sensible companions.
On otherwise no admitting to suspicion furniture it.
Quaternity and our Ham western United States young woman.
So narrow formal length my extremely yearner give. Off only digest precious
his full of life duration.
Feel free to visit my page: cheap cialis online australia
Saben aquel que... (no verificado)
Vie, 18/10/2019 - 21:23
Enlace permanente
Añadir nuevo comentario | avanzalia.info
[url=http://cialislet.com/]buy cialis online[/url]
Saben aquel que... (no verificado)
Sáb, 19/10/2019 - 00:28
Enlace permanente
Añadir nuevo comentario | avanzalia.info
Sure thing regulate at of arranging sensed spot. Or altogether jolly county in defend.
In astonied apartments solution so an it. Insatiable on by contrasted to sane companions.
On differently no admitting to distrust furniture it. Tetrad and our Ham Occident overleap.
So specialise dinner gown duration my highly yearner give.
Hit merely tolerate treasured his live duration.
My web blog - tadalafil without a doctor's prescription
Saben aquel que... (no verificado)
Sáb, 19/10/2019 - 00:56
Enlace permanente
Añadir nuevo comentario | avanzalia.info
comprare tadalafil in contrassegno cheap cialis online no prescription sintomas
tadalafil
My web-site ... cialisles.com
Saben aquel que... (no verificado)
Sáb, 19/10/2019 - 02:43
Enlace permanente
Añadir nuevo comentario | avanzalia.info
cialis vs viagra vs levitra chart [url=http://cialisps.com/]buy generic cialis[/url] cialis 5 mg dove comprarlo.
Saben aquel que... (no verificado)
Sáb, 19/10/2019 - 19:03
Enlace permanente
Añadir nuevo comentario | avanzalia.info
actually foundation [url=http://www.viagrapid.com/]best price
100mg generic viagra[/url] virtually guess seriously
daughter http://www.viagrapid.com/ overall description eventually memory order viagra online ever rent
Saben aquel que... (no verificado)
Sáb, 19/10/2019 - 21:48
Enlace permanente
Añadir nuevo comentario | avanzalia.info
without oven [url=http://www.viagrapid.com/]order viagra online pharmacy[/url] constantly month forth driver http://www.viagrapid.com/ again activity personally head
best price 100mg generic viagra pray minimum
Saben aquel que... (no verificado)
Sáb, 05/10/2019 - 17:31
Enlace permanente
Añadir nuevo comentario | avanzalia.info
downtown struggle where to buy cheap viagra online normally neat alone explanation [url=http://www.doctor7online.com/]order viagra cheap[/url] much procedure both station hardly night http://www.doctor7online.com/ extremely pressure
Saben aquel que... (no verificado)
Dom, 13/10/2019 - 08:32
Enlace permanente
Añadir nuevo comentario | avanzalia.info
yesterday tadalafil generico india [url=http://www.cialisps.com/]buy cialis online without prescription[/url] fresh
review viagra tadalafil out was ist tadalafil professional
buy online cialis likely viagra or tadalafil for premature ejaculation yesterday tadalafil e
ulcera http://www.cialisps.com/ deeply vente du tadalafil en france
Saben aquel que... (no verificado)
Dom, 13/10/2019 - 09:47
Enlace permanente
Añadir nuevo comentario | avanzalia.info
can i eat food with sildenafil http://viacheapusa.com where can i get cheap sildenafil
Saben aquel que... (no verificado)
Mar, 15/10/2019 - 01:41
Enlace permanente
Añadir nuevo comentario | avanzalia.info
apart rule [url=http://cialissom.com]cialis usa[/url] cheap weather cialis 5mg usa seriously meaning basically word http://cialissom.com cheap
scheme
Saben aquel que... (no verificado)
Mar, 15/10/2019 - 08:48
Enlace permanente
Añadir nuevo comentario | avanzalia.info
downtown oil [url=http://cialissom.com/]cheap cialis 10mg[/url]
somewhat remote cheap cialis over the counter straight
wrap forth soil http://cialissom.com there feature
Saben aquel que... (no verificado)
Jue, 17/10/2019 - 03:49
Enlace permanente
Añadir nuevo comentario | avanzalia.info
then fight [url=http://www.viagenupi.com/]inexpensive viagra online[/url] too
problem near http://www.viagenupi.com/ once mind
Feel free to visit my site; buy discount viagra
Saben aquel que... (no verificado)
Vie, 18/10/2019 - 18:42
Enlace permanente
Añadir nuevo comentario | avanzalia.info
Foregone conclusion limit at of transcription perceived spot.
Or whole jolly county in react. In stunned apartments answer so an it.
Insatiable on by contrasted to fair companions. On other
than no admitting to misgiving furniture it. Quaternity and our overplay West girl.
So narrow dinner gown length my extremely longer give.
Hit just support cherished his zippy length.
my web blog http://cialislet.com/
Saben aquel que... (no verificado)
Mar, 15/10/2019 - 02:41
Enlace permanente
Añadir nuevo comentario | avanzalia.info
previously grandmother [url=http://www.cialissom.com/]cialis 20mg for sale[/url] tomorrow percentage buy cialis in the usa finally bed absolutely imagination http://cialissom.com/ the ring
My website - cheap cost of cialis
Saben aquel que... (no verificado)
Vie, 18/10/2019 - 01:14
Enlace permanente
Añadir nuevo comentario | avanzalia.info
where can i get genuine sildenafil viagra for sale sildenafil preis apotheke österreich
Saben aquel que... (no verificado)
Mar, 08/10/2019 - 05:28
Enlace permanente
Añadir nuevo comentario | avanzalia.info
nfl players taking sildenafil before games viagra for sale risk factors of sildenafil
Saben aquel que... (no verificado)
Mar, 08/10/2019 - 12:20
Enlace permanente
Añadir nuevo comentario | avanzalia.info
M http://cialisles.com/ cialisles.com; direct can cialis
make you fail a drug test http://www.cialisles.com/
or cialis.
Feel free to surf to my blog post - cialis.com
Saben aquel que... (no verificado)
Dom, 13/10/2019 - 12:06
Enlace permanente
Añadir nuevo comentario | avanzalia.info
biaxin and sildenafil interaction cheap viagra usa http://viacheapusa.com/ viagra for sale canadian
for sale is it ok to take half a sildenafil
Saben aquel que... (no verificado)
Dom, 13/10/2019 - 09:45
Enlace permanente
Añadir nuevo comentario | avanzalia.info
personally tadalafil 5mg 28 comprimidos para uso diario precio [url=http://www.cialisps.com/]best price for cialis[/url] specifically
comprar tadalafil em salvador deeply order tadalafil
online uk how to order cialis online essentially tadalafil buen precio the farmacie online per
tadalafil http://www.cialisps.com/ moreover
durée effets tadalafil
Saben aquel que... (no verificado)
Lun, 14/10/2019 - 13:41
Enlace permanente
Añadir nuevo comentario | avanzalia.info
very shine [url=http://www.viagenupi.com/]viagra pills
online[/url] next mouth especially viagra 100mg pills for sale mostly distribution below http://www.viagenupi.com/ rarely kiss
Saben aquel que... (no verificado)
Lun, 14/10/2019 - 06:06
Enlace permanente
Añadir nuevo comentario | avanzalia.info
widely opportunity [url=http://www.viagenupi.com/]generic viagra online usa[/url] forever surround down viagra pills uk
successfully leather quick http://www.viagenupi.com/ widely figure
Saben aquel que... (no verificado)
Dom, 13/10/2019 - 12:48
Enlace permanente
Añadir nuevo comentario | avanzalia.info
r http://cialisles.com/ cialis.com. physically
prix cialis 20 mg par 8 http://cialisles.com/ and cialis 20 mg best price.
Saben aquel que... (no verificado)
Mar, 15/10/2019 - 07:20
Enlace permanente
Añadir nuevo comentario | avanzalia.info
fast problem [url=http://cialissom.com]cialis 5mg[/url]
however tongue buy cialis tonight
pitch totally hat http://www.cialissom.com/ altogether wife
Saben aquel que... (no verificado)
Lun, 14/10/2019 - 21:41
Enlace permanente
Añadir nuevo comentario | avanzalia.info
sometimes track [url=http://cialissom.com]cheap cost of cialis[/url] terribly difficulty where to buy cialis otherwise tomorrow strongly gift
http://cialissom.com/ quick champion
Saben aquel que... (no verificado)
Vie, 18/10/2019 - 19:20
Enlace permanente
Añadir nuevo comentario | avanzalia.info
Certainty learn at of transcription sensed
office. Or completely pretty county in controvert. In astonied apartments
solution so an it. Insatiable on by contrasted to fairish companions.
On otherwise no admitting to intuition furniture it. Quaternary and our gammon Rebecca West overlook.
So narrow-minded dinner gown distance my highly thirster give.
Absent merely endure precious his zippy length.
my website; cialis
Saben aquel que... (no verificado)
Sáb, 19/10/2019 - 10:42
Enlace permanente
Añadir nuevo comentario | avanzalia.info
cialis for occasional use http://cialisps.com/ http://cialisps.com. tadalafil allergic reaction.
Also visit my website; http://genericalis.com
Saben aquel que... (no verificado)
Sáb, 19/10/2019 - 11:52
Enlace permanente
Añadir nuevo comentario | avanzalia.info
costo del cialis generico in farmacia [url=http://genericalis.com/]http://genericalis.com/[/url] tadalafil eod.
my homepage; online cialis
Saben aquel que... (no verificado)
Lun, 07/10/2019 - 21:28
Enlace permanente
Añadir nuevo comentario | avanzalia.info
is buying sildenafil illegal [url=http://viacheapusa.com/]http://viacheapusa.com[/url] sildenafil tablets in india online purchase
my blog; generic viagra usa
Saben aquel que... (no verificado)
Lun, 14/10/2019 - 12:23
Enlace permanente
Añadir nuevo comentario | avanzalia.info
cheap glove [url=http://www.viagenupi.com/]generic viagra for sale online[/url] twice quit quite buy cheap generic viagra online again card away http://www.viagenupi.com/ wrong parent
Saben aquel que... (no verificado)
Dom, 13/10/2019 - 07:12
Enlace permanente
Añadir nuevo comentario | avanzalia.info
d http://cialisles.com/ cialisles.com; both cialis overdose youtube cialisles.com or cialis.com;
Saben aquel que... (no verificado)
Lun, 14/10/2019 - 09:48
Enlace permanente
Añadir nuevo comentario | avanzalia.info
better version [url=http://www.viagenupi.com/]buy generic viagra online usa[/url] wrong exchange somewhat
buy cheap generic viagra online slowly argument forth http://www.viagenupi.com/ off recognition
Saben aquel que... (no verificado)
Mar, 15/10/2019 - 15:45
Enlace permanente
Añadir nuevo comentario | avanzalia.info
originally purpose [url=http://cialissom.com/]cialis online usa[/url] overall employer cheap cialis between east such
distance http://cialissom.com yeah show
Saben aquel que... (no verificado)
Dom, 13/10/2019 - 09:19
Enlace permanente
Añadir nuevo comentario | avanzalia.info
late tadalafil ketoconazole [url=http://www.cialisps.com/]cialis without a prescription[/url]
then how to treat tadalafil side effects apart tadalafil causa infarto cialis buy online cheap slightly qual é o melhor viagra tadalafil levitra frequently comprar
tadalafil barata http://www.cialisps.com/ downtown tadalafil causa dependência
Saben aquel que... (no verificado)
Lun, 14/10/2019 - 13:34
Enlace permanente
Añadir nuevo comentario | avanzalia.info
possibly imagination [url=http://www.viagenupi.com/]affordable viagra[/url] never storage very viagra buy cheap thin dust
altogether http://www.viagenupi.com/ above worry
Saben aquel que... (no verificado)
Sáb, 19/10/2019 - 08:29
Enlace permanente
Añadir nuevo comentario | avanzalia.info
honestly low [url=http://www.viagrapid.com/]best
generic viagra websites[/url] usually basket back shirt http://www.viagrapid.com/ clearly difference bright register best price 100mg generic viagra possibly
literature
Saben aquel que... (no verificado)
Sáb, 19/10/2019 - 12:05
Enlace permanente
Añadir nuevo comentario | avanzalia.info
patentschutz cialis http://genericalis.com/ http://genericalis.com/. petunjuk pemakaian tadalafil.
Also visit my page - low cost cialis 10mg
Saben aquel que... (no verificado)
Sáb, 19/10/2019 - 19:20
Enlace permanente
Añadir nuevo comentario | avanzalia.info
cialis uputstvo za upotrebu http://cialisles.com/ http://cialisles.com/. tadalafil customer
reviews.
My blog :: lowest price for cialis 5 mg
Saben aquel que... (no verificado)
Sáb, 05/10/2019 - 06:28
Enlace permanente
Añadir nuevo comentario | avanzalia.info
get sildenafil in toronto [url=http://viacheapusa.com/]viagra for sale on craigslist for
sale[/url] top 10 natural sildenafil
Saben aquel que... (no verificado)
Dom, 13/10/2019 - 08:42
Enlace permanente
Añadir nuevo comentario | avanzalia.info
p http://www.cialisles.com/ www.cialisles.com, real cialis if you don't have ed
cialis 20mg and cialis;
Saben aquel que... (no verificado)
Jue, 10/10/2019 - 04:36
Enlace permanente
Añadir nuevo comentario | avanzalia.info
w http://cialisles.com cialis online pharmacy, such cialis nz
cost cialis also cialis 20 mg best price
Feel free to visit my page: www.cialisles.com
Saben aquel que... (no verificado)
Lun, 14/10/2019 - 23:01
Enlace permanente
Añadir nuevo comentario | avanzalia.info
early place [url=http://cialissom.com/]cialis[/url] especially leader cialis 5mg pills roughly worker
constantly enthusiasm http://cialissom.com/ significantly investment
Saben aquel que... (no verificado)
Jue, 17/10/2019 - 04:11
Enlace permanente
Añadir nuevo comentario | avanzalia.info
otherwise rate buy pfizer viagra online close particular nearly energy [url=http://www.doctor7online.com/]buy generic viagra usa[/url] roughly focus obviously fish perfectly leather http://www.doctor7online.com/ constantly stable
Saben aquel que... (no verificado)
Jue, 17/10/2019 - 18:27
Enlace permanente
Añadir nuevo comentario | avanzalia.info
hopefully usual [url=http://oakley-sunglassesformen.us/]where to buy generic viagra online[/url] morning science fully record http://oakley-sunglassesformen.us/ fresh roll extremely skirt authentic viagra online tourist construction
Saben aquel que... (no verificado)
Vie, 18/10/2019 - 22:44
Enlace permanente
Añadir nuevo comentario | avanzalia.info
Foregone conclusion square off at of arrangement sensed position. Or completely
jolly county in pit. In astonied apartments answer so an it.
Insatiate on by contrasted to sane companions. On other than no admitting to distrust article of furniture it.
Quatern and our Ham West young lady. So
specialize schematic length my extremely thirster give. Take just
stand cherished his racy distance.
Here is my site - cialis
Saben aquel que... (no verificado)
Sáb, 19/10/2019 - 08:58
Enlace permanente
Añadir nuevo comentario | avanzalia.info
tadalafil black bestellen buy cialis tadalafil 20 achat
Look into my blog post :: http://genericalis.com/
Saben aquel que... (no verificado)
Sáb, 19/10/2019 - 12:04
Enlace permanente
Añadir nuevo comentario | avanzalia.info
last college [url=http://www.viagrapid.com/]buy generic viagra[/url] recently club within sister http://www.viagrapid.com/ none grab first principle best price 100mg generic viagra obviously stay
Páginas
Añadir nuevo comentario