Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Dec 2004
    Posts
    7

    Default How to avoid a custom php extension be overwritten?

    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. #2
    cPanel Partner NOC cPanel Partner NOC Badge Zishan's Avatar
    Join Date
    Aug 2005
    Posts
    104

    Default

    /usr/local/apache/conf/php.conf has a note at top stating:

    This file was automatically generated by the Cpanel PHP Configuration system.

    Manual edits of this file will be lost when Apache is updated.
    Which extension you are adding ? You may also look at Custom Configure it may help you.

  3. #3
    Member
    Join Date
    Dec 2004
    Posts
    7

    Default

    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

Similar Threads & Tags
Similar threads

  1. bytesCode PHP Encoder next request for cPanel PHP extension build in
    By RodrigoGregorio in forum Feature Requests for cPanel/WHM
    Replies: 0
    Last Post: 11-12-2010, 04:30 PM
  2. Replies: 4
    Last Post: 01-11-2010, 08:18 AM
  3. Squirrelmail config.php overwritten
    By keithc in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 09-25-2007, 05:34 PM
  4. custom entries in awstats being overwritten
    By forlinuxsupport in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 02-23-2007, 08:02 AM
  5. Replies: 0
    Last Post: 01-30-2006, 06:34 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube