Plesk domain date.timezone error

Warning: phpinfo(): It is not safe to rely on the system’s timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone ‘UTC’ for now, but … Read more

SPF Records

Sender Policy Framework (SPF) is a method of fighting spam. As more time passes, this protocol will be used as one of the standard methods of fighting spam on the Internet. An SPF record is a TXT record that is part of a domain’s DNS zone file. The TXT record specifies a list of authorized … Read more

Known configure errors with php

1. Configure: error: Please reinstall the BZip2 distribution # yum install bzip2-devel 2. Configure: error: DBA: Could not find necessary header file(s). # yum install gdbm-devel # yum install db4-devel 3. Configure: error: libjpeg.(a|so) not found. # yum install libjpeg-devel 4. Configure: error: libpng.(a|so) not found. # yum install libpng-devel 5. Configure: error: freetype.h not … Read more

Deleting and Re-creating email for a domain in plesk

Let’s say that you need to delete a plesk domain with email and recreate it. 1. Recording the email addresses and passwords (over ssh you can use the command /usr/local/psa/admin/bin/mail_auth_view to show addresses and passwords) 2. Making a copy or renaming of the folder /var/qmail/mailnames/domain.com to something like /var/qmail/mailnames/domain.com.BAK 3. Deletion of the Alias and … Read more

Adding Additional IP Addresses CentOS

ssh to the server If the main adapter is called “eth0” you have to call the next (virtual) adapter in a sequential order like so: ifcfg-eth0 (primary adapter, physical) ifcfg-eth0:1 (first virtual adapter to the physical primary adapter) ifcfg-eth0:2 (second virtual adapter to the physical primary adapter) Copy our primary adapter configuration file and name … Read more

AB Tool for Benchmark

http://httpd.apache.org/docs/2.2/programs/ab.html http://www.cyberciti.biz/tips/howto-performance-benchmarks-a-web-server.html -n 10000: ab will send 1000 number of requests to server 202.54.200.1 in order to perform for the benchmarking session -c 50 : 50 is concurrency number i.e. ab will send 50 number of multiple requests to perform at a time to server 202.54.200.1 Login to Linux/bsd desktop computer and type following command: … Read more