NATS3 Apache Configuration

From TMM Wiki
Revision as of 12:53, 8 October 2010 by TMMStephenY (talk | contribs) (moved Apache Configuration to NATS3 Apache Configuration)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
NATS 3
Setup
Apache Configuration
MySQL Settings
Creating Admin Accounts
File Upload Setup
Link Domain
NATS3 Files and Directories
NATS Go Live Checklist
Moving NATS3

Executing PHP Pages

Find the following line in your Apache httpd.conf:

AddType application/x-httpd-php

Add the following extensions to the end of the line above:

.php .php3 .html .htm

FollowSymLinks

If your linkcodes go to your NATS install instead of your site, ensure you have the following two lines in your Apache configuration:

<Directory /home/www>
	Options FollowSymLinks
	AllowOverride All
</Directory>

The lines should be in a global virtual host configuration. For example:

<VirtualHost *:80>
        ServerAdmin webmaster@site.com
        DocumentRoot /home/www
        ServerName site.com
        ServerAlias *.site.com
        CustomLog /dev/null common
        <Directory /home/www>
                Options FollowSymLinks
                AllowOverride All
        </Directory>
</VirtualHost>

Zend Optimizer

To use Apache 2.0 with Zend Optimizer and NATS, change all of the lines starting with SetHandler in your nats/www/.htaccess. Replace the SetHandler with ForceType. For example:

Old

<Files ttrack>
SetHandler application/x-httpd-php
</Files>

New

<Files ttrack>
ForceType application/x-httpd-php
</Files>

Also add "AcceptPathInfo On" to the virtual host configuration in Apache's httpd.conf.

Apache 2

Most of our .htaccess files have the following lines:

<Files track>
SetHandler application/x-httpd-php
</Files>

Apache 2 requires you change the lines above to the lines below:

<Files track>
SetOutputFilter PHP
SetInputFilter PHP
</Files>

Common Errors

I see signup.php?nats= in my links; Whats wrong?

PHP parsing isn't working. Follow the instructions above for Executing PHP Pages.

See Also