News:

SMF - Just Installed!

Main Menu
Menu

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.

Show posts Menu

Topics - Administrator

#21
Hi All,

On a Litespeed web server, error logs might start reporting the logs as below. It is when you upgrade it to LiteSpeed Web Server 4.1.5.

Quotefile permission is restricted for script

It is because a feature from Apache suphp user has been implemented. Litespeed does not serve scripts with unsafe file permission (group and world writable), or the script is inside a directory with unsafe permissions (group and world writable).

You can control it by performing 2 changes from the Litespeed admin panel. Access Server >> Security Tab. Find for Script Restricted Permission Mask & Script Restricted Directory Permission Mask. By default it would be 022. Set both to 000 & it won't show error anymore. Setting it to 000 will disable security feature. It is recommended to check with your admin first.
#22
Hi Guys,

One of the client tried importing images from eBay. There was an error which did not allow the eBay servers to import them. Further investigating the error logs, the error was as below.

Quote#APVH_domain.com] owner of file does not match owner of vhost, path [/home/username/public_html/var/files/1/e/backup/detail/Wabc.jpg], access denied.

Had a quick check at the ownership and they were incorrect. Simply, corrected them to the cPanel user's and they eBay team was able to import the images.
#23
Dear Members,

I hope this quick work around will help users who are unable to add domains from Plesk. It throws an error as below.

QuoteError: Fatal error: plesk::mail::FSError(rename: Operation not permitted: "/etc/postfix/master.cfciefD5", "/etc/postfix/master.cf")

Have a good look at the error which points that file /etc/postfix/master.cf cannot be edited. You have to check 2 things as below.

1. Permission on the file /etc/postfix/master.cf
2. Check if there are any attributes set (chattr command) on this config file. Remove the attributes if they are added.

Hope this helps users in adding the domains now.
#24
Errors and Solutions / Error 0x800CCC78
June 23, 2014, 05:52:45 PM
Hi All,

When trying to send an email using your mail client Outlook, you receive an error 0x800CCC78. It is usually due to authentication not enabled within your mail client. Service providers enable authentication to prevent spam emails being sent from the server without authentication.

Simple access Accounts Settings for your mail client. Find for the option My Server Requires Authentication under Servers OR Outgoing Servers tab. Check the option and save these settings.

You should be able to send emails now.
#25
Hi Members,

Recently, when trying to create email accounts from Plesk control panel, one of the client was receiving error as below.

QuoteError: Unable to update the mail account properties:mailmng failed: MEAOPO.Mailbox.AddMailbox failed for name=contact and domain domain.com [domain.com]

I had to access the server via RDP as administrator to fix this issue. Open command prompt & access the plesk directory with command below.

Quote%plesk_dir%

The command above will get you in the plesk bin directory. Then execute the command below.

Quotemchk.exe --domain --domain-name=domain.com --fix=local

It should fix the errors & you should be able to create the email accounts from Plesk panel.
#26
Dear Members,

This post will help you to install mysqlnd with PHP on a CentOS cPanel installed server. mysqlnd option is not available when you re compile PHP with easyapache.

Here is the tip & trick to compile it. You will need root privileges and SSH access to compile it.

Access your server via SSH and access the directory.

Quote# cd /var/cpanel/easy/apache/rawopts

Create a file all_php5 OR edit if it already exists. Add the lines below & save the file.

Quote--enable-mysqlnd
--with-mysqli=mysqlnd

Now, build PHP & mysqlnd will be compiled with PHP.

Quote# /scripts/easyapache --build

Hope this helps technicians who wish to compile mysqlnd with PHP.
#27
Errors and Solutions / Error: Disk isn't accessible
June 06, 2014, 06:16:57 PM
Hi All,

Thought of sharing with you all. Tried creating a VM on our Xen node and it was showing an error below.

QuoteError: Disk isn't accessible

