Archive for the ‘Linux sever’ category

Interworx-CP Integration

September 29th, 2011

You can have ClientExec automatically open hosting accounts for your clients in your Interworx-CP server.  The Interworx-CP plugins currently supports shared hosting account creation.

Plugin Configuration

First you need to configure the plugin in ClientExec’s server section (go to admin -> servers) as shown in the picture below.

“Use Secure Connections” should be set to “Yes” if you have cURL and openSSL compiled into PHP.  “Verify Certificate” should be set to “Yes” to ensure for maximum security however if you are having problems with this set to “Yes” try setting it to “No”. The “Access Key” is used to access your Interworx-CP server.  This value is generated within Interworx-CP under the NodeWorx->API Key menu.  Under the “Available Plugin Events” you can check under which events ClientExec will interact with Interworx-CP. At least have “Create” checked to have the accounts created inside Interworx-CP.

Interworx-CP Package Configuration

Before configuring the packages in ClientExec, you must create package templates in Interworx-CP.  This is done under the “SiteWorx” menu by clicking on “Packages”.   Clicking on “Add” in the image below will allow you to add new package templates if there aren’t any setup.  Once configured remember the package name as we will need to enter it in the ClientExec package configuration.

Package Configuration

Now you have to link a given ClientExec package with a Package you must previously create in Interworx-CP. Remember the correspondant package type in ClientExec must have the setting “Show Domain Options” set to Yes in order for the plugin to work.

The first thing you need to do in the package configuration screen is select the server you configured in the previous step and move it to the right side using the [>>] button. Then enter the Interworx-CP package name in the box as previously setup in Interworx-CP.

 

InterWorx – The Only Control Panel that Provides High Availability

September 28th, 2011

When it comes to true high availability, there is only one control panel that provides a proven high availability platform, and that is InterWorx. High availability refers to systems that are continuously operating for a desired length of time.  InterWorx, configured in a high availability cluster, will ensure that a server failure will never affect your website’s operation.

InterWorx is a control panel with a wide array of features for user and domain management as well as management of many other aspects of your virtual environment. If you are looking for a better way to manage your virtual environment, then InterWorx is one of the best control panel programs on the market, especially for high availability. Additionally, InterWorx provides a vast amount of other features and resource management options, such as configurable bandwidth usage and concurrent connections to vital services such as MySQL, IMAP, and other shared resources.

InterWorx may not be as well recognized as other programs on the market, but the feature set on this program is comprehensive and allows full management capabilities for web masters, administrators, or hosting providers. No matter what your management needs are in terms of high availability servers, an InterWorx license will provide you with all of the necessary tools that you need to completely automate and manage your control panel.

A high availability cluster is really only possible with an InterWorx license because there are very few control panel programs on the market that are equipped to handle high availability. An InterWorx license will give you access to all of the features that you need to effectively manage your virtual environment. Since the needs of each administrator, hosting provider, or webmaster will be different, InterWorx has anticipated this and designed a program that is scalable and adaptable, and the fact that it works well on high availability servers makes it an excellent control panel.

Keeping dedicated server safe

April 7th, 2011

Dedicated server саn bе аn vital раrt οf business growth.  Yουr information іѕ easily accessible tο аll people wһο һаνе tһе rіgһt tο view аחd υѕе іt.

Tһеrе аrе different operating logic scale, depending οח уουr needs. Fοr example,Windows operating logic optimization, networking аחd collaboration, wһісһ mау bе wһу tһеу аrе tһе mοѕt well lονеd.

Bυt, wһаt wіll happen іf уουr server below attacks? All уουr information wіƖƖ bе lost οr relentlessly hυrt, wһісһ іח turn саח affect tһе performance οf уουr business operations. Many people dο חοt take preventive measures tο try tο keep tһеіr dedicated server security guard wаѕ attacked. Tһе following іѕ tο keep уουr information reliable ѕοmе οf tһе tips.

