Vol 21 No. 1 Issue 247

January 2016

 

pair Networks Celebrates its 20th Anniversary!

And now a word from pair Networks' founder and CEO, Kevin Martin.

Way back in 1995, when CompuServe, America Online, and Prodigy had just started offering dial-up Internet access, pair Networks was conceived as an idea. It took four months of preparations, but on January 11, 1996, we went online serving Web sites over our brand-new T-1 line.

While I remember that day like it was yesterday - I genuinely do - it has in fact been a remarkable twenty years. Remarkable both in duration and in the events that have passed throughout that time. Little did we realize how far ahead of the curve we were, and how critical the Web would become to the everyday life of so many people.

Today, we are one of the oldest Web hosts independently operating, and we believe we are certainly the largest host with roots in the previous millennium. None of this success would be possible without each and every one of our clients - you! We treasure you and thank you!

Anniversary Celebrations and Savings

We celebrated our anniversary with a whole week of geeky giveaways -- droids, drones, and Game of Thrones!

We've still got one more prize to give away this January -- $2,500 credit towards our services!

We're celebrating the love all the way through Valentine's Day, February 14th. You can continue to enjoy 20% off your first bill using coupon code lovepair20. Read the full special terms here:

https://www.pair.com/why-pair/specials/

Tutorial: Uploading Files to WordPress

Did you know you can upload files through the WordPress admin panel and avoid the security pitfalls of FTP? You can upload files directly to a post or can upload files for a later use.

Uploading Files for Later Use

If you're coming to us from another provider, uploading a bunch of files that you worked on remotely, or just want to upload a bunch of media at once (say, an entire album of photos from a recent trip), you can easily upload files in a batch and use them later as needed.

  1. Log in to the WordPress Admin Panel
  2. Hover over or click on the "Media" menu and select "Add New"
  3. You'll see a large box with a dashed outline. You can drag files from your computer into this box, or click on the "Select Files" button to open up a file browser dialog
  4. As soon as you drop files into the box, they'll start to upload

Uploading Files in a Post

If you've already started a post, there's no need to interrupt your work to upload a file. You can even upload files while editing a post and save the files for later.

  1. While editing a post, click the "Add Media" button
  2. Select the "Upload Files" tab
  3. You'll see a large box. You can drag files from your computer into this box, or click on the "Select Files" button to open up a file browser dialog
  4. If you're not ready to use the files now, simply make to uncheck the files. The files will still be there for later.

Supported File Types

The WordPress Codex lists supported file types as follows:

Images

  • .jpg
  • .jpeg
  • .png
  • .gif
  • .ico
  • .svg

Documents

  • .pdf (Portable Document Format; Adobe Acrobat)
  • .doc, .docx (Microsoft Word Document)
  • .ppt, .pptx, .pps, .ppsx (Microsoft PowerPoint Presentation)
  • .odt (OpenDocument Text Document)
  • .xls, .xlsx (Microsoft Excel Document)
  • .psd (Adobe Photoshop Document)

Audio

  • .mp3
  • .m4a
  • .ogg
  • .wav

Video

  • .mp4, .m4v (MPEG-4)
  • .mov (QuickTime)
  • .wmv (Windows Media Video)
  • .avi
  • .mpg
  • .ogv (Ogg)
  • .3gp (3GPP)
  • .3g2 (3GPP2)

Tutorial: Running PHP as a CGI

With the recent release of PHP 5.6.17, we wanted to remind customers how to use a legacy version of PHP. If you need to continue to run PHP 5.3, you may run PHP as a CGI. See below for instructions that apply to your hosting account type:

- Shared Hosting Accounts Created Before June 1, 2011
- Most VPS Accounts and Dedicated Servers

- Shared Hosting Accounts
- VPS Accounts and Dedicated Servers with FastCGI

Shared Hosting Accounts Created Before June 1, 2011,
VPS Accounts, and Dedicated Servers

With System CGI Enabled

