Install multiple versions of PHP on Linux

You can install all versions of php either from source or install the default version using yum installer. My server has php5.3 already installed and I am going to install PHP5.6 from source. Prerequisites Create required folders mkdir -p /usr/local/php56 mkdir -p /etc/php56 mkdir -p /etc/php56/php.d Download php5.6 wget http://de1.php.net/distributions/php-5.6.19.tar.gz Compile php ./configure –prefix=/usr/local/php56 –with-config-file-path=/etc/php56 …

Read more

Caused by SystemException in API_Linux.cpp:444: execve() for program “/usr/bin/php” failed: Permission denied

Scenario: My Cpanel server is installed with multiple php version and All of a sudden all my sites thrown 500 internal server error. Troubleshooting: The logs was showing the following message Caused by SystemException in API_Linux.cpp:444: execve() for program “/usr/bin/php” failed: Permission denied Resolution: I checked and I could see that the permission of “/usr/bin/php” …

Read more

How to identify which android app shows full screen google adds

I’m sorry this article is not related to what I usually used to post. I think this may help someone who wishes to get rid off the full screen video or image google adds. Normally when we install Free apps we may see the google adds just above the application and its’s okay as long …

Read more

Redirect non https urls to https with www

How to force HTTPS using a web.config file This example shows how to Redirect example.com and www.example.com to https://www.example.com You need to add this rules to your web.config file <?xml version=”1.0″ encoding=”UTF-8″?> <configuration> <system.webServer> <rewrite> <rules> <rule name=”CanonicalHostNameRule1″ stopProcessing=”true”> <match url=”(.*)” /> <conditions> <add input=”{HTTP_HOST}” pattern=”^www\.example\.com$” negate=”true” /> </conditions> <action type=”Redirect” url=”https://www.example.com/{R:1}” /> </rule> <rule …

Read more

How to attach a new disk to azure Linux VM

This will guide you how to attach a new drive to linux VM once it is created through Azure Portal Connect to server via SSH and run one of the commands and this will tell you the the new disk name grep SCSI /var/log/messages grep SCSI /var/log/syslog #Assume my drive is sdc Now create parson …

Read more

How to build a scalable web application

We often develop web application without proper planning or architecture and finally at some point of time a scaling becomes impossible or spend a considerable amount of effort in terms of manpower and cost. I am not a DBA or Developer so I will be excluding those side, still I think this can be a …

Read more

How to install dotnet framework 3.5 on windows server 2012

I had already fixed this issue once , but this time the method I used first time didn’t work. I Think there should be lot of admins who faced this issue. I tried to install dotnet framework 3.5 on windows server 2012 and it was failed.  Below is the error message  I got The source …

Read more

Outlook and OWA search does not work for few users in Exchange Server 2013

Scenario: One of the customer has mentioned his search does not work in Microsft Outlook our OWA.  In fact the search gives no result on both emails and in calendar. I checked the server and did not find any issue. I have tried to recreate a new profile and still the problem existed. Solution Step1: …

Read more

create a sample project in git

This is a sample project created to learn basic git commands such as clone, commit, push, pull and merge. #Project Name: shop #Bare Repo Path: /home/repos/shop.git 1. Create a bare repo git init –bare /home/repos/shop.git #Get a clone by user ‘Anna’ mkdir /home/Anna/shop cd /home/Anna/shop git clone /home/repos/shop.git . #Create a file called index.php  and …

Read more

how to find current ssh port number in whm server

How to see the SSH port number if we have WHM with root access. Normally many hosting providers will change the default SSH port from 22 to any custom numbers. There is very easy method to find it if you have WHM root access.  You do not need to install any plugin to find it. …

Read more