1. Mаkе sure уουr software іѕ up tο date аחd patched

2. Disable a service tһаt уου dο חοt υѕе. Tһе space саח חοt bе wasted

3. Fixed audits οf уουr logic log, search fοr suspicious activity οr errors

4. Mаkе a firewall саח check IP addresses within tһе specified time

5. Complexity οf уουr password, change tһеm еνеrу 3 months

6. SCHEDULE [fοr Windows] consistent anti-virus аחd [fοr Linux] check rkhunter

7. Back up аll data regularly, bυt bе careful חοt tο save tһе backup οח tһе server

8. Oחlу installed οח tһе server authenticated аחd certified applications

9. Track security alerts frοm Technological Cyber іח case tһеу apply tο уουr systems/programs

10. Apply аll οf tһе above tο аחу οtһеr hardware used tο log іחtο уουr server аחd аחу server fοr уουr application development

11. Regularly audit your system logs, searching for suspicious or erroneous activity.

Tһаt’s іt. If уου give a close attention tο tһе above matters, уου саח increase tһе safety οf уουr server significantly.

Starting reseller hosting business.

April 5th, 2011

The world of reseller hosting may be a little confusing to some. Though with the right tips in hand anybody can be a reseller hosting success. In a nut shell, reseller hosting is a form of web site hosting where the account owner has the ability to use their allotted space and bandwidth to host their own or a third parties’ web site.  The account owner can sell the allotted space and bandwidth to the third party in question, and (in most cases) make a profit.

To help you get started in the world of reseller web hosting, here are a few tips you may look into or follow:

1. Act as a referral partner for the parent company.  This is a safe and easy option for reseller hosting, since it doesn’t involve you having to run customer accounts.  Instead, you earn commission for every customer you refer to the parent company who then signs up.  The downside to this option is that you need to have an online marketing presence, through a review website or ad campaign

2. Start small.  One of the great advantages of reseller hosting is that you only need a computer and an internet connection to get started – you don’t need to invest lots of money or get to grips with complicated technical applications.  For that reason, you should start by concentrating on reselling web space.  This is simple and straightforward, and a good way to earn whilst building a client base and gaining experience.

3. For the same reason, it’s also a good idea to start with shared hosting, since this is the simplest form of web hosting that you can resell.   As your business expands, you can look at offering more advanced reseller services, such as dedicated and co-located hosting, domain name registration and merchant accounts.

4. Work towards getting your own server.  This will give you a greater share of the profits over time.  However, it also involves greater responsibility for maintenance, back-up and repair, so you should only consider this option when you are confident that you can handle these technical requirements.

5. Don’t neglect your marketing and sales strategy.  Your reseller business won’t make money if nobody can find you.  So be very clear on who your target customers are, and how you can reach them.  This means constructing a well-optimized home site for your reseller hosting business, and running a well-targeted ad campaign.

6. Finally, don’t be afraid to ask for help, guidance and customer feedback.  There is plenty of free advice available on the web to help you decide on the approach that will best suit your purposes.  Remember, you may need to try several approaches before you find the reseller hosting strategy that works for you.

Server security tips.

April 1st, 2011

There are few tricks and tips that one should take care of with their servers. Here are some useful tips that can help you:

SO now you have a new server, what to do with it? The sky is the limit! Or is it? Naturally, and logically, there are restrictions. But a little extra attention for some details goes a long way… Let’s go over some of them.

Security: This is important, and cannot be stressed out enough. THEY ARE OUT THERE. Sounds dramatically? It is! If you want to keep the bad guys away start spending quality time on the firewall before activating services such as MySQL or Postgresql. I am not exaggerating. In the first night my server was active (I hadn’t even discovered these forums yet) I got 16 logon attempts from a total of 3 different IP addresses. Where the heck they came from is beyond me, but this is common behavior (this isn’t a surprise for me; been here, seen this before). They are out there! Trust me on this.

