Last active
December 27, 2019 03:23
-
-
Save yelban/6ae00adebe452de1d9ad4e678c9784e8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
update drupal core | |
rm -rf core vendor | |
rm -f *.* .[a-z]* | |
cp -R core vendor /path/to/your/drupal/directory | |
cp *.* .[a-z]* /path/to/your/drupal/directory | |
vi settings.php | |
$settings['update_free_access'] = FALSE; | |
// get Access denied. | |
vi /etc/nginx/sites-enabled/vps.36.to | |
... | |
include fastcgi_params; | |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
/etc/nginx/sites-enabled/vps.36.to | |
location / { | |
try_files $uri $uri/ /index.php?$query_string; | |
} | |
location ~ \.php(/|$) { | |
fastcgi_split_path_info ^(.+?\.php)(|/.*)$; | |
fastcgi_pass unix:/var/run/php/php7.3-fpm-vps36to.sock; | |
fastcgi_index index.php; | |
include fastcgi_params; | |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
} | |
$settings['trusted_host_patterns'] = array( | |
'^vps\.36\.to$', | |
); | |
// dripal 8.8 | |
$settings['file_temp_path'] = 'sites/default/files/tmp'; | |
// restart php | |
echo "" | sudo -S service php7.3-fpm reload | |
// restart nginx | |
echo "" | sudo -S service nginx reload | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment