November 29th in Linux/Unix, PHP Scripts by .

Fix -> PHP files are downloading when viewed in Browser

i had a sudden wierd problem with my site running cpanel. when ever i click on the link in my website, the browser shows a download box for the php file instead of showing a webpage. I did use mod rewrite to make url friendly

How to Fix

I figured out later …

November 26th in Linux/Unix, PHP Scripts by .

CPU Exceeded Error on a New Host

i recently faced a real problem because of this. I decided to move from bluehost because my site kept receiving “cpu exceeded error” page frequently. I moved to a new dedicated server host running cpanel. I did a SCP cpanel account restore and very strangely, when i type my domain …

November 13th in Linux/Unix, PHP Scripts by .

FIX->Fatal error: Maximum execution time of 300 seconds exceeded with phpMyAdmin

PHPMyAdmin will not work for uploading large mysql databases. If you attempt to upload a large mysql dataset you will often get this error

Fatal error: Maximum execution time of 300 seconds exceeded

Fix:

If you get this error you will need edit config.default.php inside phpmyadmin and look for this line

$cfg['ExecTimeLimit'] = …

October 29th in Linux/Unix by .

How to do backups with Network Attached Storage (NAS) in Linux

Network Attached Storage (NAS) is the cheap and easy way of storing your server backup files. Most often i used to do a cpanel backup files every week and i always wanted to store these files outside by server. Should my server crash, i can easily retrieve backup through FTP …

October 19th in Linux/Unix by .

[Fix] Ziplib compile error with zziptest.c

I was trying to compile and install zziplib in my server and i downloaded the version zziplib-0.10.82 and it was giving me errors like

../../bins/zziptest.c: In function ‘main’:
../../bins/zziptest.c:76: error: invalid lvalue in assignment
make[3]: *** [zziptest.o] Error 1

To fix:

install the latest version of zziplib.0.13.49. It nicely fixed the above problem. It will …

October 17th in Linux/Unix by .

How to Install suPHP in Linux

How to install suPHP

By default apache runs as nobody (means anybody from inside same shared host can read your php files) and installing suphp makes php to run under the user account ownership. 777 permissions to folders can also be avoided.

NOTE: suPHP needs PHP installed as CGI not as …

October 6th in Linux/Unix by .

Transfer backup files from server to server in command line!

i have been struggling to find some way or another to transfer my file from one linux server to another using commandline. Before this i was just using cpanel to do backups.

Here is an easy way to accomplish transferring backup files from one server to another in linux. Just simple …

October 3rd in Internet, Linux/Unix by .

Colocation vs Dedicated Hosting – Whats the difference?

I have been long time confused about this simple two types of hosting and atlast i understood the difference between colocation and dedicated hosting.

Colocation

You have to buy server equipment and the co-location service provider gives you all internet facilities in their location like internet connection, safety of your equipment, …

September 29th in Linux/Unix by .

Sample DNS Zone File for BIND

Sample Zone file for a domain with 2 nameservers ns1.example.com and ns2.example.com for BIND9. You can use this template to define your own nameservers. Just do changes on the domain name and IP addresses.

Be sure to include the below statement in your named.conf
I am assuming that you are running Bind9 …

September 29th in Internet, Linux/Unix by .

Fast Website Loading with OpenDNS – Alternative to ISPs DNS Servers

When you type a website name in the browser where often the sites dont load fast. You will see in the status bar of the browser “looking up website.com”, which often means the DNS server (resolves hostnames to IP address) is slow causing such a long time to connect to …