The problem is: I cannot access Magento admin panel In my fresh Magento installation on my Debian 7 server.
Everything went fine during installation. All modules are installed and I think permissions are ok (root folder and all files belong to www-data, directory permission is set to 700 and file permission to 600, according to Magento documentation, but I tried something more permissive like 755 for folders and 644 for files without any success).
When accessing my store by url it loads but without css, javascript. When accessing the admin panel I got 404 error from Apache. Magento version: 2.0.0 CE
Here is a list of what I have tried so far:
- Check if app/etc/local.xml has admin in it:
- file does not exist
 
- Set store_id, group_id, website_id and costumer_group_id to 0:
- tables core_store, core_store_group, core_website and costumer_group don't exist
 
- Use url like domain/magento/index.php/admin:
- Apache is not able to find some index key
 
- Delete app/etc/use_cache.ser
- file does not exist
 
I'm really new to Magento, actually, this is my first attempt installing it. I'd appreciate any help, I have full access to server and database. Thank you
Update
Now I can access my store by the url with css and images loading properly. I did this:
    $ magento setup:static-content:deploy pt_BR
Which created the directory structure that was missing.
Then I reset the file ownership (www-data) and permissions (700 for folders and 600 for files).
Everything is fine, except that I cannot access the admin panel yet.