Further investigating, I found that the logical volume (lvm) which was required for the VM to boot wasn't created. I created a new one and re installed OS for it to work.
#28
Hi Guys,

When trying to send emails, at times you receive an error

Quote550 "REJECTED - Bad HELO - Host impersonating

It is when you do not get a HELO message for incoming SMTP connections. Simply login to your server via WHM as root & access option Service Configuration ยป Exim Configuration Manager. Find for Require HELO before MAIL & set it to Off. Click on Save & try to send/receive emails. It should start working.
#29
In a Plesk control panel, when you try to increase the mailbox size for any email account, you receive an error below.

QuoteError: Unable to set the mailbox size limit for the domain: The size of this mailbox must not exceed the limit on amount of disk space allocated for mailboxes in this domain.

It is due to Mailbox quota size limited in the Resource Manager of the domain. You are trying to set a value more than the threshold set in the Resource Manager. Below is what you can do to increase the threshold.

Login to your Plesk Panel & access the domain. Access Statistics >> Resource Usage >> Set Mailbox Quota to a desired value. Click on Ok.

Try changing the Mailbox quota size and it should be functional.
#30
Hi All,

I have been trying to backup an account which was large in size. The backup was getting created & was taking a long time. After many hours, the backup was generated. However, it was showing corrupt & I wasn't able to restore it on our other server.

Further checking, I found that the public_html directory was consuming 13GB of space & that is the reason the backup file was getting corrupt.

I found a solution for it & that was generating the backup by skipping the home directory. I use the command below & generated the backup.

Quote/scripts/pkgacct --skiphomedir cPanel-username

The above command will skip the public_html directory. I restored the backup file on our other server and synced the public_html using rsync command.

It worked like a charm & a hassle free migration.
#31
How To's / How To Check Horde Version ?
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.

Quote# 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.
#32
How To's / How To Change MySQL Temporary Directory ?
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

Quotevi /etc/my.cnf

Add the line below & save the file.

Quotetmpdir = /home/mysql-tempdir

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

Quotechown 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.

Quotemysqladmin variables | grep tmpdir

Feel free to reply this thread if you face any other issues.
#33
Errors and Solutions / phpMyadmin Error
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.

QuoteCannot 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.

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

Search for session.save_handler & session.save_path

Change it FROM

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

TO

Quotesession.save_handler = files
session.save_path = /tmp

Restart cPanel, Apache and MySQL service. Now, try accessing phpMyadmin & it should work.
#34
When I tried starting a OpenVZ container on our node, I faced this error below.

QuoteCan'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
Quote# shutdown -h now

By logging in the node
Quote# vzctl stop 999

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

Finally, check if the VPS is in mounted state
Quote# 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.
#35
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 :-)
#36
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.

Quoteiptables: 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.
#37
Apache error logs are filled with the logs below.

Quote[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.
#38
Errors and Solutions / cache_dir must be a directory
March 27, 2014, 11:47:56 PM
While accessing the Magento admin panel you receive the error below.

Quotecache_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.

QuoteLooking for quality Magento hosting? Look no further than MilesWeb's Best Magento Hosting plans.
#39
When trying to access the migrated/transferred Magento website you receive an error below.

QuoteThere 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

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

and replace it with

Quoteprotected $_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.

QuoteLooking for quality Magento hosting? Look no further than MilesWeb's Best Magento Hosting plans.
#40
Errors and Solutions / Magento shopping cart errors
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.

QuoteSQLSTATE[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

QuoteCREATE TABLE IF NOT EXISTS `log_visitor` (
  `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_VISITOR_TYPE` (`visitor_type`),
  KEY `IDX_LOG_VISITOR_ONLINE_FIRST_VISIT_AT_LAST_VISIT_AT` (`first_visit_at`,`last_visit_at`),
  KEY `IDX_LOG_VISITOR_ONLINE_CUSTOMER_ID` (`customer_id`)
) 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.

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