RSS

Tag Archives: server

10 Ways to Improve Website Uptime


Jason Mayes, senior Web development engineer at XMOS Ltd., offers his own top 10 list for dealing with site congestion and other potential server outage problems:
  • Optimize your static content. Compress images to get every last kilobyte out of them while retaining visual quality.
  • Use Minify (a PHP5 app) for your CSS and JavaScript to compress Web data, and put JavaScript at the end of the document where possible.
  • Add “expires” headers to content to prevent browsers from continually downloading the same files as a user browses your Web site.
  • Ensure that your Web server delivers content in a compressed state — for example, mod_deflate for Apache. Clearly this should not be applied to files such as images — which are already compressed — so make sure you set up rules correctly.
  • Make fewer HTTP requests to fetch your Web site. Combine CSSs into one file. Combine JavaScripts into one file where possible
  • Include these files only on the pages where they are required.
  • Optimize your content management system. Reduce the number of database calls you need to make for each page request, for example. In Drupal, this can be as simple as disabling modules you do not need. Also, make any custom code more efficient if possible. A change of one-tenth of a second in an algorithm that is run thousands of times adds up.
  • Support caching of data that is frequently accessed. Use Memcache or something similar. Many CMS packages support this, but be careful with dynamic data.
  • Load-balance your Web server.
  • Separate your read/write databases so that you can have a master/slave database setup, allowing your database infrastructure to be scalable.
  • If applicable, split your database vertically or horizontally (or potentially a hybrid of these if this model suits your database structure) over several servers. This may not be suitable for everyone, however.
Advertisements
 
Leave a comment

Posted by on March 26, 2010 in Web Development

 

Tags: , , , ,

Server Vs Me


It was the first week in my office and got the opportunity to access our company server which is somewhere in USA.I was excited to use it because Centos installed in it.My assignment is to connect my pc with the server via ftp.I never connected ftp so it was a challenge to me.But i found it difficult to connect because i’m a newbie.I tried six precious hours but i failed to connect.After a long struggle i got a clue to connect via sftp.Finally i succeeded in transferring some files.It was a very good experience for me.The following are the steps to connect the server via sftp
SFTP stands for Secure File Transfer Protocol.It also called as SSH protocol.You can find a lot of information about in sftp in
Step 1:
open your terminal.use the command to connect it with the server
sudo sftp <username>@<IPaddress>
Enter the password whien it prompts.
Step 2:
To store the file in the server type the following command.
put [flags ] source-file destination-file
Step 3:
To quit the sftp
bye
To know more about sftp commands visit http://linux.about.com/od/commands/l/blcmdl1_sftp.htm
 
1 Comment

Posted by on March 24, 2010 in Networking

 

Tags: , ,