Hostforweb Summer 2010 Coupon Code
Hello folks! New coupon code for hostforweb.com! summer

20% off first invoice, both for yearly and monthly invoices. So buy a year and save!
Hello folks! New coupon code for hostforweb.com! summer

20% off first invoice, both for yearly and monthly invoices. So buy a year and save!
Hey all, looks like I’ve managed to find a hostgator coupon code.
The code is securecpdiscount
Click through, check out their deals.
Hey peeps. Here’s how to go about disabling root login for a linux cPanel CentOS server.
In this example we’ll assume you want to login as mrsnoopdog before being able to login as root, meaning you’ll need to utilize the ‘su’ command.
First, let’s create ‘mrsnoopdog’:
groupadd mrsnoopdog
useradd mrsnoopdog -gmrsnoopdogNow let’s give ol mrsnoopdog a password!
passwd mrsnoopdog
Enter your pass twice. Put it in a nice secure place.
Now if you’re on a cPanel server, you can login to WHM and add your new user under ‘manage wheel group users’ and add you new user; else, no cPanel, edit ‘/etc/group’ and add your new user, in our case mrsnoopdog, after wheel:x:10:root to look like after wheel:x:10:root,mrsnoopdog.
Now, sit back and say ‘grrrreat’ and sip your Guinness. Ok, back to work…
Let edit the file /etc/ssh/sshd_config and change:
Protocol 2,1
to
Protocol 2and…
#PermitRootLogin yesto
PermitRootLogin noThen issue: service sshd restart
While you’re still in the server, open another shell and test it out before you logout.
If it all fails, visit your WHM with “scripts2/doautofixer?autofix=safesshrestart” behind and it will all go back to normal.
I ran into this issue recently where users were getting the error:
“Unexpected condition from IMAP server, closed or corrupt connection to IMAP. Possible mailbox corruption.”
First, try a:
mysqlcheck --auto-repair
This will more than likely yield “The storage engine for the table doesn’t support repair” Due to it’s engine used, this is fine. What you may be looking for is “error : Table upgrade required. Please do “REPAIR TABLE `session`” or dump/reload to fix it!”
It may occur on others as well.
So now, we’re going to make raw-data backups
cp -pr /var/lib/mysql/roundcube /usr/src/roundcube_backup mysqldump roundcube > roundcube.sql mysql -u root roundcube < roundcube.sql
The above should fix your problem, or point you to an easily fixable corruption in the sql file.
else, lets log in to WHM and select mailserver configuration:
Main >> Service Configuration >> Mailserver Selection
and select dovecot here. It will take a second to build, and this may also potentially help.
Enjoy.
To enable extended loggin in exim to trace nobody mails. Try the following trick .
1. Edit /etc/exim.conf
2. On the second line add :
log_selector = +address_rewrite +all_parents +arguments +connection_reject +delay_delivery +delivery_size +dnslist_defer +incoming_interface +incoming_port +lost_incoming_connection +queue_run +received_sender +received_recipients +retry_defer +sender_on_delivery +size_reject +skip_delivery +smtp_confirmation +smtp_connection +smtp_protocol_error +smtp_syntax_error +subject +tls_cipher +tls_peerdn \
Make sure all that comes on a single line.
3. Save and exit.
4. Restart Exim.
A little bit luck and you should be able to catch the spammer.
Hello All,
with update comes woe. cPanel has set their release to version 11.25. Some sites will have problems with this where when going to the domain it will say something along the lines of unable to load template file or will just redirect you to /cgi-bin/defaultwebpage.cgi sometimes tossing a 404
cPanel says to do this:
Resolutions:
1.) New builds, 11.25.0-CURRENT_42400 and 11.25.0-RELEASE_42400, have been published to address the issue. This issue will not be present on subsequent new installations. Upgrading a currently affected system will resolve this issue.2.) Rebuilding the Apache configuration after the addition of the first account will permanently resolve this issue.
From the command line:
/scripts/rebuildhttpdconf
/scripts/restartsrv_httpdor
/scripts/autorepair userdir_enable_fix
/scripts/restartsrv_httpdFrom the WHM:
Service Configuration -> Apache Configuration -> Global Configuration ->
Save -> Rebuild Configuration and Restart Apache
Keep it rocking peeps
Hello again my treacherous friends, 4) Login and blog your butt off! Marlboro Mediums FTW!
I just thought I’d show others how to change their WordPress passwords. If you’re like me, I find it easier to make my wordpress password something so hard to remember that I usually forget it mysql. So, if you do this via straight command line, do the following:
1) mysql -u username -p
2) enter password and hit enter
The following is assuming your table name is wp_users
3)
update wp_users set user_pass = MD5('your password here') where ID =1;
cPanel/WHM specific:
cPanel/WHM Initial Installation Errors:
Location : /var/log/cpanel*install*
Description : These log files contain cPanel installation logs & should be referenced first for any issues resulting from new cPanel installations..
Cpanel/WHM Service Status Logs:
Location : /var/log/chkservd.log
Description :The service monitoring demon (chkservd) logs all service checks here. Failed service are represented with a [-] and active services are represented by [+].
Cpanel/WHM Accounting Logs:
Location : /var/cpanel/accounting.log
Description : Contains a list of accounting functions performed through WHM, including account removal and creation..
cPanel error logs:
Location : /usr/local/cpanel/logs/error_log
Description : cPanel logs any error it incurs here. This should be checked when you encounter errors or strange behavior in cPanel/WHM…
cPanel License Error Logs:
Location : /usr/local/cpanel/logs/license_log
Description : All license update attempts are logged here. If you run into any errors related to license when logging in, check here.
Stats Daemon Logs:
Location : /usr/local/cpanel/logs/stats_log
Description : The stats daemon (cpanellogd) logs the output from all stats generators (Awstats, Webalizer, Analog) here.
Client Information, Requested URL Logs:
Location : /usr/local/cpanel/logs/access_log
Description : General information related to access cPanel requests is logged here.
cPanel/WHM Update Logs: Read the rest of this entry »
Hello my treacherous friends,
I recently saw a person struggling with a SuPHP installation. Most of todays database driven web software require some open permissions to allow administrators to ‘write’ to there files. Some items will require 777 permissions on directories or 666 permissions on files allowing vandals to destroy your site and it’s reputation. Well SuPHP will help to resolve some of this. It will make accessing user, usually nobody, set to the username, in my examples will be ‘joeblow’. Whether I’m explaining it properly or not it makes sense to me.
Onward! This entire tutorial is going to assume your running cPanel as paths should show. First off, direct yourself into this users public_html directory and run something similar to the following:
find /home/joeblow/public_html/ -type d -exec chmod 755 {} \; find /home/joeblow/public_html/ -type f -exec chmod 644 {} \; chown joeblow.joeblow /home/joeblow/public_html/* -R
The above will keep things rocking.
So on to a hypothetical, and very common, situation. Read the rest of this entry »