How to find large files on a server via SSH

Continuing our series on handy commands to know os one that helps you find large files on your server via SSH.

SSH command for finding files larger than a certain file size

The command for this is quite easy, for our example we will assume you want to find all files that are larger than 1 GB in size and geta list you can use.

Step one: Go into your SSH session and type:

find / -type f -size +1048576k -exec ls -lh {} \; 2> /dev/null | awk ‘{ print $NF “: ” $5 }’  | sort -nrk 2,2

Done!…

How to white list an IP address in Mod Security

Often you will have a ruleset in Mod_Security that you want to override for a specific IP address or within a certain path in a website or an application.

To do this you need to locate or create your Mod_Security white list file, then add this line:

…where

is the ID of the rule you want to override.…

How to create an up-sell feature in Shopify

Shopping cart up-sell feature (using Bold Up-sell App):

The shopping cart up-sell features App allows for special offers to be shown to users when they add a particular product or dollar amount into their cart.

IMPORTANT – this is NOT a discount module. It WILL NOT allow you to specify a discount. This is probably because Shopify doesn’t want conflicts to easily occur in discounting.

This means that you CREATE a discounted product first that is hidden ..  and let it “up-sell” the product at a lower price (or not).…

Cannot connect Outlook 2010 to Office 365

Here’s the first thing to look at for a fix for this issue:

Your Office 365 connection may be failing on IPv6

Things are changing quickly with the adoption of IPv6 addressing. At nearly every step along the way between the seat you sit in and where you ultimately need to connect there’s a lot that may or may not be fully compatible with the IPv6 protocol.

e.g. Network adapters, routers, switches, ISPs, servers, etc.

It is possible that trying to connect over the IPv6 network is most likely the reason your Outlook (2007 – current) is having connection problems.…

How to increase PHP timeout values in Apache and NGNIX

There comes a time when you really need to increase the amount of time it takes before your server stops a particular PHP process from continuing. This is called PHP session “timeout”.

Under normal conditions you want to keep these values low so your connections are as efficient as possible. These limits are also in place to prevent poorly written scripts from monopolizing too many resources on your server.

However, there’s plenty of reasons you would want to increase these values – usually temporarily.…

How to secure Drupal – tips & best practices

Securing Drupal, regardless of the version you are working with, is not that difficult. Security, as a baseline, is always a multi-layered exercise. Many clients do not understand that you have to work on securing everything that makes up your website – from server operating system all the way to the application layer.

This post is not going to go into server architecture or best practices for managing packages, RPMs, or other components – for now we will focus on the application layer.…

PHP Development: Company Projects and Applications

FDG Web builds custom PHP / MySQL applications both large and small. We help our clients develop the architecture, do rapid prototyping and help them get their ideas to market.

We also support and improve existing applications, including migrations, upgrades and helping companies chart the path forward for their critical systems.

The following are projects that we have helped build for our clients using a variety of technologies.

PHP Crowdfunding Application

We helped Realty Mogul with early prototyping during their start-up phase.…

How to exclude a sub directory from .htaccess 301 redirects

So, here’s something that comes up all the time – you have a sub-directory you want to exclude from a global .htaccess redirect. Often this is due to installing another application within the document-relative paths of an existing website or web application.

e.g.

  • You want to install a copy of WordPress within an existing Drupal website.
  • or maybe you have an application framework like Cake PHP and you need to exclude a directory from the error handling that occurs across all 404s.

Shopify App Development

FDG Web is an active Shopify Experts program participant. We assist clients with their custom development needs on the Shopify platform.

We current provide services for:

  • Shopify store setup help and assistance
  • Custom Shopify Application development
  • Custom Shopify Theme design & development
  • Shopify integration – including CRM, ERP, web services and fulfillment integration or other APIs

In addition, we also create “pass-through” applications for Shopify. This is where you need custom functionality that is not currently supported by the Shopify App environment.…