Add the following lines to your web directory's .htaccess file:

AddType application/x-httpd-php53 .php
Action application/x-httpd-php53 /cgi-sys/php53.cgi

Any custom PHP settings that were previously set in .htaccess will need to be ported to a php.ini located in the same directory as the php53.cgi file. The syntax for setting custom PHP settings in the php.ini file requires that the string "php_value" or "php_flag" is removed. Instead an equals sign is placed after the settings attribute and before the desired value The following chart illustrtes some common custom PHP settings and the new syntax required:
.htaccess Syntaxphp.ini Syntax
php_value memory_limit 64Mmemory_limit = 64M
php_flag allow_url_fopen onallow_url_fopen = on
php_value upload_max_filesize 64Mupload_max_filesize = 64M
php_value post_max_size 64Mpost_max_size = 64M
php_flag register_globals offregister_globals = off
php_flag magic_quotes_gpc 0magic_quotes_gpc = off


Without System CGI

Place a copy of php53.cgi in your domain's cgi-bin directory:

  1. Connect to your account via SSH and copy the CGI version of PHP into your own cgi-bin directory with the following command:
    cp /usr/www/cgi-bin/php53.cgi ~/public_html/cgi-bin/
    (Note that this command may need to be changed if the domain name's cgi-bin has been mapped to a different directory via the ACC.)
  2. Create a .htaccess file in the directory where your PHP files reside, and add these lines:
    AddType application/x-httpd-php53 .php
    Action application/x-httpd-php53 /cgi-bin/php53.cgi

Any custom PHP settings that were previously set in .htaccess will need to be ported to a php.ini located in the same directory as the php53.cgi file. The syntax for setting custom PHP settings in the php.ini file requires that the string "php_value" or "php_flag" is removed. Instead an equals sign is placed after the settings attribute and before the desired value The following chart illustrtes some common custom PHP settings and the new syntax required:
.htaccess Syntaxphp.ini Syntax
php_value memory_limit 64Mmemory_limit = 64M
php_flag allow_url_fopen onallow_url_fopen = on
php_value upload_max_filesize 64Mupload_max_filesize = 64M
php_value post_max_size 64Mpost_max_size = 64M
php_flag register_globals offregister_globals = off
php_value magic_quotes_gpc 0magic_quotes_gpc = off


Using PHP-CGIWrap

Place a copy of php53.cgi in your top-level cgi-bin directory:

  1. Connect to your account via SSH and copy the CGI version of PHP into your own cgi-bin directory with the following command:
    cp /usr/www/cgi-bin/php53.cgi ~/public_html/cgi-bin/
  2. Create a .htaccess file in the directory where your PHP files reside, and add these lines:
    AddType application/x-httpd-php53 .php
    Action application/x-httpd-php53 /cgi-sys/php-cgiwrap/USERNAME/php53.cgi

Replace USERNAME with your pair Networks account username.

Shared Hosting Accounts Created After June 1, 2011

Using FastCGI

  1. Create a php53_wrapper.sh script in your top level fcgi-bin directory, with the following script contents:
    #!/bin/sh
    exec /usr/www/cgi-bin/php53.cgi
  2. You'll need to make the script executable with the following command:
    chmod 700 $HOME/public_html/fcgi-bin/php53_wrapper.sh
  3. Create a .htaccess file in the directory where your PHP files reside, and add these lines:
    AddType application/x-httpd-php53 .php
    Action application/x-httpd-php53 /fcgi-bin/php53_wrapper.sh
 
     
 

Connect with pair

  • pair facebook
  • pair twitter
  • pair google plus
  • pair blog
 
     
     
 

Unsubscribe at insider.pair.com
Contact us at insider@pair.com

Follow pairnetworks on Twitter

 

Copyright 2016 pair Networks, Inc. All rights reserved.
pair Networks, Inc. 2403 Sidney Street, Suite 210, Pittsburgh, PA 15203
.