Using PHP on Panix

PHP version
To select a particular version of PHP, a line like this must be added to .htaccess:
AddHandler "proxy:unix:/run/php/7.1/username|fcgi://localhost" .php
The word "username" must be replaced with your actual user name.
The "7.1" in the example above can be replaced with one of the following versions:
  • 5.3
  • 7.0
  • 7.1
Using the word "latest" in place of a version number will cause the latest installed version of PHP to be used. When we upgrade PHP, your site will immediately begin using that new version of PHP. Note that some packages like Wordpress or Drupal are sensitive to PHP upgrades so in many cases, it's better to select a particular version.
Session files
If you need to use PHP session files, you must store these files within your web site.
You need to define the session directory to be under your web space and read/write only to your username. Please DO NOT USE /tmp or any subdirectory of /tmp for these files. It exists separately on each of our web server hosts, so using it is guaranteed to fail sometimes.


Last Modified:Monday, 11-Dec-2017 16:21:13 EST
© Copyright 2006-2011 Public Access Networks Corporation