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
Catherinepzt (no verificado)
Sáb, 19/10/2019 - 15:29
Enlace permanente
online pharmacy reviews 327 mg
online pharmacy school canadian pharmacy review walmart pharmacy online
Clairepci (no verificado)
Dom, 20/10/2019 - 00:44
Enlace permanente
best canadian online pharmacy 439 mg
canadian pharmacy meds online canadian pharmacy online pharmacy
Maxwelljeoni (no verificado)
Dom, 20/10/2019 - 01:23
Enlace permanente
female viagra
viagra without prescription viagra 50 mg natural viagra for men order viagra online roman viagra viagra
Jefferypag (no verificado)
Dom, 20/10/2019 - 11:15
Enlace permanente
prinivil generic 317 mg
order prinivil buy prinivil buy lisinopril online
Blakepqu (no verificado)
Dom, 20/10/2019 - 17:06
Enlace permanente
purchase prinivil 190 mg
prinivil buy prinivil pills buy lisinopril pills
Alexapuz (no verificado)
Dom, 20/10/2019 - 17:11
Enlace permanente
online pharmacy canada 287 mg
viagra online canadian pharmacy online pet pharmacy canadian pharmacy review
Maxwelljeoni (no verificado)
Dom, 20/10/2019 - 20:27
Enlace permanente
whats viagra
sildenafil 100 sildenafil online
male viagra
viagra walgreens hims ed
canadian pharmacy viagra
buy real viagra online generic viagra online for sale
http://viagraonlinemy.com/ - pfizer viagra
Charlesphick (no verificado)
Dom, 20/10/2019 - 21:26
Enlace permanente
sh4lvqbl
how much viagra should a man take
is synthroid compatible with eliquis
Danielpfi (no verificado)
Dom, 20/10/2019 - 22:54
Enlace permanente
prinivil cheap 328 mg
buy prinivil with no prescription generic prinivil buy prinivil uk
Sybilppa (no verificado)
Lun, 21/10/2019 - 09:12
Enlace permanente
canadian pharmacy online 172 mg
canadian online pharmacy non prescription online pharmacy reviews best online pharmacy
Maxwelljeoni (no verificado)
Lun, 21/10/2019 - 09:27
Enlace permanente
viagra for sale
viagra price sildenafil citrate 100mg
buy viagra online
buy viagra sildenafil 50 mg
herbal viagra
cheap viagra over the counter ed pills
http://viagraonlinemy.com/ - female viagra pill
FazidTwefe (no verificado)
Lun, 21/10/2019 - 10:20
Enlace permanente
Pecking order sleazy sldnfl no drug
viagra side effects with alcohol guestbook.php?act=
http://viagrawithoutdoctorpres.net - viagra without doctor
viagra no perscription
viagra without a doctor prescription
- viagra tadalafil 20mg uk guestbook.pl
buy viagra online you cannot reply to topics in this forum
Jefferypyq (no verificado)
Lun, 21/10/2019 - 23:15
Enlace permanente
online pharmacies 315 mg
canadian pharmacies online online drugstore canadian online pharmacies
Jadapdf (no verificado)
Mar, 22/10/2019 - 06:08
Enlace permanente
online pharmacies 459 mg
canada drugs no prescription needed canadian pharmacy online pharmacies
Edwardnip (no verificado)
Mar, 22/10/2019 - 10:27
Enlace permanente
ed pills online 304 mg
ed pills online ed pills online buy ed pills with no prescription
Clydepoeta (no verificado)
Mar, 22/10/2019 - 15:37
Enlace permanente
over at this website
The misery that rite aid pharmacies allergies can create is something with viagra pro which unimaginable varieties of individuals know with. The reality is, however, that there are solutions available for those that seek them. Beginning using the ideas as well as tips in this item, and also you will certainly have the tools needed to dominate allergies, finally.
Screen plant pollen projections and plan as necessary. If you have accessibility to the internet, a number of the prominent weather forecasting websites have actually an area committed to allergic reaction forecasts including both air top quality and also plant pollen counts. On days when the matter is going to be high, maintain your home windows closed and limit your time outdoors.
Shower before bed, taking unique like wash your hair completely. basics Pollen, dirt, as well as what Google did to me various other irritants can obtain entraped on your skin and in your hair as you undergo your day. Take into consideration switching over to a night timetable if you generally bath in the early morning. This will certainly give you the possibility to eliminate these irritants before bed, permitting you to have a relaxed night's sleep.
CindyjsGen (no verificado)
Dom, 27/10/2019 - 02:04
Enlace permanente
Correct Locality nef
cialis 20 mg buy real cialis order cialis online
CindypsGen (no verificado)
Dom, 27/10/2019 - 06:14
Enlace permanente
Forgather Spot nef
cialis dosage the purple pill buy cialis
CindypsGen (no verificado)
Dom, 27/10/2019 - 06:17
Enlace permanente
Forgather Spot nef
cialis dosage the purple pill buy cialis
CindypsGen (no verificado)
Dom, 27/10/2019 - 06:19
Enlace permanente
Forgather Spot nef
cialis dosage the purple pill buy cialis
CindypsGen (no verificado)
Dom, 27/10/2019 - 06:22
Enlace permanente
Forgather Spot nef
cialis dosage the purple pill buy cialis
CindypsGen (no verificado)
Dom, 27/10/2019 - 06:25
Enlace permanente
Forgather Spot nef
cialis dosage the purple pill buy cialis
CindypsGen (no verificado)
Dom, 27/10/2019 - 06:28
Enlace permanente
Forgather Spot nef
cialis dosage the purple pill buy cialis
CindypsGen (no verificado)
Dom, 27/10/2019 - 06:31
Enlace permanente
Forgather Spot nef
cialis dosage the purple pill buy cialis
CindypsGen (no verificado)
Dom, 27/10/2019 - 06:33
Enlace permanente
Forgather Spot nef
cialis dosage the purple pill buy cialis
CindyfeGen (no verificado)
Dom, 27/10/2019 - 16:30
Enlace permanente
Forgather Locality nef
buy cialis pills generic levitra buy cialis
CindyfeGen (no verificado)
Dom, 27/10/2019 - 16:31
Enlace permanente
Forgather Locality nef
buy cialis pills generic levitra buy cialis
CindyfdGen (no verificado)
Dom, 27/10/2019 - 21:14
Enlace permanente
Come across Locality nef
generic cialis 20mg paroxetine cialis coupon
CindyfdGen (no verificado)
Dom, 27/10/2019 - 21:16
Enlace permanente
Come across Locality nef
generic cialis 20mg paroxetine cialis coupon
CindyfdGen (no verificado)
Dom, 27/10/2019 - 21:17
Enlace permanente
Come across Locality nef
generic cialis 20mg paroxetine cialis coupon
Amandapzp (no verificado)
Lun, 28/10/2019 - 07:58
Enlace permanente
where buy prednisone 349 mg
buy prednisone online without prescription buy prednisone pills buy deltasone pills
YUMes (no verificado)
Dom, 07/01/2024 - 22:34
Enlace permanente
GOOOOOD MORNING, VIETNAM!
Bonjour http://7d.tel/C3vfty
YUMes (no verificado)
Lun, 08/01/2024 - 05:33
Enlace permanente
Hello, sunshine!
Aloha http://7d.tel/ocDZAU
RecyclingGuape (no verificado)
Jue, 11/01/2024 - 07:41
Enlace permanente
Why are copper metal wires used to conduct electricity?
Scrap Copper separation methods http://7d.tel/ocDZAU
RecycleGuape (no verificado)
Vie, 12/01/2024 - 06:25
Enlace permanente
Why is copper a good conductor of heat?
Copper scrap recycling http://7d.tel/QOYwfC
Aluminium Recycling (no verificado)
Jue, 25/01/2024 - 14:34
Enlace permanente
Ello, mate
Aluminum scrap processing http://7d.tel/Fb0fho
Matel (no verificado)
Vie, 26/01/2024 - 06:08
Enlace permanente
Sup, homeslice?
Safety measures for working with aluminum scrap http://7d.tel/292Eq0 Scrap aluminum exporters
Copper scrap tr... (no verificado)
Lun, 29/01/2024 - 00:20
Enlace permanente
Copper scrap powder production
Industrial copper salvage http://7d.tel/KMQVJn Copper scrap processing
Copper scrap pa... (no verificado)
Lun, 29/01/2024 - 15:07
Enlace permanente
Scrap copper prices
Scrap copper collection http://7d.tel/Eg0LXh Scrap copper buyer
Scrap copper sales (no verificado)
Lun, 29/01/2024 - 22:18
Enlace permanente
Copper scrap market research
Copper scrap market analysis http://7d.tel/vvM0Hn Copper scrap recycler
Aluminium scrap... (no verificado)
Lun, 05/02/2024 - 05:57
Enlace permanente
Process of recycling aluminum scrap
Aluminium scrap collection services http://7d.tel/YUsJlG Aluminium scrap selling
Aluminium scrap... (no verificado)
Vie, 09/02/2024 - 15:10
Enlace permanente
Scrap metal decommissioning
Scrap metal recycler http://7d.tel/QGQ5zL Aluminium scrap depollution
Metal reclaiming depot, Recycling aluminum cable waste, Scrap metal quality assurance
Aluminum recycl... (no verificado)
Vie, 09/02/2024 - 22:31
Enlace permanente
Metal scrap shredding
Scrap metal procurement firm http://7d.tel/zhX4Xr Scrap aluminium price fluctuations
Metal waste reclamation yard, Aluminum cable scrap recovery rates, Metal waste reclaiming
Aluminium scrap... (no verificado)
Sáb, 10/02/2024 - 10:46
Enlace permanente
Scrap economic trends
Responsible metal reclamation http://7d.tel/LIXe4G Aluminum extrusion scraps
Metal scrap baling, Aluminum cable recyclers, Sustainable practices in metal recovery
Jackiebible (no verificado)
Dom, 18/08/2024 - 15:43
Enlace permanente
Exploring Shiba Inu: The Meme Specie with a Growing Ecosystem
Shiba Inu, often referred to as the "Dogecoin murderer," is a meme-based cryptocurrency that has gained momentous approval in arrears to its vibrant community and meme-driven appeal. Launched in August 2020, Shiba Inu operates on the Ethereum blockchain as an ERC-20 token. In defiance of its frisky origins, the think up has evolved to cover its own decentralized reciprocity, ShibaSwap, and plans for approaching developments like Shibarium, a layer-2 solution. With its dedicated following, Shiba Inu continues to provoke waves in the crypto have, proving that on a par meme coins can organize severe ambitions.
https://segodnya-ntv.ru
https://govoryashchayakniga.ru
https://rezonans-m.ru
https://vremyaitb.ru
https://stroino-vkusno.ru
https://etherhorizons.today
https://kb11.ru
https://sobytia-online.ru
https://tualet-na-dachu.ru
https://uralsantech.ru
Jackiebible (no verificado)
Mar, 20/08/2024 - 10:32
Enlace permanente
Exploring Shiba Inu: The Meme Conceive with a Growing Ecosystem
Shiba Inu, oft referred to as the "Dogecoin murderer," is a meme-based cryptocurrency that has gained eloquent popularity due to its vibrant community and meme-driven appeal. Launched in August 2020, Shiba Inu operates on the Ethereum blockchain as an ERC-20 token. Despite its mischievous origins, the concoct has evolved to cover its own decentralized barter, ShibaSwap, and plans in place of tomorrow developments like Shibarium, a layer-2 solution. With its dedicated following, Shiba Inu continues to sign waves in the crypto world, proving that on a par meme coins can organize moment ambitions.
https://optdar.ru
https://transfer24.store
https://wooddecora.ru
https://etherhorizons.today
https://remitazoll.ru
https://govoryashchayakniga.ru
https://99nt.ru
https://pozdravleniya-rus.ru
https://rezonans-m.ru
https://fish-profi.ru
RichardSaW (no verificado)
Dom, 25/08/2024 - 10:32
Enlace permanente
Exploring Shiba Inu: The Meme Specie with a Growing Ecosystem
Shiba Inu, time referred to as the "Dogecoin killer," is a meme-based cryptocurrency that has gained meritorious popularity fitting to its vibrant community and meme-driven appeal. Launched in August 2020, Shiba Inu operates on the Ethereum blockchain as an ERC-20 token. Without considering its fun-loving origins, the project has evolved to embrace its own decentralized reciprocation, ShibaSwap, and plans for following developments like Shibarium, a layer-2 solution. With its dedicated following, Shiba Inu continues to up waves in the crypto have, proving that on a par meme coins can attired in b be committed to severe ambitions.
https://uralsantech.ru
https://transfer24.store
http://sefaatas.com.tr/teknik/index.php?action=profile;u=257939
https://re-team.ru
http://www.so0912.com/home.php?mod=space&uid=2318724
https://orennozh.ru
http://www.wuyuebanzou.com/home.php?mod=space&uid=897468
http://www.baohaibbs.com.cn/home.php?mod=space&uid=40648
https://wooddecora.ru
https://prosto-futbolka.ru
RichardSaW (no verificado)
Mié, 28/08/2024 - 08:35
Enlace permanente
Exploring Shiba Inu: The Meme Coin with a Growing Ecosystem
Shiba Inu, commonly referred to as the "Dogecoin killer," is a meme-based cryptocurrency that has gained eloquent vogue meet to its vibrant community and meme-driven appeal. Launched in August 2020, Shiba Inu operates on the Ethereum blockchain as an ERC-20 token. Without considering its playful origins, the enterprise has evolved to cover its own decentralized exchange, ShibaSwap, and plans for the duration of tomorrow developments like Shibarium, a layer-2 solution. With its dedicated following, Shiba Inu continues to provoke waves in the crypto excellent, proving that on a par meme coins can be suffering with serious ambitions.
https://www.3ak.cn/home.php?mod=space&uid=187727
http://64367.ww.w.molifan.net/space-uid-2162555.html
https://prosto-futbolka.ru
http://zghncy.cn/home.php?mod=space&uid=612295
https://beautyindetails.ru
https://lab314.ru
https://rezonans-m.ru
https://cncmotors.ru
https://fxprimer.ru/index.php?action=profile;u=2340418
http://mdt.bigbang.free.fr/forum/index.php?action=profile;u=22666
JaninaRix (no verificado)
Sáb, 26/10/2024 - 17:41
Enlace permanente
After worrisome various brands, I can confidently estimate CBD G
I've been definitely impressed with CBD gummies and like https://www.cornbreadhemp.com/pages/are-there-any-environmental-consider... . They're not not appetizing but also incredibly available in return getting a daily measure of CBD. I intended how heedful they are, making them fully realized towards when I'm on the go. I've from where one stands noticed they assistants me slacken and snooze better, specially after a stressful day. The steadfast dosage in each gummy also takes the guesswork out of pocket of managing how much CBD I'm consuming. If you're philosophical of tough CBD, gummies are a monstrous option—just be dependable to buy off from a trusted tag repayment for the best results!
Páginas
Añadir nuevo comentario