By default you might feel safe, no icky things in your logs, everything seems in order… Yes and no. Go Daddy charges you for used up space, and doesn’t risk default processes gobbling up your disk space without you knowing it. I think this is a very fair business policy, but it comes with a price. Namely that you’re probably left in the dark about your security. Do you have a “/var/log/secure” file telling you details on login attempts, failed login attempts and such?

If the answer is no then this is most likely because you do not have the “syslog” package installed (“sysklogd.i386″ to be exact). Want it? Then do (as root): “yum install sysklogd.i386″. And wham, in no time you’ll see what’s happening on your box. Careful: This comes at a price. Not a big one, but those log files do take up disk space no matter how you put it. Fortunately not all is lost.

If you installed that MC program mentioned earlier now is a good time to use it. Go to the /etc/logrotate.d directory. Here you’ll find a file called “syslog”. Press ‘F3′ to view it. Don’t worry if you don’t understand everything in there. What counts here is the first line. Notice stuff like “/var/log/messages” and “/var/log/secure”?

As the name suggests this is a configuration file telling a program on your server called “Log rotate” to actually rotate the files being mentioned in the config files which you find in that “/etc/logrotate.d” directory. So what does this mean? That every day (assuming default behavior) the system will archive your logfile and tell the main system to start using a new one. So, for example, let’s focus on “/var/log/secure”. A very important file in my opinion. If you wait a while (and I suggest not doing this behind your computer, but getting some sleep too) you’ll eventually notice 2 ‘secure’ files. One called ‘secure’, the other called ‘secure.1.gz’. What is this? Simple.. The first (’1′) of the compressed (‘gz’ stands for ‘gzip’ which is a compression program on Linux) logs. Still didn’t get MC? Shame on you! If you are on the console you can still easily view this file, just use something like: “zless /var/log/secure.1.gz” (you need to be root). ‘Space’ goes to the next page and ‘q’ quits. Using MC you simply press ‘F3′.

To conclude a personal comment: Go Daddy, I really hope you’ll consider using some ‘preview’ option. It really makes life easier (I know I could ‘edit’ my post, but still… “A good preparation goes a long way”).

Creation of Backup – Regular backups are necessary as we do not know when a failure can occur. It is a good practice to take backups of all documents, images and database and make sure it is stored in the right place.

To perform regular kernel security updates and keep all software’s up-to-date and secure.

Easy script installations such as Fantastico or Softacolous can be useful in daily installation requirements and keeps you safe from unwanted server errors and bugs.

Control Panels can make your life easier when you are about to manage their sites.

Frequent update of passwords is important to increase security of your dedicated servers.

Monitoring is a good habit which helps you to understand your dedicated server better. This mainly can be through monitoring software or a remote panel offered by your hosting provider.

Use only that is required. You should leave more space for your CPU, RAM and disks to deliver better.

Maintenance should be taken seriously as this increases your dedicated server lifespan and mainly include software updates, software upgrades, migrations, service checks, security monitoring.

After hiring a dedicated server.

February 28th, 2011

