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
### To apply ssl certificate free via lets encrypt. ### | |
Step 1 | |
sudo add-apt-repository ppa:certbot/certbot | |
sudo apt-get update | |
sudo apt-get install python-certbot-nginx | |
sudo nano /etc/nginx/sites-available/default | |
# change serverName yourdomainname.com | |
sudo systemctl reload nginx | |
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
<?php | |
// assuming file.zip is in the same directory as the executing script. | |
$file = 'file.zip'; | |
// get the absolute path to $file | |
$path = pathinfo(realpath($file), PATHINFO_DIRNAME); | |
$zip = new ZipArchive; | |
$res = $zip->open($file); |
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
/*Database replace bad characters to german characters (SQL)*/ | |
/*replace "pages" with yout table and "title" with your field*/ | |
UPDATE pages SET title=replace(title,'ß', 'ß'), title=replace(title, 'ä', 'ä'), title=replace(title, 'ü', 'ü'), title=replace(title, 'ö', 'ö'), title=replace(title, 'Ä', 'Ä'), title=replace(title, 'Ãœ', 'Ü'), title=replace(title, 'Ö', 'Ö'), title=replace(title, '€', '€'), title=replace(title, '–', '–'), title=replace(title, '“', '“'), title=replace(title, '„', '„'), title=replace(title, '§', '§'); |
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
//TypoScript | |
# Multi Domain Configuration | |
[globalString = ENV:HTTP_HOST=example1.de] | |
config.baseURL = http:// www.example1.de/ | |
[global] | |
[globalString = ENV:HTTP_HOST=www.example2.de] | |
config.baseURL = http:// www.example2.de/ | |
[global] |