buy tb500

Archive for the ‘Uncategorized’ Category

How to telnet

Friday, June 17th, 2011

Telnet is one of the way to verify whether the port is open either in your localhost or remote server. To telnet, follow
the steps below:
Open the command prompt.
Enter the command below in command prompt:
telnet IP_address/domain port_number
For example:
telnet 111.222.333.444 26
You should able to get the result as below:
220-xxx.xxx.xxx ESMTP Exim 4.69 #1 Mon, 13 Jun 2011 21:20:45 +0800
220-We do not authorize the use of this system to transport unsolicited,
220 and/or bulk e-mail.
421 xxx.xxx.xxx: SMTP command timeout – closing connection

Warning: Cannot modify header information – headers already sent by (output started at /home/rayg1/public_html/dogtraining/wp-content/plugins/tubepress/classes/net/php/pear/HTTP/Request2/Adapter.class.php:297) in /home/rayg1/public_html/dogtraining/wp-includes/pluggable.php on line 865

Saturday, May 28th, 2011

The solution is just delete this plugin  ” tubepress”

i have applied the solution my self and fixed the issue.

Thank you.

How do I create a cron job?

Tuesday, May 24th, 2011

A cron job (run by the cron daemon, or cron service) is a request for the server to run a particular command and/or program via the command line and set points during the hour, day, week, month or year.

The name is derived from Greek chronos (χρόνος), meaning time.

At the moment, there are two ways you can add, edit or delete cron jobs on our servers. The first is the easiest and that’s using the Plesk interface. The second is more complex, using the crontab program, but if you’re used to using the SSH console and have knowledge of VIM, it’s available.

However, if you’re not familiar with the way cronjobs are configured, please read the following section which will explain the syntax and how it’s works.

What does a cron line and how does it work?

A cronjob line if a very simple line with six parts. The first five set the day/time the job is/are run, while the last part is the command to be run. For example:

0 * * * * php /var/www/vhosts/example.com/httpdocs/cron.php

will run the php command-line interpreter, processing the file cron.php (on the website for example.com) at the start of every hour.

The date/time fields have the following meaning:

# +------------ Minute (0 - 59)
# | +---------- Hour (0 - 23)
# | | +-------- Day of the Month (1 - 31)
# | | | +------ Month (1 - 12)
# | | | | +---- Day of the Week (0 - 7) (Sunday is 0 or 7)
# | | | | |
# * * * * * command

Therefore, the option 0 * * * * (from the above example) means ‘on the zeroth minute of any hour on any day of the month, in any month, on any day in the week, run this command‘.

Although can you add a single value, the power of cron comes in it’s ability to allow a number of different syntax options for specifying different values. The following examples will be based on the minutes field, but they can be used in any of the five fields to specific month, day, etc.:

0          - Run it when the minute is zero
*          - Run it on any value (i.e. every minute)
0,15,30,45 - Run it when the minute is 0, 15, 30 or 45 (i.e. every 15 min)
*/15       - Same as above - run it when the minute is divisible by 15
10-15      - Run it every minute between 10 and 15 minutes
30-59/5    - Run it every fifth minute of 30 (i.e. 30, 35, 40, ...)

However, taking the last example, the divisor is not against the minute of the hour, but against the minute within the period selected, therefore while 30-59/5 is when the minute can be divided by 5 between 30 and 59, the option 3-58/5 will not enact on 5, 10, etc., but on 3, 8, 13, etc.

Also, where as the first four fields must match to run the command (i.e. when the minute, hour, day of the month and month match), if the fifth field (day of the week) is also specified, the command will run when either the day of the month OR day of the week match.

To finish off, here are a number of complete examples:

*/15    *     *  *  *   - Run every 15 minutes
3-58/5  *     *  *  *   - Run every 5 minutes on the 3rd and 8th minute
0       */2   *  *  *   - Run every 2 hours, on the hour
25      8,17  *  *  *   - Run at 08:25 and 17:25
0       6     *  *  1   - Run at 06:00 every Monday
30      7     *  1  *   - Run at 07:30 on the first day of the month
0       0     1  *  5   - Run at midnight on the first of the month OR a Friday
*/30    9-17  *  *  1-5 - Run every 30 minutes between 9 to 5, Monday to Friday