Once you have a dedicated server, you will find out how little time you have to read complex tutorials and documentation. This is especially true if you are offering hosting services to one or more customers. You will have real-world issues that need fixing right away. There are some shortcuts you can take to fix problems, but it is better to prevent them in the first place. The following are some steps you should take to make sure your server runs smoothly and securely.

  • Always keep current backups of all data. Backup:  Regular backups are necessary as we do not know when a failure can occur. It is a good practice to take backups of all documents, images and database and make sure it is stored in the right place.
  • To perform regular kernel security updates and keep all software’s up-to-date and secure.
  • Easy script installations such as Fantastico or Softacolous can be useful in daily installation requirements and keeps you safe from unwanted server errors and bugs.
  • Control Panels can make your life easier when you are about to manage their sites.
  • Frequent update of passwords is important to increase security of your dedicated servers.
  • Monitoring is a good habit which helps you to understand your dedicated server better. This mainly can be through monitoring software or a remote panel offered by your hosting provider.
  • Use only that is required. You should leave more space for your CPU, RAM and disks to carry better.
  • Do not max out your servers with more users and websites than it can comfortably hold. Leave a little room so that you’re CPU, RAM, and disks are not overtaxed.
  • Give users plenty of time to get ready for any maintenance down time, software upgrades, migrations, or other possible service interruptions.
  • Maintenance should be taken seriously as this increases your dedicated server lifespan and mainly include software updates, software upgrades, migrations, service checks, security monitoring.
  • Offer your clients a script installation service to make simpler the installation of many popular web applications. This will minimize support requests for “Internal Server Error” and other problems. It will also help clients keep their scripts up-to-date.
  • Encourage users to regularly update their passwords and enforce strong passwords to prevent security breaches.

Reset your lost MySQL root password.

February 14th, 2011

Have you ever forgotten your MySQL root password? Chances are, you have at least a dozen passwords for your server, computers, phones, email, social network, and bank account. It is tough enough to remember commonly-used passwords without even thinking about your MySQL password.   It’s one of those things that just take place despite the numerous precautions one might take. As a result, you are locked out of your database server. You can’t create new databases and are left with little control over the state of your database server. In such situations knowing how to regain root access to your database server comes in handy. So here’s what you can do to reset the password for the root user in MySQL on both Windows and Linux.

Linux Users:

1. Log into your server via SSH and then become root:

$ su

2. Stop the current MySQL instance (note that this will halt any sites that depend on it, so make sure you do this during the lowest possible traffic time).
3. Start MySQL in safe mode and skip privileges checks:

# mysqld_safe –skip-grant-tables &

4. Next, log into MySQL without a privileges check:

# mysql –user=root mysql

5. Finally, reset the password by updating the user table of the default mysql database:

UPDATE user SET Password=PASSWORD(‘newrootpwd’) WHERE user=’root’;
FLUSH PRIVILEGES;

(Note: replace “newrootpwd” with your actual password, preferably one you can remember)
6. Restart MySQL to get out of safe mode:

# /etc/init.d/mysql restart.

Windows Users:

Log on to your server as the Administrator. Kill the MySQL server if it’s running. To do this you need the Windows Services Manager, so click on the Start Menu, then go to the Control Panel, then to the Administrative Tools, and select Services. Here look for the MySQL server and stop it. If it’s not listed there and MySQL is till running it means that MySQL is not running as a service. In that case you need to load the Task Manager which you should be able to access using the key combination of Ctrl+Alt+Del. Now kill the MySQL process.

With the MySQL process stopped you need to force a change of passwords on MySQL using a combination of the UPDATE and FLUSH options. So launch your favorite text editor and create a new file. Enter the following text into the file replacing “NewMySQLPassword” with your new password:

UPDATE mysql.user SET Password=PASSWORD(”NewMySQLPassword”) WHERE User=’root’;
FLUSH PRIVILEGES;

What the first line does is that it updates the value of the field “Password” in the table mysql.user for the user “root” to “NewMySQLPassword”. The second line flushes the old set of privileges and makes sure your new password is used everywhere. Save this text as C:\mysql_reset.txt.

Next, you need to start your MySQL server passing this file as a configuration parameter. Launch a terminal by going to the Start Menu, then to Run, and then type cmd and hit Enter. Now enter the following command:

C:\mysql\bin\mysqld-nt –init-file=C:\mysql_reset.txt

Once the server is done starting delete the file C:\mysql_reset.txt. Your MySQL root password should be reset now. Now restart your MySQL server again. Go back to the Windows Services Manager again to do that. Your new MySQL root password should work for you now.

Minimizing Download Bandwidth.

February 14th, 2011

