Hosting Tips & Tricks

Archive for the ‘Uncategorized’ Category

Plesk9 client migrations with SSL certs.

There is a thing good to know when migrating plesk 9 accounts which are using SSL certificates because “All certificates are reset when domain is restored”.
just read following article:
http://forum.parallels.com/showpost.php?p=395046&postcount=39


Plesk windows file manager need to upload larger files

By default a client can’t upload files in plesk file manager larger then ~30MB . Unfortunately we have to let them upload bigger files because they like to use the  archive “uncompress” feature from file manager.
The error received in plesk is:
HTTP Error 404.13 – Not Found
The request filtering module is configured to deny a request [...]


Linux (centos) binary prelink issues

Today on a Cpanel server after nightly upgrade , our firewall (csf) detected some changed files. Then I run bellow verify command :
#rpm -qfV /bin/bash
prelink: /bin/bash: at least one of file’s dependencies has changed since prelinking
S.?…..    /bin/bash
I had never seen this before, but apparently rpm is doing something different now that prelink is present. Note [...]


How to renew plesk services ssl certificates (self signed)

For Parallels Plesk Panel version 7.x, 8.x:
Server -> Certificates -> Add New Certificate
For Parallels Plesk Panel version 9.x:
Settings -> SSL Certificates -> Add SSL Certificate
Fill in required preferences and click button {Self-Signed}
New self-signed SSL certificate will be created in server certificate repository.
To assign this SSL certificate for securing your Parallels Plesk [...]


Apache did not start

Error log contains:
[emerg] (28)No space left on device: Couldn’t create accept lock
or
[crit] (28)No space left on device: mod_rewrite: could not [...]


How to restore plesk 8 backup on plesk 9 server

Copy backup to plesk9 server and run:
/usr/local/psa/bin/pre9-backup-convert -v convert -d /var/lib/psa/dumps/  /root/plesk8-backup-file
then go to plesk 9 panel and restore the backup from the client and/or precreated domain.


How to add VisualWebGUI-Page extension to Windows2008/IIS7

step1:-
in Add Script Map dialog enter:
Request path: *.wgx
Executable: C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll
Name: VisualWebGUI-Page
Then click Request Restrictions…
Clear Checkbox: Invoke handler only if request is mapped to:
Click OK
Click OK again on Add Script Map
Step2:-
Change the application pool to classic.net apppool at basicsettings tab in under Actions menu.
Step3:-
give iis_iusers read permissions for web.config


MySQL Tip: MySQL Server Has Gone Away Or Lost connection to server during query

A much dreaded MySQL error message during queries is “MySQL server has gone away”. An alternative message is “Lost connection to server during query”. This is a strange problem which afflicts a wide variety of PHP software including but not limited to WordPress. There are several causes for it. Let’s look at the common and [...]


Verify installed rpm’s

For those who don’t like to RTFM, bellow can find codes for verifying rpm’s:
for e.g.
rpm -qfV /usr/sbin/sshd
S.5….T  c /etc/pam.d/sshd
S.5….T  c /etc/ssh/sshd_config
explains into:
S file Size differs
M Mode differs (includes permissions and file type)
5 MD5 sum differs
D Device major/minor number mismatch
L readLink(2) path mismatch
U User ownership differs
G Group ownership differs
T mTime differs


How to modify plesk qmail local delivery and/or add actions to it

when I try to implement other local delivery software for e.g. I need to modify .qmail file when a new email account is created/updated via plesk . if you just edit .qmail it will be rewrite on any email account update from plesk and same for new accounts you have to provision this shit somehow.
for [...]