404 on internal pages, in all sites in my local server

This can be related to your overall Apache configuration and have nothing to do with WordPress itself. By default, Apache will not load any custom .htaccess files, you need to set AllowOverride for the given directory like so

<Directory /path/to/site>
     AllowOverride FileInfo

     # etc
</Directory>

FileInfo should suffice, if not, try All and check the official documentation.