Skip to main content

Posts

Showing posts from 2019

SimpleSAML Installation in Windows Apache

Say you want to install SimpleSAMLphp in windows Apache/Xampp. Let me tell you what I did so far: I have downloaded latest stable version from  https://simplesamlphp.org/download  and placed the unzipped file in Apache folder, i.e. C:\Apache24\simplesamlphp directory contains composer.json. I have downloaded dependencies as well. Now when I am going to setup the vhost as shows in the site 6. Configuring Apache section as <VirtualHost *:80 > ServerName localhost DocumentRoot C:/Apache24/htdocs <VirtualHost *:80 > ServerName service.example.com DocumentRoot C:/Apache24/service.example.com Alias /simplesaml C:/Apache24/simplesamlphp/www Changed the config file Now I faced the problem: I am unable to open the Alias in browser. And running httpd.exe in browser shows error about the example.com does not exist. Later I found that I was doing some mistake... I am going to add one vhost, rather in Windows Xampp, t

How to add successive cron via puppet

I want to add successive crons via puppet, first one to set as each 10 minutes, and the 2nd one to run in Sunday 7:00PM. The first cron in puppet is working properly, but the 2nd one shows the below error: "Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Invalid relationship: Cron[notifyinactivetargetweekly] { require => File[...notifyinactivetargetweekly.sh] }, because File[...notifyinactivetargetweekly.sh] doesn't seem to be in the catalog Warning: Not using cache on failed catalog Error: Could not retrieve catalog; skipping run" Below are the manifest code. cron { 'firstsynccron': command => "${phpapp::DocRootDir}/firstcronsync.sh ${scmdemophp::Environment} ${phpapp::DocRootDir}", require => File["${phpapp::DocRootDir}/firstcronsync.sh"], minute => '*/10', environment=>["COMPOSER_HOME=${phpapp::DocRootDir}", "SYMFONY_ENV=${phpapp::Envi

Composer and dependency injection

According to wikipedia, COMPOSER is an application-level package manager for PHP, and we will learn few more features about it. Download & Setup Windows : Download and run  Composer-Setup.exe Preferred way: Know your PHP version open cmd or gitbash and run php –v Prepare a shell script/bat file (composersetup.sh/composersetup.bat) Content of the shell script executable are: php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" php -r "if (hash_file('SHA384', 'composer-setup.php') === '544e09ee996cdf60ece3804abc52 599c22b1f40f4323403c44d44fdfdd586475ca9813a858088ffbc1f233e9b180f061’) { echo 'Installer verified'; } else { echo 'Installer corrupt’; unlink('composer-setup.php'); } echo PHP_EOL;" php composer-setup.php php -r "unlink('composer-setup.php');" Perhaps you noticed the php execution statement is in blue color. Whats in it?

Digital world and Marketing vs Social Media Posting - an elaborate architecture discussion

Hi Guys, I was discussing with some of my friends, working in current digital world, working best for their clients. They use to do many implementation techniques which effectively grows CLIENT's business. Discussing with them an IDEA came into my mind, and I want to share that with you. First of all I want to give the context about the post, and the area which it covers...       Digital marketing is an wide area, which encompass many tools. Using these technique and tool helps GROWING BUSINESS. Who doesn't want to be on the first 5 list of a "GOOGLE SEARCH". Obviously if you are thinking about an prospect of marketing this will be your first goal, being on Digital era Digital marketing helps Corporate Industries to hold their stakes in share It helps startups to share themselves in Social and E-Media It helps learners to find out the best solutions, which they want to be an expert It helps customers via product survey (think about a product, while the manu