The limitation of bandwidth is something we cannot escape. Whether you have a single shared hosting account or a data center filled with servers, you still have to deal with bandwidth limitations. For those of you who lease or own dedicated servers, keeping your bandwidth numbers down may be a daily struggle.

The following are four steps you can take to lessen the sting of high data transfer for one or multiple websites on your server.

File compression – Bandwidth is calculated in bytes and finally in gigabytes (GB). While HTML and CSS files are generally smaller than Mp3s and other media, multiple downloads can add up. Fortunately, you can save bandwidth with file compression. Most modern web browsers support gzip compression, meaning that users will download your content and then uncompress it seamlessly within their browsers.

P2P File Sharing – Although this is generally thought of as a tool for software, music, and movie pirates, peer-to-peer networks are great for reducing bandwidth, as they offload some of the data transfer to users. Bit Torrent is a very popular file sharing technology that you can use for large file downloads.

File Hosting – If P2P file sharing does not work for you, there are plenty of services that will host your files remotely at a fraction of the cost of bandwidth.

Cloud Storage – Many services such as Amazon S3 offer long-term cloud storage, web application caching, and/or Content Delivery Networks (CDN), all of which can reduce your server’s direct bandwidth and at last save’s your money.

Microsofts SQL Dedicated Server.

January 29th, 2011

Dedicated SQL Server

Dedicated SQL Servers provide committed resources to enhance performance and reliability for your application. MicroSoft provides Dedicated SQL Servers to web developers, enterprises and organizations needing advanced support and functionality. With a full team of database administrators (DBAs) a Dedicated SQL Server can give you both the robust database functionality and expert support you need.

  • LINQ support
  • New spatial and date/time data types
  • FILESTREAM data type
  • Transparent Encryption
  • Data & Backup Compression
  • Policy Based Management
  • Enhanced Auditing

High Availability Dedicated Server Servers

Dedicated SQL Servers can put an intense demand on resources such as CPU and RAM.  Dedicated SQL Servers with high I/O needs can see performance benefits from the use of solid state drives. MicroSoft offers custom High Availability solutions for your SQL Server needs. Our team of DBAs can help design and configure a solution that will meet your database’s specific needs. MicroSoft supports the following technologies:

  • Database Mirroring
  • Database Log Shipping
  • Server Clustering
  • fully managed SQL dedicated servers. Dedicated SQL Servers provide enhanced performance, reliability, and dedicated resources for your application. MicroSoft offers a wide range of cost effective SQL Server Hosting solutions to suit the needs of any web business. Try one of our fully managed Dedicated SQL Servers, equipped with Dual Core/Quad Core/ Dual Quad Core Xeon processors, up to 32 GB of RAM and up to 450 GB of fault tolerant SAS disk space. Create unlimited databases, users, packages, SQL jobs, maintenance plans and more.
  • Microsoft® SQL Dedicated Server 2000/2005/2008 hosting solutions provide you with the most comprehensive platform for building and deploying database driven applications for an online business. Since Dedicated SQL Servers require intensive resources such as CPU and RAM, each of MicroSoft’s SQL Dedicated Servers deliver the ultimate in terms of performance, dependability, and security, coupled with guaranteed uptime, affordable pricing, and round the clock technical support.
  • Our Dedicated SQL Servers allow a user the privileges to manage the entire SQL Server remotely with SQL Enterprise Manager or via RDP (Remote Desktop Protocol). All SQL Server hosting packages come with round the clock technical support from our Microsoft Certified staff. MicroSoft has a dedicated team of Dedicated SQL Server Hosting experts who have sound experience in SQL Hosting administration, optimization, backups, restores, as well as implementation.
  • With our branded hardware dedicated server configurations, world-class data center and support for Windows Servers, you can be rest assured that your data is being delivered on the most advanced database hosting platform available.
  • MicroSoft also offers custom solutions for your web and SQL Dedicated Server needs. Please contact our Sales Department for a quote based around your specific needs.
  • If you have a requirement for SQL Server 2005/SQL Server 2008 but cannot afford the costly per-cpu licenses required or quite simply do not want the extra hassle of maintaining SQL databases then why not take advantage of our Windows Web Hosting. We have shared SQL Server 2005 and SQL Server 2008 servers and can offer this to all customers who need SQL Server hosting at an much lesser cost than a full dedicated SQL server.

