Find out Files modified within the Last x Days in Linux

Just use this simple command to recursively find out what files in the current directory has been modified within the last 6 days:

find . -type f -mtime -6

 

To find modified files in the current directory but to not look in certain sub-directories such as Maildir or logs:

find . -type f -mtime -6 | grep -v "/Maildir/" | grep -v "/logs/"

 

This would come very handy in:

  1. Finding files that have been hacked or maliciously uploaded.
  2. Finding files that are modified or updated by you in the last few days for backup or recovery or simply synchronization.

More tips can be found in this article as well.

A Small Orange Coupon Codes for 15% Hosting Discounts

Save the rubbish. Here are the promotional coupon codes for A Small Orange.

Just click the orange coupons below to claim the discounts. I would appreciate it if you can click this link to be my referral so I earn a commission for your order.

Click to claim: 15% off any annual order

KAVOIRCOM
Click To Open/Copy

Click to claim: $5 off any order

SCRAPINGWEBCOM
Click To Open/Copy

These 2 codes will NEVER expire. So feel free to hand out to your friends!

 

PHP Memory Exhaustion | A common cause of the WSOD (White Screen of Death)

If you are experiencing issues with your PHP based website in Cloud Sites, and are seeing the “White Screen of Death” the first thing you will want to check is your php_errors.log file which is located within the logs directory of your website in FTP.

By default, php errors are logged to that file unless otherwise specified by your application.

A very common PHP error is the “PHP Fatal error: Allowed memory size of XXXXX bytes exhausted” error.

Fortunately this is a relatively simple issue to fix.

Rackspace Cloud’s default PHP memory is set to 32M. Some plugins or themes may require more memory than this to process.

To increase the PHP memory you will need to edit the .htaccess file within your /web/content/ directory (or create a .htaccess file if it does not already exist) and add the following line of code towards the top of the file:

php_value memory_limit ?M

Replace the ? with the amount of php memory you wish to allocate. We recommend increasing it to 64M unless more is necessary.

Keep in mind that more php memory will NOT make your website run faster. Too much php memory may actually make your website run slower. The php memory value is how much memory your application is requiring to load each webpage.

So as you can imagine, if your application is requiring upwards of 128M of memory just to load a single webpage it probably won’t load very quickly. 😀

Rackspace Reduces Cloud Files Storage Price by 33%

Cloud FilesTM, powered by OpenStack®, provides easy-to-use online storage for files and media. Cloud Files integration with Akamai’s CDN allows you to serve your content globally, giving you high-speed delivery of content to your site and faster page loads for your site visitors. With pay-as-you-grow pricing, you only pay for the amount of storage and outgoing bandwidth you actually use. Cloud Servers customers will find that using Cloud Files is easy and seamless.

Cloud Files can be an excellent storage solution and is well suited for a number of applications:

  • Backups or archives of your data – For example, you can configure backup images of your Cloud ServersTM
  • Image or video streaming
  • Secondary or tertiary, web-accessible storage for your data
  • Developer-friendly cloud storage with an open API that makes it easy to build applications

Cloud Files Growth: Passing Savings to You

We are pleased to inform you that we are reducing the monthly price of Cloud Files from $0.15 per GB per month to $0.10 per GB per month for US cloud accounts. The growth of Cloud Files, now one of the largest storage platforms in the cloud, is giving us the economies of scale that allow us to reduce costs and pass savings to you.

OpenStack® Object Storage Is Thriving

While Rackspace originally contributed the code for Cloud Files “Swift” that became the OpenStack Object Storage, today there are over 170 companies and over 3,000 people that are involved in the OpenStack ecosystem. At present, Cloud Files is based on the OpenStack Object Storage Essex release which includes code contributions from a global community of developers, software companies, hardware vendors and service providers.

It’s a great time to check out all the new features that we have added to Cloud Files for your next project. Cloud Files is ideal for corporate websites, test/dev environments, ecommerce and SaaS solutions. Features that you might be interested in include: HTTP Compression, Large File Support, SSL Delivery, CNAMEs, CDN Video Streaming, Expiring Objects & Temporary URLs, and Static Website Hosting & Object Versioning. Here are two examples of customers using Cloud Files to power their business:

  • Streaming Media: Dubset uses Cloud Files to power its rich media site
  • eCommerce: Prepara uses Cloud Files to serve static files and images to handle huge ecommerce traffic on the cloud