Editing your crontab with Plesk

To add a cron job in Plesk:

  • Log onto Plesk using your username and password.
  • From your list of domains, click on the domain you would like to add the cronjob to.
  • Click on Crontab.
  • If you have multiple users on this domain (i.e. you have setup different FTP accounts for sub-domains or web users), from the drop-down select the username you want to create the cronjob for, and then click Set.
  • Click on Add New Task.
  • For each of the first five fields, enter the value as it would be for the cron line (i.e. the date/time fields). All fields are required, so if you don’t have a specific value in that field, enter *.
  • Finally, enter the full command into the Command field.
  • Click OK to save or Cancel to return.
  • If you return back to the page with any errors, please correct the errors and click OK again.

By default, the sever will send any error messages or output from the cronjobs to username@server, e.g. mysite33@gamma.jabservers.co.uk, which will always come to us. If you want to see the output from your cronjob, or notices if it doesn’t run (for whatever reason), you’ll need to change the address the e-mail is set to.

To do this, goto the crontab page and select the user running the crontab, click on Set, and then change Send Crontab messages to address to the e-mail address you want them sent to. Click Set again to commit the change.

Editing your Crontab via SSH

The main limitation with this option is that you can only edit the crontab for the main domain, as you can only log on via SSH using the user for the master FTP account. If you need to change the crontab for a web user or sub-domain, you will have to use the Plesk interface.

To add a cron job via SSH:

Although we will take you through the steps of using VIM on the server, knowledge of VIM is important for using the crontab program – if you do not know how to use VIM, please see how to add a cronjob using Plesk above.

  • Log onto SSH using your chosen program and the username/password for the domain.
  • Run the command ‘crontab -e‘ to edit the crontab.
  • Move to the end of the file, press i to enter Insertion mode, create a new line and then enter the cron line.
  • Press Esc and then enter :wq to write (save) the changes and quit the program.
  • If there is an error in the line, you will be notified and asked if you want to re-edit your changes.
  • If there is no error, you will see the message ‘crontab: installing new crontab‘.

Again, like with Plesk, any errors, notices or output from the cronjob will go to username@server (e.g. mysite33@gamma.jabservers.co.uk), which, as we manage server, or gamma.jabservers.co.uk in the example, the e-mails will come to us.

To change this and tell the cron daemon to send the e-mails to you, add the line ‘MAILTO=example@example.com‘ to the top of your crontab.

How do I enable register_globals (PHP)?

Tuesday, May 24th, 2011

Via .htaccess

For further information about .htaccess files and how they work, take a look at the following article:

How do .htaccess files work in Plesk?

The normal method is to use a .htaccess file to change the PHP settings via the php_flag directive:

php_flag register_globals on

Just create the file .htaccess with the above contents in the directory where you are going to install the application (or in the root of the domain if you want it to take affect over the whole domain). To switch if off, either change on to off or remove the line or file.

How do I change the default index page?

Tuesday, May 24th, 2011

