How to test CGI is working with a ‘Hello World’ script

How to get CGI working on Plesk 11

Running CGi and Perl scripts is not as straightforward as PHP, so in order to get your CGI working, ensure to confirm the following steps. Once the file in in the correct location, and the file system permissions are correct you will be good to go.

1) Ensure Perl-CGI is installed on the server. If you host with us, this is already done for you.

# yum install perl-CGI

2) Ensure Perl/CGI is enabled for your domain name in your Plesk panel. Find the domain name in the Plesk panel and look at the ‘Website Sripting and Security’ section.

3) Create a file named ‘hello.cgi’ with the following contents:

#!/usr/bin/perl
print("Content-type: text/plain\n");
print("\n");
print("Hello World!\n");

4) Ensure your file is uploaded to /cgi-bin and not /httpdocs/cgi-bin

5) Ensure your file permissions on the file are 755, you can set this in your FTP application or File Manager

6) You can now execute the file as such: http://www.mydomain.co.uk/cgi-bin/hello.cgi

Hello World!

How to add another domain to your Plesk 11 hosting account

Adding another domain to your Plesk 11 Hosting Account

You can host multiple web sites with your Plesk 11 account. The limit is set to your hosting plan, current we support hosting up to 50 sites per account.

To host another domain name in your Plesk 11 hosting account please do the following:

1) Login to your Client Management Portal
2) Select Services > My Services then View Details of your Hosting Account
3) Click “Login to Plesk Control Panel”
4) Click “Add Domain”
5) Enter your new domain name to host eg. iveriaternaartwork.co.uk
6) Keep the “Use our DNS Settings” and “Hosting Type” as the defaults suggest
7) A default document root will be provided eg /site1
8) You can now FTP your new website using your FTP username and password with document root set to /site1
9) Ensure your new domain name is set to the same name servers as your primary domain name to connect the domain to your hosting server.

If you have any problems do not hesitate to contact us.

Use httpdmng to reconfigure a single domain

sshHow to use Plesk httpdmng to rebuild a single domain

Rebuilding all site configurations can take a considerable amount of time, especially if you have many domains hosted on your Parallels server – so it’s best to avoid this where possible.

If you have made a change to only a single domain configuration (in vhosts.conf for instance) you will need to rebuild the configuration but for speed and performance there is no need to rebuild the configuration for all domains.

At the command line issue the following:

# /usr/local/psa/admin/sbin/httpdmng --reconfigure-domain domain.com

Within 15 to 30 seconds your domain configuration will be updated.

How to get removed from Google Blacklist

Re: Site Blacklisted in Google because of Malware

Ok, so you have cleaned up the malware on your website but find that your site is still blacklisted by Google and you are too impatient to wait for Google to automatically re-scan your website. Then it’s time for you to request a review directly to Google.

This is required if you want to quickly remove your site from Google’s blacklist. Once you submit the request, it’ll take just a few hours to complete the review and remove the warning if your site is clean. Without the request, it may take

The request does two important things:several days before your site’s status is cleared.

1) It tells Google that the owner of the site is aware of the problem and has already taken action to remove malicious content. This shifts the odds in your favour when they make decisions after ambiguous results of scans.

2) It puts the site on a priority list (it should be scanned within 24 hours)

Don’t be afraid to request the review even if you are not sure that your site is completely clean. If any security issues are detected during the review, they will be reported in your Webmaster Tools account. Then you can fix them and request another review.

Blacklisted sites are not removed from search results (they are just labeled as potentially harmful), so you only need to remove the warning.

You can request a review of your site using Google Webmaster Tools:

http://www.google.com/webmasters/tools/

More information about the review process is available in Google’s Webmaster Help Center.

http://www.google.com/support/webmasters/bin/answer.py?answer=45432

Why do I get a blank page or 500 Internal Server error?

Re: Blank page or 500 Internal Server error

The problems are caused by your code failing. A blank page is usually a PHP error so checking your PHP error_log within your Plesk panel will provide causes as to what the problem is. Usually the best course of action is to re-upload your website or restore from a recent backup.

A 500 internal server error is usually related to a scripting issue using CGI or Perl scripts. Again, this means the script is unable to execute and this generic error which does not give much away means you need to check your scripts or simply upload / restore to your last working copy.

Both of these errors means a quick call to your web designer or just restore from your latest backup in the Backup manager (You do take backups right?!)