The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

auto_prepend_file and auto_append_file

Discussion in 'General Discussion' started by lukaschemp, Aug 21, 2008.

  1. lukaschemp

    lukaschemp Active Member

    Joined:
    Nov 6, 2006
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    I'd like to put

    auto_prepend_file /usr/share/php/top.php
    auto_append_file /usr/share/php/bottom.php

    for all accounts where should i put it in httpd.conf?
     
  2. silversurfer

    silversurfer Well-Known Member

    Joined:
    Dec 29, 2002
    Messages:
    274
    Likes Received:
    0
    Trophy Points:
    18
    Hi

    You could put it in /usr/local/lib/php.ini unless you intend to enable selectively for some and not all. Then you would place them in the various vhost provided you are running PHP as an Apache module. If you run them as CGI, your only option is the php.ini:

    <IfModule mod_php5.c>
    php_admin_value auto_prepend_file /usr/share/php/top.php
    php_admin_value auto_append_file /usr/share/php/bottom.php
    </IfModule>
     

Share This Page