Install Fastcgi php Windows Server 2019

In Windows there are always multiple ways to install stuff like CGI I will follow the installation steps of the PHP Non Thread Safe version on a Windows Server 2019 Standard Evaluation (Desktop Experience) operating system what needs IIS and CGI to be installed. Install first the IIS (Internet Information Services) by opening Server Manager where we have Manage, Tools, View and Help menus. Read more about Install Fastcgi php Windows Server 2019[…]

Postfix Hardening Guide for Security and Privacy

Postfix Hardening for Security and Privacy Harden Your Postfix Email Server Postfix Hardening Guide for Security and Privacy – Linux Audit for GDPR, HIPAA , ITAR . Don’t use gmail Gsuite, get your own corporate server. Start Hardening postfix by installing a new Postfix Email Server with Webmail, Https Cert, Easy User Admin following this you will Read more about Postfix Hardening Guide for Security and Privacy[…]

Hmail server – DKIM hmailserver

sometimes you  cannot use SES, But the users still want their messages delivered. so here is some info. I hope that it is helpful. I’ve been trying to setup my hmailserver with DKIM. Unfortunatly our Windows HmailServer is now depricated. To start installing the replacement with Postfix, Dovecot, Postgres, Letsencrypt certificate and Roundcube, launch the Complete Read more about Hmail server – DKIM hmailserver[…]

Setup Amazon SES with Postfix

  Instructions to add aws ses support to postfix http://www.postfix.org/SASL_README.html http://www.postfix.org/postconf.5.html https://docs.aws.amazon.com/ses/latest/DeveloperGuide/postfix.html The Best way to have a completely secure Postfix server tnat can use ses, is to install our simple to install EC2 including Roundcube WebMail. Check it out AWS Marketplace: Mail Server on Linux Postfix using MySQL for tons of users (amazon.com)   Read more about Setup Amazon SES with Postfix[…]

Web Linux Console for EC2 – Session Manager – ssm Quick Connect

Using AWS Session Manager you can connect to your instances via Web Console instead of SSH. This is similar to what was always offered by Azure and Google Cloud. Then Select Session Manager If you see that its greyed out, you need to still configure it. So instead go to ssm manager  Quick Start  Now Read more about Web Linux Console for EC2 – Session Manager – ssm Quick Connect[…]

Prepare AMI for AWS Marketplace – Reset Linux ec2 Image – delete public keys, etc

When preparing a public AMI for AWS EC2, you need to delete lots of security stuff, like public keys, hosts and history. sudo rm ~/.ssh/authorized_keys /home/ec2-user/.ssh/authorized_keys /root/.ssh/authorized_keys /root/.ssh/known_hosts ~/.ssh/known_hosts /home/ec2-user/.ssh/known_hosts sudo shred -u /etc/ssh/*_key /etc/ssh/*_key.pub sudo shred -u ~/.*history Also see from our Blog: Reset AWS AMI Windows 2016 and 2019 Password for use in Read more about Prepare AMI for AWS Marketplace – Reset Linux ec2 Image – delete public keys, etc[…]

Set Windows Scheduler to reset mongoDB password on first boot

This task is run at every boot, password reset is set before boot, by reset-password-to-prep-mongo-AMI.ps1 Go Windows Scheduler Trigger at startup, the password is only reset if it isn’t already the Instance ID   Action is to run  -noprofile -executionpolicy bypass -file C:\Windows\Charming-Scripts\reset-passwd-4-mong-and-jscript.ps1     Conditions   settings  

Containerizing WordPress.

I would like to containerize my sites, especially this FloatingCloud.io site. Here are some links that I will use for guidance, wish me luck. https://blog.kontena.io/running-your-wordpress-site-in-containers/ – This uses Docker build instead of the official image from Docker Hub http://roycornelissen.com/walking-the-talk/ https://stephenafamo.com/blog/moving-wordpress-docker-container/ – Uses NginX reverse proxy https://www.sitepoint.com/how-to-use-the-official-docker-wordpress-image/ https://stackoverflow.com/questions/45714456/how-to-migrate-docker-volume-between-hosts https://docs.docker.com/storage/volumes/#backup-a-container https://medium.com/@pybrarian/mysql-databases-that-dont-retain-data-293bc2ed7f02 https://hub.docker.com/_/wordpress/ https://www.wpexplorer.com/migrating-wordpress-website/ – uses initdb.d create Read more about Containerizing WordPress.[…]

MongoDB Replica Set in Docker Swarm Quick Installation Guide

MongoDB Replica Set in Docker Swarm These scripts Use Docker Swarm with the Community Edition of the official MongoDB container. This MongoDB Replica set can be spread throughout the World. The first script is an AWS Cloudformation that asks a few questions. This creates an EC2 instance which serves as the Docker Swarm Manager.  A Read more about MongoDB Replica Set in Docker Swarm Quick Installation Guide[…]

make xfs failed, “mkfs.xfs: No such file or directory” How to format XFS

mkfs.xfs no such file or directory Amazon Linux does not come with mkfs to format a volume with xfs , as MongoDB likes. The simplest way to create a multi region MongoDB Replica set using Docker Swarm is to use our scripts that are already written. They launch a CloudFormation and the scripts written below. In Read more about make xfs failed, “mkfs.xfs: No such file or directory” How to format XFS[…]

Sr-IOV network-environment settings for TripleO Openstack installation

  ComputeOvsDpdkParameters: KernelArgs: “default_hugepagesz=1GB hugepagesz=1G hugepages=120 intel_iommu=on iommu=pt” OvsPmdCoreList: “17,53,35,71” OvsDpdkCoreList: “0,36,18,54” ## OvsDpdkMemoryChannels should be 4 (default), refer to Hardware Manual or run dmidecode -t memory OvsDpdkMemoryChannels: “4” ## OvsDpdkSocketMemory: “1024,1024” is the recommended setting without dpdk nic OvsDpdkSocketMemory: “1024,4096” TunedProfileName: “cpu-partitioning” NovaReservedHostMemory: 4096 OvsEnableDpdk: true ## IsolCpusList A set of CPU cores isolated Read more about Sr-IOV network-environment settings for TripleO Openstack installation[…]

Install Docker-Compose on CoreOS Container Linux

CoreOS Container Linux is more secure and compact than others.  I installed docker-compose with the following script from https://gist.github.com/sourcec0de/5cf7d36a5f696c2ffc68   #!/bin/bash mkdir -p /opt/bin LATEST_URL=`curl -Ls -o /dev/null -w %{url_effective} https://github.com/docker/compose/releases/latest` COMPOSE_VERSION=${LATEST_URL##*/} DOWNLOAD_URL=https://github.com/docker/compose/releases/download/${COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` curl -L ${DOWNLOAD_URL} -o /opt/bin/docker-compose chmod +x /opt/bin/docker-compose

