I have the permissions to create files in / var / www but in a wordpress template I can not create the .htaccess file to be able to configure the wordpress permanent links.
I followed this tutorial:
Enable mod_rewrite with the following command:
sudo a2enmod rewrite
Open the file:
sudo nano /etc/apache2/apache2.conf
Uncomment the line (remove the symbol #)
AccessFileName .htaccess
Find the next section
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
Note: the previous section can also be found in the file: / etc / apache2 / sites-available / default
Replaces "None" with "All":
AllowOverride All
Restart the Apache service
sudo service apache2 restart
but when with sudo nano .htaccess I create the file and I put the configuration that gives me wordpress, I do not believe the file within wordpress.