We are planning to transfer out test site to the production server.
What must we look out for? What changes ought to be made?
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.
Sign up to join this communityWe are planning to transfer out test site to the production server.
What must we look out for? What changes ought to be made?
For UBUNTU/LINUX operating system follow below steps.
Step:1 apache/server settings
Run below commands in your server
sudo a2enmod expires
sudo a2enmod ssl
sudo a2enmod rewrite
Now change apache configuration. in apache2.conf file.
sudo nano /etc/apache2/apache2.conf
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
to
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
now after changes you should restart apache.
run sudo service apache2 restart
change magento permission according to system user.
----Apply permission to directory only------
find . -type d -exec chmod 755 {} \;
----Apply permission to files only------
find . -type f -exec chmod 644 {} \;
step: 2 Magento settings
change website mode from current to production mode, before you change mode just compile your current code
php bin/magento setup:di:compile
after success , you can change website mode
php bin/magento setup:deploy:mode:production
Set Default Robots "index,follow."
Magento 2.1.* and older version:
Go to Store -> configuration -> general -> design ->Search Engine Robots tab and then select 'index,follow'.
Magento 2.2.*:
Go to Content -> configuration -> select/edit website row -> Search Engine Robots tab and then select 'index,follow'.
add Google analytics related settings and code.
create site-map.
set magento cron.
merge minify css and js from configuration
enable all Magento cache.
Admin url and password must need to be difficult.
10.set email sending configuration
Note: Take database backup daily. :)
core_config_data
table at the magento database. Do you know where else should I make similar changes? Maybe .htaccess?
– SUPERDEVELOPER
Apr 16 '18 at 11:40