365 Hosting support | Server Management Provider

365hostingsupport ultimate source of Server Security, cPanel server management and monitoring. Since 2012 we are offering top class technical support services at lowest prices. We offer 100% Satisfaction with 7 Days Money Back Guarantee.

365 Hosting support |  Server Management Provider - 365hostingsupport ultimate source of Server Security, cPanel server management and monitoring. Since 2012 we are offering top class technical support services at lowest prices. We offer 100% Satisfaction with 7 Days Money Back Guarantee.

Sample PHP-Mysql database connection script

To check connectivity between php with mysql database, following php script can help you.  Just add your database details in it and access it through browser. <?php $link = mysql_connect(‘localhost’, ‘mysql_user’, ‘mysql_password’); if (!$link) { die(‘Could not connect: ‘ . mysql_error()); } echo ‘Connected successfully’; mysql_close($link); ?> Thanks.  

Sample PHP-database connection script

To test database connectivity using php script, you can use following script for it. ———- <?php $link = mysql_connect(‘localhost’, ‘mysql_user’, ‘mysql_password’); if (!$link) { die(‘Could not connect: ‘ . mysql_error()); } echo ‘Connected successfully’; mysql_close($link); ?> ———- After that try to access it in browser.    

Execute cgi script out of cgi-bin directory

The apache treat cgi scripts as stated in httpd.conf in ScriptAlias directory i.e. cgi-bin. To execute cgi script outside cgi-bin just adds following 2 lines in .htaccess files to execute cgi scripts in any folder outside cgi-bin. Code: ————————————————– AddHandler cgi-script .pl .cgi Options Includes ExecCGI ————————————————–

Shell Script to scan base64 encoded

To scan base64 on the server, use following shell script #!/bin/bash #Scanning allfiles that are base64 encoded and take a look at them as they may be backdoors: echo “Base64 Encoded Scripts” > /root/base64.txt find /home/*/public_html -type f -print0 -name “*.php*” | xargs -0 grep -l “eval(gzinflate(base64_decode” > /root/base64.txt /bin/cat /root/base64.txt | mail -s “Base64 […]

Shell Script for Live Cricket Score!

Below is an example of shell script which is executing the live score with the help of rediff scores: #!/bin/bash lynx=`which lynx` if [ -z $lynx ]; then lynx=`which curl` option=”-s” else lynx=$lynx option=”-dump” fi SCORE_URL=”http://livechat.rediff.com:80/sports/score/score.txt” live_score=`$lynx $option $SCORE_URL` VS=`echo “$live_score”|grep “l1=”|cut -d= -f2` score=`echo “$live_score”|grep “message=”|cut -d= -f2` CU=`echo “$live_score”|grep “tagline=” | cut -d= […]

Linux Servers Managed by 365hostingsupport.com

“We are what we repeatedly do. Excellence, then, is not an act, but a habit.” -Aristotle Have you always wanted customised services for your server administration that would match your needs and fit your budget? Look no further, 365 hosting support has got a solution to this. We now bring to you server support services […]

Deploy Bulk Email on Linux

Part 1 Install Tools Deploy Bulk Email on Linux Install nginx, mysql, php Step One—Install the Required Repositories We will be installing all of the required software with Yum. However, because nginx is not available straight from CentOS, we’ll need to install the epel repository. sudo yum install epel-release   Step Two—Install MySQL The next […]

Disable strict mode on MySQL / MariaDB

Disable strict mode on mysql / MariaDB How do I disable MySQL strict mode on the server? Error :    “My SQL Error 1048 column description cannot be null” “mysql error : Incorrect integer value “ These error normally comes when you trying to get some transaction on the database server. This can be fix […]

PhpMyAdmin authentication failure from cpanel

Error : PhpMyAdmin authentication failure from cpanel   phpMyAdmin is not working fine from Cpanel. When visiting Cpanel > MySQL Databases > phpMyAdmin Entering the logged in user’s username and password, or indeed any valid database username and password combination, fails to get past the login box. Even though tried to change the database users password […]