Search Results for: 40


Change magento url

Some times there comes a situation when you need to change magento installation url.
Eg: change url from to


Before you make any changes make sure you have backed up your database.

Following are the the easy steps to change it.



Access phpmyadmin >> select database >> browse table core_config_data.


Now look for field’s like web/unsecure/base_url and web/secure/base_url

Corresponding to this field you will either see {{base_url}} or your original url for magento.


New: Edit field under value and change url as per your requirement.


Now you will need to clear cache for maganto. Magento stores cache under magento installation directory var/cache
you can rename var directory under magento.

4) Try accessing Magento with new URL now. It should work with no problem. 🙂

Post to Twitter

Error logging to cPanel

Error after logging to cPanel:

can’t create /home/username/.cpanel/datastore/all_iplist.db: No such file or directory at /usr/local/cpanel/Cpanel/DIp/ line 198

Carp::croak(‘can\’t create /home/username/.cpanel/datastore/all_iplist.db: No …’) called at /usr/lib/perl5/site_perl/5.6.2/i686-linux/ line 76
Storable::logcroak(‘can\’t create /home/username/.cpanel/datastore/all_iplist.db: No …’) called at /usr/lib/perl5/site_perl/5.6.2/i686-linux/ line 258
Storable::_store(‘CODE(0xa7ad524)’, ‘ARRAY(0xb7a2188)’, ‘/home/username/.cpanel/datastore/all_iplist.db’, 0) called at /usr/lib/perl5/site_perl/5.6.2/i686-linux/ line 218
Storable::nstore(‘ARRAY(0xb7a2188)’, ‘/home/username/.cpanel/datastore/all_iplist.db’) called at /usr/local/cpanel/Cpanel/DIp/ line 198
Cpanel:Ip::MainIP::getconfiguredips() called at /usr/local/cpanel/Cpanel/DIp/ line 39
Cpanel:Ip::MainIP::getmainip() called at /usr/local/cpanel/Cpanel/ line 38
Cpanel:Ip::isdedicatedip(serverip) called at /usr/local/cpanel/Cpanel/ line 398
Cpanel::ExpVar::hasdedicatedip() called at /usr/local/cpanel/Cpanel/ line 277
Cpanel::ExpVar::expvar(‘$hasdedicatedip’) called at cpanel line 1443
main::execiftag(”) called at cpanel line 4043
main::dotag_finished_headers(”, 0) called at cpanel line 3898
main::cpanel_parseblock(‘^J…’) called at cpanel line 3842
main::cpanel_parse(‘GLOB(0xa7d9698)’) called at cpanel line 5331
main::run_standard_mode() called at cpanel line 387

If you get above error after logged into cPanel, then do not panic there is a simple fix for this error.
If you have root access to server then check cPanel logs at

tail -f /usr/local/cpanel/logs/error_log | grep cPanel-username

Note: Replace your actual cpanel user name with cPanel-username and try accessing cPanel which will generate error logs for cPanel.

Logs will show you that you have exceeded your allowed disk quota for domain.

Now you will need to delete unwanted file from your account or increase disk quota for domain which will fix the issue.

Post to Twitter

Install Softaculous

what is Softaculous ??

Softaculous is an auto installer script which can be used to install third party application. It is compitable with control panel like cPanel, Direct admin and Linux Plesk.

Softaculous support more then 140 web applications.

To install this you will need to root access to server.

Following are the steps to install Softaculou on cPanel Linux server.

1) SSH server as root and execute following command.

cd /usr/local/cpanel/whostmgr/docroot/cgi
wget -N
chmod 755 addon_softaculous.php

Now access WHM as root and and go to Plugins >> Softaculous – Instant Installs

and now you should see page with indicates Congratulation Softaculous was installed  Successfully.

Post to Twitter

Install VNC Server On CentOS

Virtual Network Computing (VNC) is a graphical  desktop sharing system that used to remotely control/access another computer.  It transmits the keyboard and mouse events from one computer to another, relaying the graphical screen updates back in the other direction, over a network.

VNC is platform-independent  i.e  A VNC viewer on one operating system may connect to a VNC server on the same or any other operating system. To access remote machine with VNc client it is necessary that you have VNC server installed on the remote machine. and VNC client on local machine.

Following are the steps to install VNC Server on Linux CentOS (server side steps)

1) Install the X Windows System & GNOME Desktop Environment

root@Server[~]#yum groupinstall “X Window System”
root@Server[~]#yum groupinstall “GNOME Desktop Environment”

NOTE: If you get the following error “Error: Missing Dependency: is needed
By package nautilus-sendto” while installing GNOME Desktop Environment, you will need to manually install nautilus-sendto with the following procedure:

root@Server[~]# yum install yum-utils
root@Server[~]# yumdownloader nautilus-sendto
root@Server[~]# rpm -Uvh –nodeps nautilus-sendto[PRESS TAB]

2) Configure VNC Server

* Edit the /etc/sysconfig/vncservers file and uncomment the following two lines:
VNCSERVERS=”5:root” # display port and username
VNCSERVERARGS[2]=”-geometry 800×600 -nolisten tcp -nohttpd -localhost”

* Set password to VNC Server
root# vncpasswd

3) To start VNC server issue command

root@Server[~]#vncserver :5

After starting service file /root/.vnc/xstartup will be created.

* Edit the local config file in the root folder:
nano ~/.vnc/xstartup
Replace “twm &” with “gnome-session &”

To stop VNC server issue command

root@Server[~]#vncserver -kill :5

Client side steps….

To access server remotely you will need tom install VNC viewer on your local machine. you can download VNC client from Here

Once installed, open your VNC client and type your server’s IP followed by the port number

*Open your VNC client (e.g. TightVNC or RealVNC) and type your  server’s IP followed by the port number

e.g.   server’s ip address:5  –> where 5 is the port you set in

Click on Ok and it will prompt for password. Enter the password you have set.

And you will get the remote desktop access.

Post to Twitter

Redirect error page

How to redirect error page ?

If you wish to redirect 404 error page to main domain or another custome page do following.

1) Create a .htaccess file in document root of your domain and and add following code.

#will redirect 404 error page to your domain.
ErrorDocument 404

#Add following line if you want to redirect page to specific page
ErrorDocument 404     /404_redirect.php

Note: Replace wiuth your actual domain name.
File 404_redirect.php should be present under document root  of domain.  you can create file 404_redirect.php with your design.

Similearly you can replace ErrorDocument number i.e 404 with other numbers as well.

Post to Twitter