MilesWeb Hosting Forum

Please login or register.

Login with username, password and session length



SMF - Just Installed!

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - Administrator

Pages: 1 2 [3] 4 5
How To's / How To Check Horde Version ?
« on: April 27, 2014, 10:50:23 AM »
Dear All,

What if you have to check Horde's webmail client version available in cPanel ?

Login to your server via SSH and run command below. It will show you the Horde's version installed on the server.

# cat /var/cpanel/horde/version

It will show you the version installed. On our shared servers, 5.1.4-1.cp1142 is installed which is the latest one available with cPanel. The webmail versions are upgraded in the next cPanel release in a timely manner.

How To's / How To Change MySQL Temporary Directory ?
« on: April 21, 2014, 05:16:12 PM »
Hi Members,

By default the temporary directory for your MySQL server is set to /tmp folder. When you perform any queries, repair the tables, perform tasks on the database, etc; the temporary files are stored in this directory.

Just in case, if the /tmp partition is running out of space you can either delete these files OR create a new directory with large disk space. Assign this directory as temporary directory for MySQL server.

Open MySQL configuration file in your favorite editor

vi /etc/my.cnf

Add the line below & save the file.

tmpdir = /home/mysql-tempdir

Create the folder on your server and set ownership and permissions as below.

chown mysql.mysql  /home/mysql-tempdir
chmod 1777 /home/mysql-tempdir

Restart MySQL service & you have successfully changes the temporary directory.

Cross check it with the command below.

mysqladmin variables | grep tmpdir

Feel free to reply this thread if you face any other issues.

Errors and Solutions / phpMyadmin Error
« on: April 21, 2014, 04:55:26 PM »
Hi Team,

I recently migrated data from one server to other. On the new server when trying to access phpMyadmin, it was showing an error.

Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly

Access your server via SSH as root & open file using your favorite editor.

vi /usr/local/cpanel/3rdparty/etc/phpmyadmin/php.ini

Search for session.save_handler & session.save_path

Change it FROM

session.save_handler = sqlite
session.save_path =/var/cpanel/userhomes/cpanelphpmyadmin/sessions/phpsess.sdb


session.save_handler = files
session.save_path = /tmp

Restart cPanel, Apache and MySQL service. Now, try accessing phpMyadmin & it should work.

Errors and Solutions / Can't umount : Device or resource busy
« on: April 17, 2014, 05:52:17 PM »
When I tried starting a OpenVZ container on our node, I faced this error below.

Can't umount : Device or resource busy

Make sure if you have any other SSH connections open, or any other connection that may be causing the problem. most of the time itís just an SSH connection you still have open.

If that doesn't working, perform the steps below.

Shutdown the VPS/container by logging into it OR from the node/host.

By logging into the VPS
# shutdown -h now

By logging in the node
# vzctl stop 999

Now, try to unmount it with command below.
# vzctl umount 999

Finally, check if the VPS is in mounted state
# cat /proc/mounts | grep 999

If it shows to be mounted, umount the directories that shows in the output.

Note: Make sure you replace 999 with actual container ID.

How To's / How To Add EPP/Authorization Code When Order Is placed ?
« on: April 02, 2014, 06:27:35 PM »
Hi All,

This post will help users to add the EPP/Authorization code when you receive a Domain Transfer order. At times customers do not enter the EPP/Authorization code while placing a Domain Transfer order.

Login to your WHMCS & access domain info page under the clients profile. Click on Transfer button. You can then enter the EPP code before submitting the request to the registrar. No need for database edits or manual processing.

Hope this help :-)

When tying to start iptables on a server, you receive an error as below. Further checking, I found that the required modules for iptables to work are installed/enabled. Still this error.

iptables: Applying firewall rules: FATAL: Module ip_tables not found.
iptables-restore v1.4.7: iptables-restore: unable to initialize table 'nat'