If you need more than 100 TB of data stored in Cloud Files, please contact us for special pricing. Also, remember you can always contact Support to send us your data by mail using Bulk Import. If you have any questions regarding Cloud Files, don’t hesitate to give me or my sales team a call.

WordPress Security Tips

Oftentimes, when a customer complains of their site being defaced or infected with malware, we will investigate and discover that they are using a CMS such as WordPress. The danger in using these packages, from a security standpoint, is that they are so common as to make a large target for malware writers. Combine this with their support for third-party add-ons and the rapid speed of development, and it’s easy to see how vulnerabilities can creep in.

If you’re looking for a quick and dirty security intro, here it is — Update, update, update. Check release notes for any vulnerability fixes; if you see any, it’s time to upgrade. In addition, audit your plug-ins. Third-party add-ons are often not checked as thoroughly as the core code. Just because a plug-in is popular doesn’t mean that it’s secure.

Having said that, when it comes to more comprehensive information specific to WordPress, we’d prefer to direct you to the experts:

http://codex.wordpress.org/FAQ_My_site_was_hacked
http://wordpress.org/development/2009/09/keep-wordpress-secure/

As always, we welcome your questions and feedback!

Get Server CPU Usage of A Specific User

Suppose your user name is jimgreen and you can run the following command to get a very specific CPU usage of it in real time:

top -b -n 1 -u jimgreen | awk 'NR>7 { sum += $9; } END { print sum; }'

You can even further capture the usage metric in PHP and do conditional actions:
$usage = shell_exec("top -b -n 1 -u jimgreen | awk 'NR>7 { sum += $9; } END { print sum; }'");
Now $usage contains the CPU usage of the user jimgreen.

Rackspace Cloud Pricing

Rackspace Cloud is the de facto leader in cloud hosting. Make no mistake, and you would find them to be the most cost-effective solution AND the best supported cloud offer. No joke.

rackspace cloud pricing

Rackspace Cloud Pricing

1. Cloud Servers – $0.015 / Hour

But that’s just for the Cloud Servers which is priced at $0.015 / hour or $10.95 / month, no matter what you choose for the system, Linux or Windows. You manage, monitor, and secure the system yourself.

rackspace cloud servers bandwidth pricing

Cloud Servers bandwidth pricing

2. Cloud Files – $0.15 / GB / Month

State of the art programmable cloud storage for online data hosting / retrieval at comet speeds, Cloud Files is priced at $0.15 / GB / Month.

rackspace cloud files bandwidth pricing

Cloud Files bandwidth pricing

3. Cloud Servers with Managed Service Level – $0.135 / Hour + $100 / Month

This is the ultimate Cloud Servers plan with Managed Service Level which is priced at $0.135 / hour plus $100 / month. It includes the simple Cloud Servers plan and the Cloud Files plan. Rackspace manages, monitors, and secures the system for you.

rackspace cloud servers bandwidth pricing

Cloud Servers bandwidth pricing

4. Cloud Sites – $149 / Month

Cloud Sites is like their classic Dedicated Hosting in the cloud. It’s fully managed with a worry-free SLA. Current pricing starts at $149 / month. It includes the simple Cloud Servers plan and the Cloud Files plan. Rackspace manages, monitors, and secures the system for you.

rackspace cloud sites pricing

Cloud Sites pricing

5. Cloud Load Balancers – $0.015 / Hour

Load balancing solution on-demand, Cloud Load Balancers starts at $0.015 / hour.

rackspace cloud load balancers pricing

Cloud Load Balancers pricing

rackspace cloud load balancers bandwidth pricing

Cloud Load Balancers bandwidth pricing

More Facts

  1. Cloud Servers (Managed Service Level) and Cloud Sites are mutually exclusive. You can’t order both at once.
  2. Bandwidth costs vary by product.

Rackspace Cloud Priority Maintenance

We will be performing a critical maintenance on Friday November 4th, 2011.  Because of this maintenance’s scope, this process is different than our usual process for routine maintenance windows.

