I have a tumblr site.We can use our own domain instead tumbr address, redirect our domain to tumblr. Not only a domain,we also can redirect a subdomain to tumblr. It’s easy. Go to our domain control panel. Choose your DNS Zone. We must point the domain’s A-Record to tumblr’s ip address. Add a DNS Record : host A ip_address or for example test.com A 72.32.231.8 (domain) or test.test.com A 72.32.231.8 (subdomain).Don’t use plesk’ or cpanel’s subdomain services to create an A-record, ifwe use this, plesk or cpanel actually create a subdomain with a directory and an ftp for the subdomain. We don’t need this.
Log in to tumblr, open Settings inside Account drop down menu. Choose ‘use a custom domain name’ and type a domain name or a subdomain name. Save our new settings. We may need to wait up to 72 hours or less for the change to take effect.
Stat in one of servers is turn off and doesn’t updating for two days.
Check ‘root’ user crontab
crontab -l
output : 7 4 * * * /usr/local/psa/admin/sbin/statistics >/dev/null 2>&1
Check cron logs for records about the statistic utility executions
vi /var/log/cron
Check apache logs size. Make sure no bigger than 2GB.
Check database directories (mysql : /var/lib/mysql) have read/write permissions to ‘mysql’ user
If every conditions above fit with your settings, then we must Run :
/usr/local/psa/admin/sbin/statistics (for all sites in one server)
or
usr/local/psa/admin/sbin/statistics �calculate-one �domain-name=domain.com (only for one specific domain)
Ftp suddenly goes off and got ‘connection timed out’ before even connected
To determine what’s wrong with FTP :
- take a look /var/log/messages file for detailed error reports.
- the server hostname may not be resolved. In this case you should put the record like “SERVER_IP SERVER_HOSTNAME” into /etc/hosts.
- Make sure that inetd/xinetd is running.If inetd/xinetd is not running you also may be experiencing problems with sending mail (SMTP). Easy checking by sending mail. Or do :
ps -aux | grep inetd
or
ps -aux | grep xinetd
- Check following configuration in /etc/proftpd.conf :
IdentLookups Off
UseReverseDNS Off
No problem found in the log, the server hostname resolved, i don’t have a problem sending email so i’m pretty sure that inetd/xinetd is running, proftpd.conf is correct. Something must blocked out FTP.
Last solution : Check firewall settings to be sure that ftp ports are opened.
Note : this can be tricky in plesk, since its firewall modules says it’s opened. Check a system firewall.
Backup is an important thing to do before updating or upgrading Plesk (also important if we’re going to update or upgrade CentOS/RHEL). We can restore system to a previous state, if something goes wrong.
There are many ways to do backups. Here is a series of Backups :
I’m starting with Virtuozzo. Virtuozzo backups all system, files and databases
Make Backup
VPS Management > Maintenance > New Backup
Restore Backup
VPS Management > Maintenance > Check Backup Data, Then Restore Backup
Renew Backup/Replace Old Backup with New One
VPS Management > Maintenance > Check Backup Data, Then Renew Backup
Delete Backup
VPS Management > Maintenance > Check Backup Data, Then Delete Backup
CPanel and Plesk have phpMyAdmin inside their Control Panel/Administration Site. Only ‘root or ’superuser’ can access phpMyAdmin. This can be difficult if we have a development team, which each member needs to access databases. So we install phpMyAdmin outside Control Panel.
- Download phpMyAdmin version 2.9.x or above
- Extract phpMyAdmin and upload to server. Create a ‘not easy guess” folder name
- Change config.sample.inc.php to config.inc.php. Fill in a blowfish secret word and empty username and password in config.inc.php
- Don’t give ‘root’ password, create user and password for each member.
- Protect folder
CPanel : Site Management Tools > Web Protect
Plesk : Domains > Hosting > Directories (Protected Directories)
- Don’t give username and password for Protected Folder or Protected Directory to people who doesn’t have right to access the folder.
Has been 4 days since my last post, i had (tons of) things to do from my office, so i didn’t have time to update Nineteen Labs. And now, I’m back with few information to update, such as updating PHP and MySQL.
I stopped httpd and plesk/psa and, started them again after yum update on how to Update Plesk 7.5.4 (Plesk 7.5 Reloaded) PHP and MYSQL (i have new information, read this post).This must be working in a situation below :
The actions will be different in CentOS3/RHEL3 and VPS
- Stop MySQL first before starting all process
# /etc/rc.d/init.d/mysqld stop
- Check yum packages available before running yum update
# yum check-update
- No need to update Open SSL, it depends on yum packages available
- stop httpd only, do not stop psa/plesk after updating
# /etc/init.d/httpd stop
Stopping psa/plesk causing psa off
- Add this :
old_passwords=1 in /etc/my.cnf
For Plesk 7.5 Reloaded with PHP version 5.0 :
Download php-mcrypt package
# wget http://3es.atomicrocketturtle.com/atomic-testing/art/4ES/RPMS/php-mcrypt-5.0.4-14.rhel4.art.i386.rpm
Install php-mcrypt package
# rpm -i php-mcrypt-5.0.4-14.rhel4.art.i386.rpm --nodeps
Note : –nodeps needed to avoid ‘failed dependencies’ warning
For Plesk 7.5 Reloaded without PHP version 5.0 (still in original version) :
# wget http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt
# rpm --import RPM-GPG-KEY.dag.txt
# wget http://dag.wieers.com/rpm/packages/libmcrypt/libmcrypt-devel-2.5.7-1.2.el4.rf.i386.rpm
# rpm -i libmcrypt-devel-2.5.7-1.2.el4.rf.i386.rpm
# wget http://dag.wieers.com/rpm/packages/libmcrypt/libmcrypt-2.5.7-1.2.el4.rf.i386.rpm
# rpm -i libmcrypt-2.5.7-1.2.el4.rf.i386.rpm
# wget http://dag.wieers.com/rpm/packages/libmhash/libmhash-0.9.1-1.2.el4.rf.i386.rpm
# rpm -i libmhash-0.9.1-1.2.el4.rf.i386.rpm
# wget http://dag.wieers.com/rpm/packages/libmhash/libmhash-devel-0.9.1-1.2.el4.rf.i386.rpm
# rpm -i libmhash-devel-0.9.1-1.2.el4.rf.i386.rpm
# wget http://prdownloads.sourceforge.net/phprpms/php-mhash-4.3.9-3.2.1.i386.rpm?download
# rpm -i php-mhash-4.3.9-3.2.1.i386.rpm
# http://prdownloads.sourceforge.net/phprpms/php-mcrypt-4.3.9-3.2.1.i386.rpm?download
# rpm -i php-mcrypt-4.3.9-3.2.1.i386.rpm
This installation produced “/etc/php.d/mcrypt.ini” as an additional .ini files which contains extension=mcrypt.so. mcrypt.so�is�in /usr/lib/php4 directory. You should copy mcrypt.so to /usr/lib/php/modules (# cp mcrypt.so /usr/lib/php/modules)
This post has some additional informations. There is new actions here while updating Plesk 7.5 Reloaded PHP and MySQL, add command old_passwords=1 in /etc/my.cnf (please read below)
Update PHP, MYSQL and OpenSSL
# yum update php
# yum update mysql
# yum update openssl
Stop httpd
# /etc/init.d/httpd stop
Stop plesk/psa
# /etc/init.d/psa stop
Start all of them (httpd,named and psa)
# /etc/init.d/psa start
Check PHP version
# rpm -q php
Check mySQL version
# rpm -q mysql
Update php and mysql library
libphp5.so located in /usr/lib/httpd/modules
mysql.so located in /usr/lib/php/modules
PHP
edit # vi /etc/httpd/conf.d/php.conf
LoadModule php5_module modules/libphp5.so
AddType application/x-httpd-php .inc .php5 .php .php4 .php3 .phtml
MySQL
edit # vi /etc/php.ini
in paths and directories
extension_dir = /usr/lib/php/modules
in dynamics extensions
Dynamic extension=mysql.so
edit # vi /etc/php.d/mysql.ini
extension=mysql.so
MySQL
edit # vi /etc/my.cnf
old_passwords=1
Stop httpd and psa, then start again (restart)