Error occurred at line: 2
Try `iptables-restore -h' or 'iptables-restore --help' for more information.

I had a check at the rules and there were few rules due to which iptables was unable to start. Try flushing the iptables rules OR remove the ones which are incorrectly set.

Try starting iptables & it should work properly.

Apache error logs are filled with the logs below.

[error] an unknown filter was not added: DEFLATE

This error message would mean that someone is using mod_deflate code in an .htaccess file, but your server doesn't have mod_deflate installed. Find for the .htaccess file which has the entry for Deflate being used.

If you want to install mod_deflate, simply compile PHP/Apache using WHM >> EasyApache (Apache Update) or /scripts/easyapache. Select the Deflate module in the Apache's Exhaustive Options List.

Errors and Solutions / cache_dir must be a directory
« on: March 27, 2014, 11:47:56 PM »
While accessing the Magento admin panel you receive the error below.

cache_dir must be a directory

Magento stores temporary files in tmp folder, under your website's root directory. To fix the error above, login to your FTP OR File Manager & create directory tmp under website's root directory. Set permissions to 777 on tmp & try accessing Magento Admin Panel.

Looking for quality Magento hosting? Look no further than MilesWeb's Best Magento Hosting plans.

When trying to access the migrated/transferred Magento website you receive an error below.

There has been an error processing your request
Exception printing is disabled by default for security reasons.

Access errors folder under your root directory of the website & rename the file local.xml.sample to local.xml. Once you change the name, open file lib/Zend/Cache/Backend/File.php. You can open it via using a Editor in FileManager.

Find for

protected $_options = array(
'cache_dir' => 'null',

and replace it with

protected $_options = array(
'cache_dir' => 'tmp/',

Save the file & create a tmp folder under your root directory. Try accessing the website now and it should work as expected.

Looking for quality Magento hosting? Look no further than MilesWeb's Best Magento Hosting plans.

Errors and Solutions / Magento shopping cart errors
« on: March 26, 2014, 07:35:40 PM »
Hi Members,

Recently, I have had this strange issue where one of the table under the database was missing. Here is the error which kept flashing on the website.

SQLSTATE[42S02]: Base table or view not found: 1146 Table '.log_visitor' doesn't exist

I was fortunate that the backups were configured & I restored the database table. But, what if you do not have the backup ? Below is the SQL query you should execute to fix it.

Access phpMyAdmin and select the database. Click on the SQL tab and enter the query below under Run SQL query/queries on database

  `visitor_id` bigint(20) unsigned NOT NULL auto_increment COMMENT 'Visitor ID',
  `visitor_type` varchar(1) NOT NULL COMMENT 'Visitor Type',
  `remote_addr` bigint(20) NOT NULL COMMENT 'Remote Address',
  `first_visit_at` timestamp NULL default NULL COMMENT 'First Visit Time',
  `last_visit_at` timestamp NULL default NULL COMMENT 'Last Visit Time',
  `customer_id` int(10) unsigned default NULL COMMENT 'Customer ID',
  `last_url` varchar(255) default NULL COMMENT 'Last URL',
  PRIMARY KEY  (`visitor_id`),
  KEY `IDX_LOG_VISITOR_ONLINE_FIRST_VISIT_AT_LAST_VISIT_AT` (`first_visit_at`,`last_visit_at`),
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COMMENT='Log Visitor Online Table'

Click on Go and you table gets created. You should be able to access the website now.

Now that's the reason we say backup plans are important. They come handy if you land in such a mess.

Looking for quality Magento hosting? Look no further than MilesWeb Magento Hosting.

Errors and Solutions / Unable to create VPS from WHMCS
« on: March 14, 2014, 01:42:15 PM »
When trying to create a VPS from WHMCS OR accepting the order, you receive an error below.

Order Accept Encountered Problems Auto select error (No free nodes found in group)

Logging into the SolusVM Admin Panel I see that VPS limit is OK, Node is not disabled, IP's are available. To troubleshoot it further have a check at API log. You will see that Max Memory and Max Disk Space allocated should be increased.

Login to your SolusVM Admin Panel & access option Nodes >> List Nodes. Click On Edit Node option available on the right side. Increase the Max Memory and Max Disk Space. Click on Save.

Try creating VPS/accepting the order from WHMCS & VPS would be created.

Looking for quality VPS hosting? Look no further than MilesWeb VPS Hosting.

Errors and Solutions / iptables: No chain/target/match by that name
« on: March 12, 2014, 12:00:27 PM »
Hi Members,

When trying to add any rule in iptables on your VPS with OpenVZ virtualization, you might receive an error below.

iptables: No chain/target/match by that name

You will have to enable few modules on the node and then for the VPS. On the node, execute commands below.

[root@server ~]#modprobe xt_tcpudp
[root@server ~]#modprobe ip_conntrack
[root@server ~]#modprobe xt_state

If you want to use stateful firewall rules (and you should!) you will also need to make sure that 'ipt_state' is in the 'IPTABLES' option in your vz.conf file

IPTABLES="ipt_REJECT ipt_tos ipt_limit ipt_multiport iptable_filter iptable_mangle ipt_TCPMSS ipt_tcpmss ipt_ttl ipt_length ipt_state"

Restart your container & then try adding the iptables rule. It would work as expected.

Errors and Solutions / Email Error Messages
« on: February 28, 2014, 10:11:29 AM »
Hi All,

I am starting this thread so that whoever faces any issues when sending emails to different mail service providers, can post the error and fix that can be applied. This will help all members to know as to why Hotmail is rejecting OR not accepting the emails.

One of the error as below.

== test[ @ ] R=lookuphost T=remote_smtp defer (-45): SMTP error from remote mail server after MAIL FROM:<abc[ @ ]> SIZE=103808: host []: 421 RP-001 (COL0-MC1-F46) Unfortunately, some messages from xx.xx.xx.xx weren't sent. Please try again. We have limits for how many messages can be sent per hour and per day. You can also refer to http://

As explained in the error, it looks like your server has exceeded the threshold of emails to be sent per hour and per day. This can be due to many emails stuck in your email queue OR an account involved in sending spam emails.

If you own your server, please make sure the queue is cleared OR the account involved in sending spam emails is disabled. For owners with shared hosting account, please contact the server administrator to investigate further.

Errors and Solutions / nrpe: error while loading shared libraries
« on: February 27, 2014, 07:59:38 PM »
Hi All,

When trying to restart the nrpe service (nagios client), you receive an error as below.

nrpe: error while loading shared libraries: cannot open shared object file: No such file or directory
nrpe: error while loading shared libraries: cannot open shared object file: No such file or directory

This is because the required libraries for nrpe to function do not exist on the server. A workaround is to copy the current libraries to the one which are required by nrpe.

To check the available libraries, use the command below.

root@server [/usr/local/src]# ls /usr/lib64/libssl*

root@server [/usr/local/src]# ls /usr/lib64/*

The above command shows the available ones. Now, copy the to & to with command

root@server [/usr/local/src]# cp -af /usr/lib64/ /usr/lib64/
root@server [/usr/local/src]# cp -af /usr/lib64/ /usr/lib64/

Now, try starting the nrpe service and it should start without any errors.  8)

Hi Joomla Users,

This post will help you to fix the error post Joomla installation. It has been observed that this error is with Joomla 3 version.

Error Your host needs to disable magic_quotes_gpc to run this version of Joomla!

If your server has suPHP compiled, copy the server's php.ini under your account. Open in this file and set magic_quotes_gpc to Off. Once done, open the .htaccess file and the code below. Doing this, the php.ini will be effective to the whole account.

SetEnv PHPRC /home/cPanel-user/public_html

If your server does not have suPHP compiled, you can disable magic_quotes_gpc using .htaccess file. Open the .htaccess file and add the code below.

php_flag magic_quotes_gpc off

Note: If you are on a shared hosting package, ask your host to copy the server's php.ini under your account.

Now, try accessing Joomla & error is gone !

Pages: 1 2 [3] 4 5