The magento was installed in a testing environment.
1 - I copied all files from the folder and uploaded it to the production server folder.
2 - I exported the database and imported it into the production base.
3 - I put the appropriate permissions:
"sudo find var vendor pub / static pub / media app / etc -type f -exec chmod u + w {} \;
sudo find var vendor pub / static pub / media app / etc -type d -exec chmod u + w {} \;
sudo chown -R www: www-data / var / www / html / magento sudo chmod u + x bin / magento "
4 - Modwrite settings in production apache:
/etc/apache2/sites-enabled/000-default.conf
<Directory / var / www />
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow, deny
allow from all
</ Directory>
sudo service apache2 restart
a2enmod rewrite "
5 - In the apache conf file I made the change:
/etc/apache2/apache2.conf
Options Indexes FollowSymLinks AllowOverride None Require all granted
6 - I changed the memory of php to = php_value memory_limit 256M
7 - I cleaned the cache files of the var/cache/* folder
8 - The .htaccess file is missing from the /var/www/html/
magento folder
Ask for help from you, everything I thought I could resolve I did. But the problem persists, help me.
.htaccess
file in Magento2 root. It will work.