How to remove a user in mongodb

db.removeUser() On this page Definition Deprecated since version 2.6: Use db.dropUser() instead of db.removeUser() Definition db.removeUser(username) Removes the specified username from the database. The db.removeUser() method has the following parameter: Parameter Type Description username string The database username.

Reset AWS AMI Windows 2016 and 2019 Password for use in Marketplace

In Windows PowerShell, run the following command to schedule the script to run as a Windows Scheduled Task. The script runs one time during the next boot and then disables these tasks from running again. PS C:\> C:\ProgramData\Amazon\EC2-Windows\Launch\Scripts\InitializeInstance.ps1 -Schedule   Also see from our Blog: Prepare AMI for AWS Marketplace – Reset Linux ec2 Image Read more about Reset AWS AMI Windows 2016 and 2019 Password for use in Marketplace[…]

HowTo: Install MongoDB Replica Set with Docker Swarm in Multiple Regions

Running your MongoDB in replica set is a really great idea, using Docker is a quick way to deploy it. The simplest way to create a multi region MongoDB Replica set using Docker Swarm is to use our scripts that are already written. They launch a CloudFormation and the scripts written below. Please leave a comment Read more about HowTo: Install MongoDB Replica Set with Docker Swarm in Multiple Regions[…]

Postfix Spam Solutions with Dovecot imap

Postfix Email Servers can filter or Reject Spam Open Source spam solution This is the simplest solution for rejecting 90% of spam with no false positives For your Postfix Email Server. smtpd_recipient_restrictions = permit_sasl_authenticated, reject_non_fqdn_recipient, reject_unknown_recipient_domain, permit_mynetworks, reject_unauth_destination, reject_rbl_client zen.spamhaus.org, reject_rbl_client bl.spamcop.net This makes your Postfix email server reject mail from servers that are known Read more about Postfix Spam Solutions with Dovecot imap[…]

install horde for dovecot webmail with imp

Install Horde Web Mail to check your email Configuring Horde for IMP [OPTIONAL]If you would prefer that your users authenticate directly with IMP, without having to authenticate through Horde first, load Roundcube with full postfix email server is also extremely easy to intall theAdministration/Configuration/Authentication page and from the What backend should we use for authenticating users to Read more about install horde for dovecot webmail with imp[…]

Automating deployments on Windows with Jenkins and PsExec

I went looking for a way to be able to remotely restart a Windows service from the Jenkins server. After googling for a bit I came across PsExec which is small utility program to run remote scripts on Windows machines which would me restart the Windows service from our remote Jenkins server. After downloading this Read more about Automating deployments on Windows with Jenkins and PsExec[…]

Reset Windows password to random EC2

For our Floating Cloud images the proccess is to run the password reset scripts copy the config.xml file to C:\Program Files\Amazon\Ec2ConfigService\Settings directory: Create AMI without power off or reboot [Windows Server 2016 and later] Configure settings using EC2Launch. To generate a random password at launch time, use the adminPasswordType setting. For more information, see Configuring EC2Launch. Read more about Reset Windows password to random EC2[…]

Using API to send emails with HmailServer

COM API Overview The hMailServer COM API lets you write your own scripts and applications that integrate with hMailServer. Almost all objects in hMailServer are accessible using the COM library. As an example, both hMailServer Administrator and the PHP WebAdmin is entirely based upon the COM library. Besides writing application like theese two, you can Read more about Using API to send emails with HmailServer[…]

How to get reverse DNS for your EC2 instance as well as to raise email sending limit. Amazon Web Services

Request to Remove Email Sending Limitations In order to maintain the quality of Amazon EC2 addresses for sending email, we enforce default limits on the amount of email that can be sent from EC2 accounts. If you wish to send larger amounts of email from EC2, you can apply to have these limits removed from Read more about How to get reverse DNS for your EC2 instance as well as to raise email sending limit. Amazon Web Services[…]

Set WordPress all of your pages to private so that you can un-publish them

Just set them to private in the database, using the following query: This would set all posts to private, I guess you won’t really use that query. Instead, to only set articles to ‘private’ use: and to only disable pages, use: Post-revisions have the status ‘inherit’ and thus get the right inherited from the parent page or Read more about Set WordPress all of your pages to private so that you can un-publish them[…]