www doesn’t work for my site

Question:

www.mydomain.com no longer resolves. I believe it did in the past. What changed?

Answer:

In most cases both still work but you’ll notice that the www version immediately redirects to the non-www version. This was probably done when your SSL was installed.

Many search engine experts believe that google likes it best (and therefor ranks you higher) when your content is all under a single url and not duplicated on both. For most new SSL installs we force redirect all requests to the SSL version of your non-www domain.

We can undo this if you prefer and make both work. Just contact support and we’ll make it happen!

Can my users change their own email password?

Can my users change their own email password?

Yes, to do so, copy the link for your email control panel. It will look like:

https://SOME_PHPWEBHOSTING_SERVER_HERE.phpwebhosting.com/cgi-bin/qmailadmin/

Have them login as their username (instead of postmaster)

and then click:

“Edit existing address: pop3”

and it will allow them to change their own password.

Webmin not allowing database creation, user creation

Q: Inside webmin I cannot create new databases or users, I get the error:

DBI connect failed : Access denied for user ‘my_user_nam_here’@’%’ to database ‘mysql’

How can I fix this?

A: You need to login to mysql as the mysql admin user (usually called root). Normally if you login to webmin as root it will login you into MySQL as root too. If this does not work, fix it with:

Inside webmin:

Click “servers”
Click “MySQL Databaseservers”
Click “Module Config” on the MySQL screen (top left)
Change “Administration login” to either automatic (should work) or “root”

yum fails on my VPS / the RPM database on my VPS is corrupt

Under certain conditions the RPM database used by yum will become corrupt. Here is how to resolve this issue. You may see an error such as “Warning: RPMDB altered outside of yum” or “error: rpmdbNextIterator”

1. Take a backup FIRST, before trying to have rpm repair the database.

cd /var/lib
tar zcvf /var/preserve/rpmdb-[today's date].tar.gz rpm

Verify integrity with

cd /var/lib/rpm
rm -f __db*      # to avoid stale locks
/usr/lib/rpm/rpmdb_verify Packages

Next run the following:

mv Packages Packages.orig
/usr/lib/rpm/rpmdb_dump Packages.orig | /usr/lib/rpm/rpmdb_load Packages
/usr/lib/rpm/rpmdb_verify Packages
rpm -qa

Finally rebuild the database:


rpm -vv --rebuilddb

for the error :


error: rpmdbNextIterator

run:


mv /var/lib/rpm/Pubkeys /var/lib/rpm/Pubkeys.backup
rpm --rebuilddb -vv to recreate the index.

from : https://bugzilla.redhat.com/show_bug.cgi?id=108915

reference : http://kbase.redhat.com/faq/docs/DOC-6904#

Quickly test various services using telnet

If you are attempting to diagnose mail on your server or VPS, you can quickly test POP3 without setting up an account in a mail program using telnet :


telnet server-name.com 110

USER email_address@domain.com

PASS unencrypted-password here

LIST

where email_address@domain.com is the pop3 login your are testing. Usually this is the same as the email address.

 

List should return the messages number or a single period if no messages are available

Note that in this test the password is unencrypted. You should set a temporary test password during the test.

 

Install newer python version

Depending upon your server OS, you may find the Python version to be out-of-date. This is often due to the OS relying on a particular version for system scripts, etc.

 

On some servers we have installed additional python versions and named them python3, python2, etc. If your server does not have these you can request and install or you can make a private python install to your shell account.

 

It is quick and easy to install your own python version to your shared hosting shell account.

 

1. Download python (change this to the version you need)

 

wget https://www.python.org/ftp/python/3.4.0/Python-3.4.0.tgz

 

2. configure to use your local dirs:

 

./configure --prefix=$HOME/python

make

make install






php-cgi does not give proper 404 errors

When using php-cgi via .htaccess you will find that missing files give “No input file specified” instead of a proper 404 error.

To fix this, add :

 

RewriteEngine On
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteRule ^.+\.php$ /file_name_that_does_not_exist

to your .htaccess

replace “file_name_that_does_not_exist” with any file name that does not exist – ie. something that will trigger a 404 error.

 

 

How can I reset my email master password

I’ve lost my master email password – how can I retrieve it?

Due to the encryption, your passwords cannot be retrieved. However you can reset the master password : postmaster@your-domain.com in your control panel. You can then use the new password to administer/change/view/etc. all your other email accounts.

When you first login to the control panel, choose the link:

Password: change

this will bring you to a page to set a new password. It will set the new password for several parts of you account – including the postmaster@your-domain.com password. After you change the password, go to the Email section and select “Configure your email accounts”