does not appear var / www in Lamp Ubuntu 16.04

0

In what way can I make this www folder appear in the var directory? I read some of the permissions, but because the folder is not found, I can not give it permission.

    
asked by Javier Antonio Aguayo Aguilar 12.03.2017 в 23:39
source

2 answers

1

If the directory www does not appear after configuring what is known as Lamp you can create yourself the directory with the following command

sudo mkdir /var/www

Once this is done you must configure the permissions of this directory so that your user can read and write about it without problems, basically doing the following:

- Agregar tu usuario al grupo www-data

  usermod -a -G www-data tu_usuario


- Cambiar el  dueño y grupo del directorio www a www-data

  chown -R www-data:www-data /var/www


- Dar permisos de lectura y escritura a los miembros del grupo 
  al que pertenece el directorio www

  chmod -R g+rwx /var/www
    
answered by 12.03.2017 в 23:50
0

It seems to me that you installed the Xampp program. You should know that Xampp and LAMP are two different ways to have an apache server on your Ubuntu. It is not the same and therefore the structure and location of your folders are usually different.

The Xampp program has as the root of the apache server the /opt/lampp/htdocs/ folder. This is the folder you are looking for.

The LAMP server if it is in /var/www . You can not find this folder because you did not install LAMP , you installed Xampp .

References:

answered by 22.08.2018 в 21:57