This maintenance will begin on Friday, November 4th at 10:00 PM CDT (4:00 AM BST) and complete on Saturday, November 5th at 6:00 AM CDT (12:00 PM BST).

The maintenance will impact customers utilizing Cloud Servers, Cloud Files and Cloud Sites.

During the maintenance window, we will be performing an upgrade to our entire Cloud infrastructure.  Please note that throughout this time there will be no access to your Control Panel or the Cloud API.

Multiple systems within our infrastructure, including internal support tools, will also be affected. As a result of these infrastructure improvements, our ability to provide support will be limited until maintenance completion. We do not expect this update to result in any downtime to the Rackspace Cloud production environment, only to the management tools and API.

For real-time updates please visit the Rackspace Cloud Status page.

If you have any further questions concerning this maintenance, please do not hesitate to contact a member of our support team, via chat or via ticket.

Best Regards,

One-Click PuTTY SSH Auto-Login w/ Password

PuTTY is a wonderful application that enables you to connect to a server by SSH. You can  save a pre-configured session – host address, port, as well as other options that would make your life easier. And then you can click the saved session to start the pre-configured SSH session, thus don’t have to enter the host name and port every time you need to connect.

Once connected to the server, it will prompt you for user name and password. However, is there anyway to make it all automated? Like, after you double click the PuTTY shortcut in Windows, it will automatically connect to the remote server AND supply the SSH user name as well as password so you don’t have to.

A double-click is all it takes to establish the connection and log in the remote server. Is this possible?

Yes!

Just create a shortcut of PuTTY with a command line like this:
C:\tools\putty.exe -load session_name -l your_user_name -pw your_password
Wherein session_name is the saved session name, your_user_name is your SSH login user name and your_password is the password. Change “C:\tools\putty.exe” to the path of your own putty.exe.

You can use this to make the SSH Socks5 VPN even more easier to use. See this post on Kavoir.

Content Copywriting Tips – What I Look For When Buying Articles

I have quite a few content networks / sites – not content farms because I care very much about the quality of the articles. I can’t do all the content myself so I constantly use article writing services to get the jobs done. The range I pay is $10 – $50 per article, to give you an idea. I used to buy articles by words but later gave up on this approach because I found writers who charge by words isn’t quite good.

Then what makes a good article for the web?

I recently found a new writer to write about some application reviews. He sent the first review to me, it’s about BC. His writing is good but still not that much desirable. It’s rather long with tedious paragraphs and little section heading (even if there were, they were too short and non-informative). Just not the kind of article people would like to read on the web. So I replied with a brief list of requirements:

1. I’m looking for articles of real personality in it that instantly gratifies the reader in the first 10 seconds they stop on the title and first paragraph / picture. For example, an article that yells and calls names (not necessarily so, just making a point). This blog does it masterly: http://www.copyblogger.com/

2. Use short paragraphs. Use short sentences but strong words that’s heavily opinionated.

2.5. Use lists (ordered, unordered) and tables that are 10 times more readable than plain text blocks / paragraphs. People attentions are very very short on the web and they generally hate large blocks of tedious texts.

3. Don’t be afraid to offend people – like this review: http://www.kavoir.com/2011/09/seomoz-pro-review-bad-bad-bad.html

4. Section the article well and title those sections well so readers can find something very very quickly. For example, the section title ‘Features’ does nothing other than driving the readers away – why should they read what the features of BC are in here while they can easily find them on the official site? Few of them would keep on reading when they see this title because there’s nothing interesting there that they don’t know. So are ‘Flexibility’ and ‘Cost’. They practically said nothing – a waste of readers’ attention. Even “Cons” is a better title because it said something about what to expect in the following paragraphs. “Flexibility” and “Cost” are neutral words that should be used in manuals and official texts, etc.

5. It’s very very kind of you to write more than 1,000 words, I really appreciate it. But if you can do the writing the way I described above, I’d still pay you a solid $xx even if you only wrote 300 words. That’s the quality I want. Articles never have to be lengthy to be good.

Your idea?

2-year Linode Review – Prince of Unmanaged Hosting

linodeUnmanaged hosting wasn’t my thing at first but as I was eager to learn something new and it’s just much cheaper than managed hosting, I found one with the most positive reviews – Linode.

