Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

How to avoid a custom php extension be overwritten?

Discussion in 'General Discussion' started by mapg, Feb 19, 2009.

  1. mapg

    mapg Member

    Joined:
    Dec 9, 2004
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    151
    Hi all,

    I got a custom php extension added in ...

    /usr/local/apache/conf/php.conf

    And everytime I use EasyApache, this extension is overwritten and added the common php extensions but not mine certainly.

    I would like to retouch the template of this (or anything) to avoid this overwritting.

    Is it possible?

    Note: I do not want to add a custom extension in the mime-types of Cpanel because I do not want to have .htaccess in the main user folder.

    Thank you very much in advance.

    Mapg
     
  2. Zishan

    Zishan Well-Known Member

    Joined:
    Aug 6, 2005
    Messages:
    104
    Likes Received:
    1
    Trophy Points:
    168
    /usr/local/apache/conf/php.conf has a note at top stating:

    Which extension you are adding ? You may also look at Custom Configure it may help you.
     
  3. mapg

    mapg Member

    Joined:
    Dec 9, 2004
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    151
    Thank you for your reply.

    I solved the problem adding in ...

    Main >> Service Configuration >> Apache Configuration >> Pre VirtualHost Include

    The following ...

    AddType application/x-httpd-php .my_custom_php_extension

    And other one for Perl as follow ...

    AddHandler cgi-script .my_custom_perl_extension

    Thank for your help

    Mapg
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice