The Official PostNuke Installation & Getting Started Guide: Revision 9939 / Preview
Prev |  | Next

# Chapter 22. APPENDIX D: Configure PHP

You need to ensure that your site has a working installation of PHP (version 4.0.1pl2 or higher) compiled with MySQL support. PHP is the language in which PostNuke is developed. Without PHP support, the web server would not be able to parse the PHP files and your site would not work.

To determine which version of PHP you've got installed, or if it is installed at all, create a file called "test.php" in your web directory. The file should contain the following:

--- CUT HERE ---

--- CUT HERE ---

Point your browser to this page (for example, http://www.yoursite.com/test.php). The version of PHP will be displayed at the top of the page. If it is earlier than 4.0.1pl2, you MUST upgrade or PostNuke will not function. More recent versions of PHP have significant security and functionality enhancements.

PHP also requires that a few settings exist in php.ini (usually /etc/php.ini for *NIX, or C:\Windows\PHP.ini for Windows). These settings are usually correct within php.ini by default, but please check to make sure your php.ini has the following entries to ensure proper operation:

--- CUT HERE ---

    	include_path='.'
    	magic_quotes_gpc = Off
    	register_globals = On
    	short_open_tag  = On
    	session.auto_start = 0
    	debugger.enabled = False

--- CUT HERE ---

The following line in php.ini must be commented out or deleted, if it exists, or PostNuke will not function.

    session.save_handler = php

PLEASE NOTE: If you make any changes to your php.ini file, it is necessary to restart your webserver so that the changes are incorporated into the system. Restart your webserver from the command line (for example, "`httpd restart`"), or restart your computer.

Prev | Home | Next
APPENDIX C: Configure the webserver |  | APPENDIX E: Enable GZIP compression in php.ini