Moving drupal 8 site from localhost to server
Posted by hamu | On Tuesday, 14 August 2018
English
I used this youtube tutorial: https://youtu.be/QbLIDireUSg
Important notes:
Cahnge settings.php permissions from 444 to 777 before making changes (and then change back)
set the data base name, data base user and data base user's password
$databases['default']['default'] = array ( 'database' => '', 'username' => ' ', 'password' => ' ', 'prefix' => '', 'host' => 'localhost', 'port' => '3306', 'namespace' => 'Drupal\\Core\\Database\\Driver\\mysql', 'driver' => 'mysql', );
set trusted_host_patterns:
// set trusted_host_patterns (on production server, replace 'example.com' with domain name) $settings['trusted_host_patterns'] = [ '^www\.example\.com$', '^example\.com$', '^localhost$' ];
Maybe (requirde in manual update):
set update_free_access to True and Then back to False
$settings['update_free_access'] = FALSE;