It’s all simple and to the point. Period. And I never looked back after using them. Though it’s very much painful for me to manage the vps box myself, it’s a great learning experience after all and I did learn a lot!

Linode is probably the cheapest VPS in all unmanaged hosting companies but it’s far from the worst. In opposite, they are the best and most cost-effective. RAM of 512MB hardly comes by at less than $20 / month these days. And they have got a very hearty community of users! They are eager to help those who need tips to set up and harden their boxes against security breaches.

Their control panel is very cozy – not fancy but just to the point. Everything’s well aligned where they should be. Very well organized. Easy to use and very intuitive. I love it very much.

They also have a very comprehensive documentation library that you could look up stuff in case you don’t know how to do something by yourself.

The only down time I experienced was a power outage or something that lasted about 3 hours. Other than that, it’s all a breeze. The server is responsive and stable.

I would recommend Linode to anyone who’s good at managing the hosting server themselves!

4.8/5 from me.

The Levels of Managed Hosting

In a managed hosting environment, your provider owns and is responsible for the data center, network, devices, operating system and application infrastructure components, providing a stable operating environment for your applications. Your IT organization manages your applications and maintains full control over the operating system and application infrastructure.

Managed Hosting provides more value than colocation and dedicated hosting because it frees more of your IT personnel from mundane infrastructure related tasks, personnel that can now be reallocated to understanding and supporting your business more effectively.

Managed Hosting also provides greater responsiveness than fully outsourced solutions because it emphasizes a flexible bottom-up approach to delivering value that puts you fully in control of your OS, application infrastructure and application. In addition, Rackspace  Hosting also delivers a number of key services designed to keep your applications secure, stable and responsive to your changing business needs.

Different levels of managed hosting

Rackspace Cloud Drive – powered by Jungle Disk Workgroup

Stop dealing with the hassle of managing a file server. Store, share, sync, and automatically back up files for individuals or teams. Easily set up multiple drives that can be accessed from any desktop or on-the-go through a secure web interface. Rackspace Cloud Drive is fast, secure, and scalable with pay-as-you-go storage pricing.

Store Files

Securely store files in the cloud and access them anywhere via a virtual network drive on your desktop or on the web. There is no learning curve; it works just like any other drive, drag and drop, copy and delete. Store an unlimited number of files with an included 10GB per user and additional storage available on demand.

Share Files

Ditch the file server and USB key for sharing files amongst workgroups. Assign access permissions for individuals and teams across multiple drives. Sharing large files has never been easier.

Backup

Easily restore lost files with automatics backup. Set the backup schedule and apply it to specific files, folders, or an entire drive. File change monitoring and de-duplication makes the process fast and consistent. Receive backup updates on your desktop, by email, or RSS. Never worry about data loss again.

Synchronization

Sync files across multiple teams and desktops. Assign folders on multiple local machines to sync with the online drive. Files are updated as changes are made and are synced online as well as on teammate’s computers. Go offline and keep working; the files will update as soon as an Internet connection is established. Never work on an outdated document again.

Remote Access

Don’t be glued to the desktop. Work from anywhere with secure remote access to your files. Access files through a web-based interface or your favorite smartphone.

Rackspace Hybrid Hosting – Dedicated Managed Hosting + The Cloud

In order to optimize the performance, security and scalability of your infrastructure, it is critical to have the right compute platform supporting each element of your hosted solution.

Rackspace offers a complete portfolio of compute platforms as well as Hybrid Hosting to make them all work together seamlessly.

Hybrid Hosting means you get the best of both worlds: Dedicated Hosting for mission-critical applications, plus the flexibility and fast provisioning delivered by the Cloud.

Whether you require Dedicated Servers and Cloud Servers operating independently for different workloads, or a seamlessly integrated architecture for bursting extra compute cycles, Rackspace Hybrid Hosting allows you to mix and match compute platforms to best suit your needs.

Benefits of Hybrid Hosting

  • Enables the right fit between application needs and compute platform
  • All your hosting is under one roof
  • All bandwidth used between Rackspace Cloud and Dedicated Managed Servers is secure and provisioned at no additional cost
  • Backed By Fanatical Support

How does it work?

rackspace hybrid hosting illustration