How to Test Session Management
<%
'Start the session and store information
Session("TimeVisited") = Time()
Response.Write("You visited this site at: " & Session("TimeVisited"))
%>
Billing Shared CP Support Center |
Billing Reseller CP Support Center |
Billing Shared and Reseller CP Support Center |
Plesk Linux, Windows, Domains |
Virtuozzo VPS Support Center |
Hyper-V VPS Support Center |
Hyper-V VPS Support Center |
![]() |
Customers |
![]() |
Resellers |
<%
'Start the session and store information
Session("TimeVisited") = Time()
Response.Write("You visited this site at: " & Session("TimeVisited"))
%>
How to create a subdomain
>>Log into your H-Sphere control panel.
>>Go to Domain Settings and click Domain Info.
>>To add a new subdomain, click on the SubDomains icon.
>>Enter the new subdomain name and click on "Create subdomain button". After that, the new subdomain will be created.
To delete subdomains:
>>Click on the trash icon next to a subdomain to delete it.
1. Login to your H-Sphere control panel.
2. Select Quick Access in the Account menu.
3. Click on the Notepad icon next to Avg in the Statistics section on the left hand side.
4. Enter how much disk space you would like to have.
By default MailEnable listens on port 25. But we can configure it to listen on other ports too.
Follow the steps below to enable an alternate SMTP port in MailEnable.
Sometimes we need to restart the web service after any modifications or after an issue has been fixed. Below are the steps to restart the web service from the server end.
Restarting the web service through the Control Panel
Login your control panel.
Select the domain.
Click the off/on button in front of the Web service as needed.
Restarting the Web Service in the Linux server
Execute the following command on your server or VPS:
# /etc/rc.d/init.d/httpd stop (For stopping the web service)
# /etc/rc.d/init.d/httpd start (For starting the web service)
Sometimes, there is a situation where unusual traffic comes from a particular IP address or domain and this could make your domain's outgoing traffic usage high due to the huge number of requests or this could create DDOS (Distributed-Denial-of-Service) attacks on your site. At that time, if you would like to stop accessing your site from that IP address or domain than that you can do using the 'Web Access Control' feature in the H-Sphere control panel.
This is a very useful and effective option to stop such bad requests. Below are the steps to use it :-
1) Make sure the 'Web Access Control' option is enabled in the plan as only then you'll be able to see it on the Web Services page of the domain.
2) Please login your hosting control panel and go to 'Web Option' under 'Domain Setting' and click on your Domain name and see the 'Web Access Control' option at the bottom of the page.
3) Click on the UP Arrow button to enable and select Deny or Allow which actually means deny access from all or allow access from all.
4) "Allow' should be checked so that everyone can access your site except particular IPs, and then submit this information. You can select "Deny" if you want to give access to your site to limited IP's.
5) After this you'll be back on the same web service page and then click to edit the 'Web Access Control' option and then put in the domain/IP address and click on the "add" button to block.
That's it !! Once these steps are done you'll see bad requests are lesser as your site won't be accessible from their end.
Issue with DNN 7 installation :-
Note : I have seen that many users are facing problems with the installation of DotNetNuke Community Edition version 7 (DNN 7). I would like to suggest that first you should install DNN 6.2 on your domain. After successfully installing it, upgrade to DNN 7. It always works for me.
1. Log into the Plesk control panel.
2. Navigate to Domains in the left hand navigation menu and click Control Panel next to the domain.
3. This will open the control panel for that domain. Under this new tab/window, click Websites & Domains.
4. Click Show Advanced Operations> Password-Protected Directories.
5. Next, click Add Protected Directory. Enter in the directory name, location and title of the protected directory and click OK.
6. Once the directory has been added, click the directory. This will allow you to setup a username and associated password to access the directory.
7. Click Add New User and enter in the username and secure password. Confirm the password, and click OK. The directory is now secured.
If your mail client is not connecting to the mail server then please run the command below at the command prompt on this computer:
ipconfig /flushdns
After this, reopen the email client and try again.
If the problem persists, please ask to get the output of the commands below on your support ticket. The support team will investigate the issue and update you back as soon as possible:
ping mail.<domain>.com
telnet mail.<domain>.com 25
telnet mail.<domain>.com 110
telnet mail.<domain>.com 143
telnet mail.<domain>.com 587
tracert mail.<domain>.com
We've seen that many users get this relaying error when they access their email via Outlook. This is a common issue and below are the things that you should check for this.
Step 1: Make sure you're using proper authentication details in Outlook for the email id.
Step 2: Sometimes port 25 is blocked by ISPs to stop spam issues. So, if you're using port 25 then try to use port 587.
Step 3: Many times, rebooting the router, modem or system solves this issue too. So you must try that.
Step 4: However, if you are still facing issues, then it may be possible that the SMTP service has been blocked from the server side due to spamming issues. In that case, check the registered email ID of your account to see if you got email from our abuse department and then reply back to us.
Step 5: If what's in step 4 is the case, then to make your SMTP service resume you have to first change the password of your email account(s) and then scan your network/system with a good antivirus and provide us that scan report for reviewing.
1) Delete all Server Aliases.
2) Delete the DNS and custom DNS records.
3) Setup the new DNS zone and server aliases.
To delete the server aliases, please follow these steps:
1) Login into your reseller control panel.
2) Go to the admin control panel.
3) Select Emanager > Server aliases.
4) On the page that appears next, you can see the server aliases. Next to them, you can see the "Delete" icon. Click on it.
To delete the DNS and custom DNS records, please follow these steps:
1) Login your reseller control panel.
2) Go to the Admin control panel.
3) Select Emanager > DNS manager.
4) On the next page that appears, you can see the DNS zone. Next to it, you can see the "Delete" icon. Click on it.
Now you can setup your new DNS zone and server aliases.
Now change the reseller CP URL.
Note:- This will cause downtime for all your end user accounts.
1. Login into your H-Sphere control panel.
2. Select the FTP user link in the FTP/User Account menu.
3. On the page that appears, you will be able to see the Quota option.
4. Next to it, you will be able to see a "Change Quota" icon. Click on it.
5. Enter the new FTP quota and submit.
Some commands which can help to retrieve a mailbox's password in Plesk:
1) To find the password for a single email account
[email protected][#] /usr/local/psa/bin/mail --info [email protected]
2) To find all email account passwords for a single domain
[email protected][#] /usr/local/psa/admin/bin/mail_auth_view | grep domain.com
3) To list passwords for all email accounts in Plesk.
[email protected][#] /usr/local/psa/admin/bin/mail_auth_view
1) First take backups of the databases which are in your account.
2) Remove the databases one by one and then disable the MSSQL resource and then again "enable" it. This way you'll get the new database server i.e. MSSQL 2008.
3) Create the databases again with the same database name, username and password in the account and then restore the databases from backup. This way the database name, username and password remain the same but the database server address will change.
Please follow these steps to make your payment through PayPal:-
1. Login to your hosting account.
2. Select Billing > Billing Profile.
3. Select PayPal from the dropdown menu.
4. Click on Edit and then the Add button.
5. Scroll down the page and enter the amount in the "0.00" format and press the submit query button.
It will take you to the PayPal site from where you can make the payment. Make sure you do not select eCheck while paying as eCheck payments take more than 7 days to clear.
Sometimes, when you check AWStats for your domain you see the 500 Internal Server error using the url http://domain/cgi-bin/awstats.pl and there are several possible ways to check and fix this error.
1. We need to check the permissions of the cgi-bin directory and the files inside that directory under the domain name. They must be set to 755.
2. If that doesn't solve your problem, we need to check the memory/process limit options in the plan of that specific account. If they are enabled, we need to disable them and save the plan.
3. After that save the site configuration in the H-Sphere control panel on the web services page of the domain and recheck AWStats - it should work fine after this.
After the H-sphere control panel upgradation, the method for adding a domain as an alias is changed. Now one needs to include a "Hosting domain alias" option in their plan. This feature is called hosting a domain alias and must be enabled in the corresponding plan.
For Adding Domain Aliases, please follow the steps mentioned below:
1) Login into the H-Sphere control panel where the domain is hosted.
2) Select Domain Setting >> Add New Domain
3) Enter the name for your alias in "Host Existing Site" and click on Submit.
4) On the page that appears next, you will get options to choose from :-
- Web options: "Alias to existing hosting domain"
- Mail options: "Mail domain alias to" (optional - select this if you want email addresses aliased too)
6) Select the domain to alias from the dropdown next to each.
7) Click Submit.
The Sender Policy Framework (SPF) is an email verification DNS tool that prevents email spam. It validates senders' IP addresses to counteract email forging. Mail administrators can create text file SPF records to restrict the servers allowed to send email from a particular domain. Mail servers and other internet ISPs use the DNS to verify that mail from a given domain is being actually sent by a host designated by that domain's admins/host.
Actually the basic working of the SMTP service from the mail server is to allow any computer to send email claiming to be from a specific source address. This loophole is often exploited by spammers who often use valid email addresses, making it more complicated to trace a message back to its real sender and very simple for spammers to hide their real identity. This loophole is also used in phishing/spamming, where users can be forced into disclosing their private information in reply to a forged email purportedly sent by an organization such as a bank.
1- Download the WordPress package from their website and put it under your domain root and extract it.
1- Open the index.php in your browser and follow the instructions. Example http://YourDomainName.com/wordpressadmin/wp-admin/install.php
2- Click on ''Create a configuration file".
3- This step validates the system's information and then click the "Let's Go" button.
4- You need to fill in the database details in the fields below and then click next.
4(a)-Database name
4(b)-Database user name and associated password
4(c)- Host name or database server IP
4(d)-Table prefix.
5-Click on "Run install".
6- Fill up fields like blog title and email id and then click "Install WordPress".
7-Note the user name and password that are showing on the page and click log in.
8-Input the login details and enter in the admin section.
9-The installation is finished.
The following are the steps to submit a DNS record for instant domain aliases :-
1. Login to the Administrative/Reseller H-Sphere control panel.
2. Go to E.Manager --> DNS Manager.
3. On the next page that appears, click to view under the "Action" menu.
4. After that, on the next page that appears, again click to view under the "Action" menu in the section "Instant aliases for DNS zone Example.com".
5. At the bottom of the page, you will see unsubmitted records for new servers.
6. Click to submit all records.
*Note:- Every reseller needs to submit the DNS record for instant domain aliases only once for a newly added server in the H-Sphere cluster.
Taking a Backup or Export of your MySQL database using phpMyAdmin :-
--------------------------------------------------------------------------------------------------
Step 1: Login into phpMyAdmin. (Either via the control panel or by using http://databasehostname/phpMyAdmin/index.php)
Step 2: Click on your database name in the left pane options.
Step 3: Click on the tab labeled EXPORT at the top.
Step 4: Select the Export Method as Quick or Custom and select the format as SQL, CSV etc.
Step 5: Hit GO
Step 6: After this, it'll show the .sql file (if SQL was selected in the previous step) and copy that file and save it at your end using notepad with the .sql extension.
Restore or Import your .sql file using phpMyAdmin :-
-----------------------------------------------------------------------
Step 1: Login into phpMyAdmin. (Either via the control panel or by using http://databasehostname/phpMyAdmin/index.php)
Step 2: Click on your database name in the left pane options.
Step 3: Click on the tab labeled IMPORT at the top.
Step 4: Select the file using the Browse option from your local computer (the file limit is 2 MB maximum but compressed files are supported as well with gzip, bzip2, zip).
Step 5: Hit GO and it'll import the .sql file into your database.
If the client has forgotten his WordPress login password and he is also not able to use the "Lost Password' option, then we can reset the WordPress password by phpMyAdmin-
1- Login into phpMyAdmin.
2 - Select the database in use.
3 - Click and open wp_users.
4 - You will see the login and password option there, so click the edit option.
5 - Then you can set the password for the WP login.
Below are the steps to restore a PgSQL database :-
1. Login to the H-Sphere control panel.
2. Go to databases --> PGSQL databases.
3. Click the name link of a database and open the phpPgAdmin interface.
4. Login to the phpPgAdmin tool.
5. Once in the phpPgAdmin interface, select the name of the database which you wish to restore from its backup to open its management panel and then press the SQL tab from the main menu and browse to the backup/dump file using the 'Browse' button option. As soon as you locate your dump file, click the 'Open' button.
6. After the dump file has been selected, you should click on 'Execute' to start importing the dump file to your database. Then click on the 'Tables' option to check whether the database is now displayed by phpPgAdmin.
Run the command below with the correct username and domain name.
/hsphere/shared/bin/sudo -u USERNAME /bin/sh -c "/hsphere/shared/bin/webalizer -p -Q -N 20 -D /var/log/dns_cache.db -r DOMAIN.COM -n DOMAIN.COM -o /hsphere/local/home/USERNAME/DOMAIN.COM/webalizer/ /hsphere/local/home/USERNAME/logs/DOMAIN.COM/DOMAIN.COM.LOGFILE.XXXXXXX"
If you want to make default name servers for all domains, then you'll have to setup the name servers with the DNS Template Settings using the steps below:-
Step 1: Login into your Plesk control panel.
Step 2: Go to 'Tools & Settings' > DNS Template Settings under General Settings.
Step 3: Click on Add DNS Record > and Create NS for .<domain> as ns1.default-domain and click Submit.
Step 4: After this, any domain which you'll add in the control panel will have the default name server as submitted above.
Step 5: If you want to set these as default name servers for the domains which were added before, then go to DNS Settings for the domain and click the Restore Default option and this will make all domains have the same default name server.
The ticket will be successfully submitted to our tech support department and you will get a ticket confirmation number. If later you contact us by Live Chat or by phone, please keep this number handy.
OR
You can also write an email directly to us at [email protected] with all the details from your registered email id to open a ticket.
You will probably receive a response shortly. Our support staff continuously looks for new tickets and answers them on a 24x7x365 basis.
If you want to update the name servers, then please follow the steps below:-
1. Login the domain control panel from http://store.domainsgofast.com/customer
2. Search this order in the control panel- likemyfiles.com and then click on the domain name.
3. On the page that appears you will be able to see the Name Servers section. Click on the same.
4. Fill in the name servers which you want to use for the domain, and click on Submit.
If you want to register a child name server, then please follow the steps below:-
1. Login the domain control panel from http://store.domainsgofast.com/customer
2. Search this order in the control panel- likemyfiles.com and click on the domain name.
3. On the page that appears, you will be able to see the Child Name Server section. Click on the same.
4. Fill the prefix like- ns1, in the hostname section and the IP in the second section and click on Submit.
There are certain cases where you may not be able to delete a file or folder, for example when the file name is invalid like when it ends with a dot "." and another example is when the user cannot open the file/folder using the normal methods in Windows Explorer.
The single line command below can solve this.
rd /s "\\?\C:\userdirectorty\unwanted\many\wiredFolder."
Please change the directory path as per your needs, for example :
rd /s "\\?\C:\homedirectory\Username\domainname\unfolder."
rd : RemoveDirectory
/s : switch to delete from sub-folders
Solution :-
1) First check whether the domain has the correct name servers set at the domain registrar end.
For this you can use the WHOIS tool available on multiple sites and do a match
with name servers showing the H-Sphere control panel for the domain.
2) Ask the client to run the command below at the MSDOS prompt if he is using the Windows OS:-
ipconfig /flushdns
3) If it still doesn't work for him, please ask him to wait for 24-48 hours or until the DNS cache expires at his end.
Please follow the steps below to add funds or give credit:-
1.Login into your reseller account.
2.Login into the admin section.
3.Go to the "Search" menu > Select the "Generic" option
4.Do a blank search by clicking on the "Submit" button.
5.On the next page you will be able see all your end-user accounts.
6. In front of the end user's name, in the "Billing section" there are three green icons.
7.Click on the first green icon "Click to credit".
8. On the page that appears, fill in the negative amount and submit
After completing all the steps above, the negative balance will be 0.00.
There are times when a user needs a different collation and character set for the MySQL database instead of the default one and to do so as below is the way. First login onto the server and go to the MySQL prompt and submit:-
mysql -u root -p
use database_name
1) How to check the collation and charset on a database ?
SHOW VARIABLES LIKE 'character_set_database';
SHOW VARIABLES LIKE 'collation_database';
2) How to change the collation and charset on a database?
ALTER DATABASE database_name CHARACTER SET utf8 COLLATE utf8_general_ci;
flush privileges;
That's it !! Again check the collation and character set of a database and it should be changed after this.
There are times when you need to move WordPress around within your server, and times when you need to move WordPress from one server to another. Sometimes a user wants to move their WordPress site in situations as these below :-
i) From a sub-directory to the root of the domain
ii) From one host to another host
iii) From one folder to another folder on the same host
While moving the site, there may be issues from URL paths but you don't need to reinsstall everything. You can follow the link below to move the WP site easily -
http://codex.wordpress.org/Moving_WordPress
WordPress is flexible enough to handle all of these situations and there is a proper way to move the site.
Run the command below on command prompt to check the PID and to kill the process on the Windows 2008 server.
C:\Windows\system32>%windir%/system32/inetsrv/appcmd list wp
Command to kill the process-> taskkill /F /IM php-cgi.exe (process name)
To stop mail from going to your Hotmail junk folder, it is necessary to sign up with Microsoft's sender ID program. It is also necessary to make sure that your email servers (at JodoHost) comply with Microsoft's guidelines, found here: http://postmaster.live.com/Guidelines.aspx. The sender ID program signup can be found here:
https://support.msn.com/eform.aspx?productKey=senderid&page=support_senderid_options_form_byemail&ct=eformts&wa=wsignin1.0&st=1&wfxredirect=1
Many times we've seen that when we browse websites on the Linux server, a white page shows up that mostly means that more PHP memory is required, as allowed on the server, but we still first need to check this with the server-side PHP logs.
If this problem is confirmed with the logs then the reason is this: on the Linux shared server we've allowed a maximum of 40 MB of memory on the server. But we can gain some more memory with the .htaccess file.
We need to use the directive below to increase the PHP memory in the .htaccess file under the domain folder :-
php_value memory_limit 56M
That's it !! This will solve the PHP memory issues for your website.
If you ever want to force your http traffic to https on IIS7 you can do the steps below. The steps here have been obtained after going through various forums and links which we tested and tried out. This worked for us so we're putting it up here for everyone.
SELECT 'EXEC(''sp_changeobjectowner @objname = '''''+
ltrim(u.name) + '.' + ltrim(s.name) + ''''''
+ ', @newowner = dbo'')'
FROM sysobjects s,
sysusers u
WHERE s.uid = u.uid
AND u.name 'dbo'
AND xtype in ('V', 'P', 'U')
AND u.name not like 'INFORMATION%'
order by s.name
There is nothing to correct really - this is how a self-signed certificate works.
It does not mean that it is insecure; it just means that it is not issued from a certificate authority (i.e. it is not purchased).
You can get a domain assigned for the SSL certificate and assign an IP if you wish.
Office Web Components
CDOSYS
ASPEmail
ASPJpeg
ASPMail
ASPSecured
ASPUpload
ASPSmartUpload
ASPImage
ASPHTTP
ASPSock
ASPPOP3
ASPNNTP
ASPDNS
ASPMX
ASPCrypt
ASPPing
ASPInet
ASPTear
Dundas Mailer
Dundas Upload
w3 JMAIL
w3 SiteTree
1.Login into the end user's account control panel.
2.Go to the "Domain Settings" menu and select the "Web Option" option.
3.Click on the domain name.
4.First you need to switch your domain on the dedicated IP.
5.Go to the SSL section on the page that appears.
6.Click on "Import SSL certificate".
7.Click on "Generate a temporary SSL certificate and certificate request" on the page that appears.
8.On the next page click on "Submit".
9.After that, you will be able to see the CSR and private key on the next page.
10.Save the CSR and private key in a safe place.
11.Now you can purchase the SSL sertificate using this CSR.
12.After getting your SSL certificate, you need to open a support ticket from your control panel with the SSL certificate and the private key which you got with the CSR. We will install your SSL certificate for you.
If a domain is not getting deleted from the Plesk control panel, and it is getting deleted from IIS we can fix this by running the command below.
on Windows :
Open the command prompt; go to start >> run >> cmd >> cd %plesk_bin%
And then websrvmng.exe --reconfigure-vhost --vhost-name=domainname (the domain name which one wants to reconfigure)
Today I encountered a strange issue, however I solved it and the client was happy. Many of our customers are from non-English backgrounds, like Spanish and various European languages. So enabling subtitles for online video playback for various languages is sometimes hard and nonspecific characters are not properly displayed. For example, these ones (like '¿', 'á', etc) are either not displayed or are substituted by a non-Latin character.
There are times in Outlook Express, when emails with the SMTP port 25 get rejected by RBLs like SpamCop and your own ISP's public IP address is shown. That actually means that your own ISP's public IP address has been blocked for the SMTP port 25.
For this, we have an alternate SMTP port on which no RBL check is implemented, i.e. 587. So, if you face such an issue then try to replace the default SMTP port 25/465 with 587 and then emails should be delivered just fine.
Other ports that are used with Outlook Express :-
SMTP Port = 25 or 587
SMTP Port over SSL = 465
POP3 = 110
POP3s = 995
IMAP = 143
IMAPS = 993
Below are the IP addresses and ports for the respective server for external management access :-
========================================================================
CL1 - Cluster-1
CL2 - Cluster-2
1) MSSQL Servers
-----------------------------------------------------------
Server IP Address Port
-----------------------------------------------------------
CL1- MSSQL1 173.0.136.201,5201
CL1- MSSQL2 173.0.136.201,5202
CL1- MSSQL3 173.0.136.201,5203
CL1- MSSQL4 173.0.136.201,5204
CL1- MSSQL5 173.0.136.201,5205
CL1- MSSQL6 173.0.136.201,5206
CL1- MSSQL7 173.0.136.201,5207
CL1- MSSQL8 173.0.136.201,5208
CL1- MSSQL9 173.0.136.201,5209
CL1- MSSQL10 173.0.136.201,5210
CL1- MSSQL11 173.0.136.201,5211
CL1- MSSQL12 173.0.136.201,5212
CL1- MSSQL13 173.0.136.201,5213
CL2- MSSQL1 173.0.136.201,5001
CL2- MSSQL2 173.0.136.201,5002
CL2- MSSQL3 173.0.136.201,5003
CL2- MSSQL4 173.0.136.201,5004
CL2- MSSQL5 173.0.136.201,5006
CL2- MSSQLSD 173.0.136.201,5111
VZSQL1 173.0.136.201 5101
OLD CL2-SDMSSQL 173.0.136.201 5401
HVSQL1 173.0.136.201 5402
2) MySQL Servers
-----------------------------------------------------------
Server IP Address Port
-----------------------------------------------------------
CL1-MYSQL1 173.0.136.201 6117
CL1-MYSQL2 173.0.136.201 6118
CL1-MYSQL3 173.0.136.201 6119
CL1-MYSQL4 173.0.136.201 6120
CL1-MYSQL5 173.0.136.201 6121
CL1-MYSQL6 173.0.136.201 6122
CL1-MYSQL7 173.0.136.201 6123
CL1-MYSQL8 173.0.136.201 6124
CL1-MYSQL9 173.0.136.201 6125
CL1-MYSQL10 173.0.136.201 6126
CL2-MYSQL1 173.0.136.201 6001
CL2-MYSQL2 173.0.136.201 6002
CL2-MYSQL3 173.0.136.201 6003
CL2-MYSQL4 173.0.136.201 6004
3) PgSQL Servers
-----------------------------------------------------------
Server IP Address Port
-----------------------------------------------------------
CL1-PGSQL1 173.0.136.201 7026
CL1-PGSQL2 173.0.136.201 7027
CL1-PGSQL3 173.0.136.201 7028
CL1-PGSQL4 173.0.136.201 7029
CL2-PGSQL1 173.0.136.201 7101
4) Plesk Servers
-----------------------------------------------------------
Server IP Address Port
-----------------------------------------------------------
Plesk-MSSQL1 173.0.136.201 10001
Plesk-MYSQL1 173.0.136.201 20001
1- https://support.google.com/mail/answer/22454
From this link you can see how to find out email headers in different mail clients.
2- https://toolbox.googleapps.com/apps/messageheader/
From this link, you can analyze your email header by pasting it.
To enable SMTP AUTH in PHPMailer:
First download the PHPMailer class file from the site http://phpmailer.sourceforge.net.
Save it as a php-file in the same directory as your script.
Include this script in your code:
<?php
require("class.phpmailer.php");
$mail = new PHPMailer();
$mail = new PHPMailer(); //Create PHPmailer class
$mail->From = "[email protected]"; //Sender address
$mail->FromName = "BUZZINESS WORLD "; //The name that you'll see as Sender
$mail->Host = "mail.domain.com"; //Your SMTP mail server
$mail->Port = '587';
$mail->Mailer = "smtp"; //Protocol to use
$mail->AddAddress("[email protected]"); //The address you are sending mail to
$mail->Subject = "Mail Subject"; //Subject of the mail
$mail->Body = "Write your mail here"; //Body of the message
$mail->SMTPAuth = "true";
$mail->Username = "[email protected]"; //valid email id of the domain
$mail->Password = "password"; //password for [email protected]
if(!$mail->Send()){ //Check for result of sending mail
echo "There was an error sending the message"; //Write an error message if mail isn't sent"
exit; //Exit the script without executing the rest of the code
}
echo "Your query has been sent";
?>
The following URL can be used to check a site for malware :-
http://www.google.com/safebrowsing/diagnostic?site=example.com
This diagnostic URL works to check any site by replacing the domain at the end with the site you wish to check.
http://www.google.com/safebrowsing/diagnostic?site=xxxxxxxx.xxx
Found out that your website is infected?
This page has some info on what to do if your site has been infected :-
http://support.google.com/webmasters/bin/answer.py?hl=en&answer=163633
A thread is a sequence of instructions. A core is capable of running a process, a process being one or more threads. Multi-threading generally refers to a process running with multiple threads.
Simultaneous multi-threading is one of the two ways multi-threading can be carried out. It is when more than one thread of instructions are running at the same time. Most SMT implementations are limited to two concurrent threads.
Multi-threading is the key concept behind VPS plans offered by hosting providers.
If you see your database is making too many connections, then use the query below to kill all connections in one go.
=============
USE master
GO
DECLARE @dbname varchar(30), @spid varchar(10), @start datetime
SELECT @start = current_timestamp, @dbname = 'airtel_sms'
-- Timeout after 5 mts
while(exists(Select * FROM sysprocesses WHERE dbid = db_id(@dbname)) AND
datediff(mi, @start, current_timestamp) < 5)
begin
DECLARE spids CURSOR FOR
SELECT convert(varchar, spid) FROM sysprocesses
WHERE dbid = db_id(@dbname)
OPEN spids
while(1=1)
BEGIN
FETCH spids INTO @spid
IF @@fetch_status < 0 BREAK
exec('kill ' + @spid)
END
DEALLOCATE spids
END
You can convert it to Punycode using this tool:
http://mct.verisign-grs.com/
Next, host the Punycode version of your domain like any other domain, and it should work.
Issues regarding the spam filter and email control can be solved using the HSphere control panel. The HSphere control panel is a very powerful control panel and personally I find it more user friendly than other hosting control panels I have used.
1. Login to the H-Sphere control panel.
2. Go to FTP/User account -> FTP User -> Login to the WebShell file manager.
3. Click the PROTECT button in the bottom menu. The Protect Wizard page will appear.
4. On the Protect Wizard page, click the name of the folder to be protected.
5. If the password file is empty, click the button to create a new user.
6. Enter the username and password to the file.
7. Click Save to complete the operation.
Follow the prevention steps below to secure your WordPress blog or any general CMS site :-
1) Make sure your WordPress site is up to date with the latest version.
2) Keep a backup of your entire WordPress database.
3) Change the default username (admin) to something else and use a strong password.
4) Change the database table prefix from default wp_ to something else to prevent a SQL injection.
5) Block indexing of the Wp-admin, wp-content, wp-includes and wp-content folders on the Internet using robots.txt or putting .htaccess inside the folders.
6) Protect your .htaccess file by denying access to it from all.
7) Secure your Wp-config.php file using .htaccess rules.
Steps to create the special SQL view for the MSSQL database:
A CGI error doesn't mean that there is an upload limit problem. A CGI error can happen due to multiple reasons like configuration settings, application requirements not met and other. If you have a debug option in your application, you can check what is causing it.
SSDs (solid-state drives) help in boosting speeds when the hosted website has lots of graphics or just plain overall database usage. Even SSD caching really helps and caching in nodes can still be implemented without full use of an SSD drive for storage. SSD VPS hosting tends to be faster but also more expensive when it comes to disk space.