Version-Next is specializing in dedicated server industry. We are experienced in web hosting, dedicated Servers solutions & leasing high end servers (US based/Indian Based) to its clients.

To setup your Microsoft SQL Dedicated Server please click here

For more visit: www.version-next.com




.htaccess Tips and Tricks

January 25th, 2011

.htaccess (hypertext access) is the default name of a directory-level configuration file that allows for decentralized management of web server configuration.

There are tons of things you can do from the htaccess file inside of your web hosting account.  From redirecting the users to controlling who can get in and who can get out, it is a very useful file to have on your hosting account.  To help out the new web hosting clients and to act as a reminder to the old pros around here, I thought I would go through five of the most popular .htaccess tips I know.

Redirect to a Maintenance Page

This is a great one to use if you need to make some quick web page edits, and you don’t want the public to see you edit your web site, while it is still live.

Options +FollowSymlinks

RewriteEngine On

RewriteBase /

RewriteCond %{REQUEST_URI} !/offline.html$

RewriteRule .* /offline.html [R=307,L]

This will redirect anybody who checks out any web page on your web site to the “offline.html” file.

Force the Use of “www” in Front of a Domain Name

If you want to keep the www in front of your domain name, no matter how somebody types it in, here is the ‘bit of .htaccess magic you will need:

Options +FollowSymlinks

RewriteEngine on

rewritecond %{http_host} ^mydomain.com [nc]

rewriterule ^(.*)$ http://www.mydomain.com/$1 [r=301,nc]

Once you have done so, both mydomain.com and www.mydomain.com will both send you to www.mydomain.com

Remove the “www” From in Front of a Domain Name

You can also force your domain to drop the www from the address when typed in, if you would rather have it the other way around. In that situation, you would need to add this to your .htaccess file:

RewriteEngine On

RewriteCond %{HTTP_HOST} ^www.mydomain.com$ [NC]

RewriteRule ^(.*)$ http://mydomain.com/$1 [R=301,L]

This will make both mydomain.com and www.mydomain.com send you to just mydomain.com.

Manually Create Custom Error Pages

Ever check out some of those customized error pages and wonder how it could be done? Just use these snippets of .htaccess code to tell people where to look for your error pages.

ErrorDocument 400 /errors/400.html

ErrorDocument 401 /errors/401.html

ErrorDocument 403 /errors/403.html

ErrorDocument 404 /errors/404.html

ErrorDocument 500 /errors/500.html

This tells the server to look inside the “errors” folder and that specific page for each of the different error types. That is not all of the error codes, but they are the ones that will be ‘hit by your users 99 percent of the time.

Block Visitor By IP Address

Need to keep somebody from checking out your web site?  This next tip will give you the ability to deny somebody based on what their IP address is:

order allow,deny

deny from 123.45.6.7

deny from 012.34.5.

allow from all

The above blocks access to the site from 123.45.6.7, and from any sub-domain under the IP block 012.34.5. (012.34.5.1, 012.34.5.2, 012.34.5.3, etc).

Before you go off and plant htaccess everywhere, read through this and make sure you don’t do anything redundant, since it is possible to cause an infinite loop of redirects or errors if you place something weird in the htaccess.

Also…some sites do not allow use of htaccess files, since depending on what they are doing, they can slow down a server overloaded with domains if they are all using htaccess files. I can’t stress this enough: You need to make sure you are allowed to use htaccess before you actually use it. Some things that htaccess can do can compromise a server configuration that has been specifically setup by the admin, so don’t get in trouble.

PHP Freelancer