I can not create the .htaccess file on ubuntu on the local server

1

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.

        
    asked by Rafael Hernández 21.09.2016 в 13:31
    source

    1 answer

    2

    In Linux / Unix the files that start with a point are 'hidden'. They do not look with a simple 'ls'. You must do an 'ls -a' to include them in the list

        
    answered by 23.09.2016 / 15:35
    source