Why is it beneficial to have a dedicated IP address?

When it comes to hosting a website on a shared server, there is always quite a common controversial issue: Is it necessary to have a dedicated IP address for your website and why, if you just can use a shared one? Using dedicated IP address provides with certain crucial advantages, but let’s start with the definition first.

What is Dedicated IP Address?

IP stands for Internet Protocol and is defined as unique address assigned to each computer that is connected to a certain network. Internet Protocol address plays the role of unique identifier that is used to provide actual location of a machine or a website in a given network.

What is the difference between Shared and Dedicated IP address?

The difference between shared and dedicated IP addresses is quite simple. Shared IP address is a single address that is used by multiple websites within one web-server. In this case web-server should do some extra work, parsing user’s request to the correct website. Having Dedicated IP address means that the website has its very own address and you can use whether this IP address or domain name of your website to access it from the Web. For more illustrative example, please check the diagram below:


Why having dedicated IP address is beneficial?

There are a lot of reasons why it is recommended to use Dedicated IP address for a website, hosted on a Shared server, but we shall look through the main ones here:

  • It provides a higher stability

The fact that multiple websites share single IP address on the Web gives a clear picture about difficulties that may appear with a separate website. Just imagine that one of the websites hosted on a Shared server as well as yours, was suddenly flagged as a malicious one or the actual IP address of the server was blacklisted due to possible spamming activity of one of the users. Unfortunately there is a possibility that your website would suffer the consequences as well, however dedicated IP address will allow to control reputation of the website on your own in this case, and it won’t be affected by the others activity.


  • It grants access to your website anytime you need

Sometimes it is quite necessary to check how website is going to look before pointing domain name to the server and launching your website on the web. Dedicated IP address will provide with ability to access server directly without changing DNS settings for the domain name.

  • It is beneficial for email sender’s reputation

As it was already mentioned above, having your website run over a single IP address may cause unpredictable difficulties and email service may also be affected in this case. There are some situations when some user, sharing the same IP address with you gets banned or blacklisted for spamming which may possibly affect your email service as well. Using dedicated IP address for email, isolates your service from being affected by consequences of abuses made by others.


  • It is good for a business identity

If you are going to host your own online-store or other e-commerce related website, and you are not going to use some additional third-party services for handling payments, it is quite necessary to grab some Dedicated IP address and SSL certificate for the website, in order to provide security for your customer’s data. Customers will feel more safe making transactions on the website which uses dedicated IP address.


  • It is required for particular third-party applications/scripts

Sometimes a particular application or a script that you may wish to run on your server, requires a dedicated IP address.


  • SNI technology and incompatibility with some old browsers

With a recent cPanel update, we started to support SNI technology that allows to install multiple SSL certificates on a Shared IP address. However having a few SSL certificates on a shared IP address may cause issues with older versions of some browsers. In this case, all the visitors of such websites will receive a message containing information about untrusted connection, indeed the website is going to be available via HTTPS protocol. Dedicated IP address helps to avoid such issues.

Clear cache memory and set cronjob on Linux server

Below is the command to clear memory cache :-

[root@root~]#  sync; echo 3 > /proc/sys/vm/drop_caches

Use the above command in cronjob using screipt

Login your server as a root user.

Then use it in script at “/root/cleacrcache.sh” and enter folllowing contents

    sync; echo 3 > /proc/sys/vm/drop_caches

Make  the permission of ” /root/cleacrcache.sh” to 755

[root@root~]#  chmod 755  /root/cleacrcache.sh

Run the cronjob using  crontab file as below :-

  [root@root~]#  crontab -e  OR
    [root@root~]# Vi /var/spool/cron/root

Enter below  cron  to set cronjob for clearing cache in every hour

   0 * * * * /root/clearcache.sh

Restart crond service

[root@root~]#  /etc/init.d/crond restart

Thats it you have done :)

Missing LOGSTYLE Config Line in /etc/wwwacct.conf


If you are getting “Missing LOGSTYLE Config Line in /etc/wwwacct.conf” error while creating the account from WHM >> Create a new account then the file /etc/wwwacct.conf is not configured properly.

Make sure that you have WHM > Basic Setup > Apache Access Log Style > set to combined

That will solve your problem. Just try to create the account now.

Make sure that you have WHM > Basic Setup > Apache Access Log Style > set to combined

How to view and edit php.ini file in WHM or through SSH. Fatal error: Allowed memory size of 33554432 bytes exhausted

How to view and edit php.ini file in WHM or through SSH.  Fatal error: Allowed memory size of 33554432 bytes exhausted

php.ini file of your server is located at /usr/local/lib/php.ini. even then you must suppose to view and edit your php.ini file from WHM despite through ssh access.

How and where you can find this option in whm.

Here is the location in WHM/Cpanel where you can find out you php.ini file to edit
Main >> Service Configuration >> PHP Configuration Editor

Usually when you need to edit your php.ini file?
When you want to install a script for which there is required more memory despite 32MB or else or when after installing a script you get this error “Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 22917 bytes) in /home/user name/public_html/core/cake/libs/configure.php on line etc”.

How you can view and edit your php.ini file through ssh?

If you want to edit the php.ini file through ssh, you can use

nano /usr/local/lib/php.ini

You may want to type nano — to get help first to make this fact confirm that you can navigate the editor first.

Hope it would be quite help full.

*WARNING* Since the Virtuozzo VPS iptables ip_conntrack_ftp kernel module + csf

Getting the following error while trying to restart csf in my VPS .

root@a24uall [/etc/csf]# csf -r
*WARNING* Since the Virtuozzo VPS iptables ip_conntrack_ftp kernel module is currently broken you have to open a PASV port hole in iptables for incoming FTP connections to work correctly. See the csf readme.txt under ‘A note about FTP Connection Issues’ on how to do this if you have not already done so.
root@a24uall [/etc/csf]#

Solution : IF we dont have node access we need to change the settings in VPS itself

Check if its Pure FTP or Pro FTP and add the following line in the conf file.

vi /etc/pure-ftpd.conf
PassivePortRange 30000 35000

vi /etc/proftpd.conf
PassivePortRange 30000 35000

vi /etc/csf/csf.conf
# Allow incoming TCP ports
TCP_IN = “20,21,22,25,53,80,110,30000:35000″

If you see this error while restarting iptables then in place of csf step use :

iptables -A INPUT -p tcp –dport 30000:35000 -j ACCEPT

enable module

modprobe ip_conntrack_ftp