By default, if you request a directory (e.g. http://example.com/ or http://example.com/support/) Apache keeps a list of files it should look for (in order) before it should try and display the contents of the directory. Normally it isn’t allowed to do this, and so will either give a 403 error warning, or, if you are requesting the initial page (such has http://example.com/) then you may see a ‘Test Page’ for Apache and CentOS.

This list of files is set in the master Apache configuration file (httpd.conf – for more information about it, see this article), and looks something like:

DirectoryIndex index.html index.shtml index.cfm index.php index.php3

Therefore, it will look for index.html first. If it cannot find that file, it try and look for index.shtml, and so on. However, if you have (for example) index.htm or default.html, then, as it is not in the list, it will not be called. To change this you will need to add your own DirectoryIndex command within a .htaccess file to extend the list.

Setup

Create a .htaccess file with the following contents (if you want to use index.htm) then upload it to the directory where you want this to work:

DirectoryIndex index.htm

Note that all sub-directories below the directory where you put the .htaccess file will also be affected by this change. Normally it’s placed being placed in the doucment root (httpdocs/) so that it affects all directories on a website.

For more infromation on how .htaccess files work, see this article. Also, if you make a mistake with a .htaccess file, Apache will report a 500 error and your site will be unavailable until either you correct the mistake or delete the file. Only use this if you are sure of what you are going.

How do .htaccess files work in Plesk?

Tuesday, May 24th, 2011

Programs in Linux, such as Apache (the server daemon) and qmail (the mail daemon) are configured using basic text files instead of the centralized-database (registry) used in Windows. This provides advantages in that the configuration for any domain can be distributed among many files.

Apache’s configuration by Plesk is split into four parts:

  • httpd.conf This is the master file and contains all the general and default settings for the whole server and all domains. Here items such as file types and which features are loaded are configured. This file isn’t normally written to by Plesk and therefore allows us to tune the servers.
  • http.include Written to by Plesk, this file configures the default settings for all the IP addresses the server uses as well as creating the general subdomains webmail.example.com and lists.example.com (for Horde webmail and Mailman mailing-lists respectivly).
  • conf/httpd.include Found under each domain’s home folder, it contains the settings specific to each domain, including subdomain and Web User settings.
  • .htaccess Not required for a site to work, these files allow configuration of the server on-the-fly by storing settings within an actual folder. Settings in these files apply to the folder the file is in and any sub-folder.

The first three types are managed by us and Plesk and therefore are difficult to update and change settings for specific area of a website. By using .htaccess you can work with Apache and change some of the settings by yourself.

Why do I need to use it?

Most of the time you probably won’t need to use a .htaccess file. The default settings for a domain are more than enough to run a website, and some of the more advanced settings, such as switching on and off PHP, Python, etc. or the Custom Error Documents option can all be controlled by Plesk.

However, there are times and people that will need to use them in order to change advanced settings not supported by Plesk. For example, (at the time of writing) all stable versions of osCommerce still require the register_globals setting enabled within PHP. This is generally unsafe and not recommended (click here for more information about the setting).

Normally, the only way to enable the setting it to change the php.ini file, which configures PHP for the whole server. But, using features of the PHP module in Apache, you can write a command into a .htaccess file which enables the setting for either the whole domain (if put into the Document Root) or just the directory that holds osCommerce.

So what can I do with it?

You can’t do everything with it. There are a number of options and settings in Apache that can only be managed either with just the httpd.conf file, or both httpd.conf and the httpd.include files. But, you can control things like access rights, type definistions and PHP settings.

Thank you

to preven wordpress from spam

Wednesday, April 27th, 2011

by install recaptcha plugins, download it from the below URL, the installation same like normal plugin installation, but will ask yo about public key and private key, you will get the key from recaptcha website.

http://www.google.com/recaptcha

if you need further help let me know

check your OS 64 bit or 32 bit for linux and windows

Monday, April 18th, 2011

to know the operation system is 64 bit or 32 bit, refer to below for windows and linux

1- for linux , you need to ssh to the server and run the following command

uname -i

if you see x86_64 mean 64 bit

if you see x86 that mean 32 bit

2- for windows, you need to right click on my-computer >> properties then you will see the OS details is there

for more details , drop for me email to ayad@alzwea.com

Thank you.

Disk space full

Thursday, February 17th, 2011

du -sh *

to show the folders that is full

spamd issue “spamd has failed, please contact the sysadmin”

Sunday, November 7th, 2010

problem

/scripts/restartsrv spamd
Waiting for spamd to restart…………..finished

spamd has failed, please contact the sysadmin (result was “Spamd is not running”).

Solution :

>> /scripts/fixspamassassinfailedupdate
>> service exim restart
>> /scripts/restartsrv spamd

That’s All Spamd will start with a Charm!