Saturday, March 20, 2021

Google domains add SPF of DNS ,but Email Service authenticate fail

If Google domains use SPF(Sender Policy Framework, RFC 4408) ,the Email Service (sendinblue) can't authenticate this SPF.


How to solution the SPF  can't authenticate by Email Service?




Use txt of DNS and add new txt,input data of SPF.


Wait some time,maybe 1m~24hr,then you can check SPF







Wednesday, March 10, 2021

Friday, March 5, 2021

How to Troubleshoot Permission Issues with SFTP

 

  • Change the owner of the folder or file to bitnami (remember to replace the TARGETFOLDER placeholder with the proper path):

    sudo chown bitnami TARGETFOLDER
    sudo chmod +w TARGETFOLDER
    
  • You should now be able to upload files to the folder or replace the file. When you are finished, restore the original permissions. For the case above, the commands are as follows:

    sudo chown daemon:daemon TARGETFOLDER
    sudo chmod 0775 TARGETFOLDER


https://docs.bitnami.com/virtual-machine/how-to/troubleshoot-permission-issues/

Sunday, February 28, 2021

How to http 301 URL redirection to https(SSL) with httpd-vhosts.conf ? (AWS Lightsail,LAMP,wordpress)

How http 301 URL redirection to https(SSL)  with httpd-vhosts.conf ? 


This environment is  AWS Lightsail ,LAMP,and more website with apache virtual host

Wednesday, February 24, 2021

LAMP installation SSL And set wordpress with https (AWS Lightsail )

 



LAMP installation SSL 

https://lightsail.aws.amazon.com/ls/docs/zh_tw/articles/amazon-lightsail-using-lets-encrypt-certificates-with-lamp#request-a-lets-encrypt-certificate-lamp




https://serverfault.com/questions/744960/configuring-ssl-with-virtual-hosts-under-apache-and-centos

<VirtualHost *:443>
    ServerName www.example.com
    ServerAlias example.com
    DocumentRoot /var/www/example.com/public_html
    ErrorLog /var/www/example.com/error.log
    CustomLog /var/www/example.com/requests.log combined
    SSLEngine on
    SSLCertificateFile /etc/apache2/ssl/example/apache.crt
    SSLCertificateKeyFile /etc/apache2/ssl/example/apache.key
</VirtualHost>

<VirtualHost *:443>
    ServerName www.example2.com
    DocumentRoot /var/www/example2.com/public_html
    ServerAlias example2.com
    ErrorLog /var/www/example2.com/error.log
    CustomLog /var/www/example2.com/requests.log combined
    SSLEngine on
    SSLCertificateFile /etc/apache2/ssl/example2/apache.crt
    SSLCertificateKeyFile /etc/apache2/ssl/example2/apache.key
</VirtualHost>




Tuesday, February 9, 2021

AWS SSH login no supported authentication methods available server sent publickey

 PuTTYgen load [your ssh mane].ppk

copy ssh all



.ssh and 





authorized_keys


paste from ssh and save



https://askubuntu.com/questions/204400/ssh-public-key-no-supported-authentication-methods-available-server-sent-publ

Tuesday, April 21, 2020

How to Install Facebook Pixel on Blogger?(2020)(error:he reference to entity "ev" must end with the ';' delimiter.)

If  you install Facebook Pixel on Blogger  is error or not work

org.xml.sax.SAXParseException; lineNumber:
 columnNumber:
The reference to entity "ev" must end with the ';' delimiter.



  1. encode  Facebook Pixel  with HTML Encoderbr
  2. Paste on blogger and after </head>
  3. Add amp; on after amp;