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/8.1/username|fcgi://localhost" .php
The word "username" must be replaced with your actual user name. -
The "8.1" in the example above can be replaced with one of the following versions:
- 5.3 (not recommended - EOL)
- 7.0 (not recommended - EOL)
- 7.1 (not recommended - EOL)
- 7.2 (not recommended - EOL)
- 7.3 (not recommended - EOL)
- 7.4 (not recommended - EOL)
- 8.0
- 8.1
- 8.2
- 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:Thursday, 06-Jul-2023 11:40:03 EDT
© Copyright 2006-2021
Public Access Networks Corporation