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.

php.config + new cpanel

Discussion in 'General Discussion' started by rosales, May 29, 2008.

  1. rosales

    rosales Member

    Joined:
    May 29, 2008
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Hi - The new CPanel release has been automatically installed in my VPS - all going without a hitch.

    I wanted to change some setting in the php config in WHM & in the basic mode the values are blank, while in the more advanced mode it is a much reduced list than before.
    Should it be like this?

    So where might I find the same in the server files?
    Thanks
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    I am not experiencing those same issues on a test server I am using. You may wish to run /scripts/upcp --force. If that does not resolve your issue, please submit a support ticket: http://tickets.cpanel.net/submit
     
  3. rosales

    rosales Member

    Joined:
    May 29, 2008
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Thanks David.
    Any way of doing this from within WHM?
     
  4. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Sure, go to WHM -> cPanel -> Upgrade to Latest Version and select Force a reinstall even if the system is update to date. then click the Click to Upgrade button.
     
  5. rosales

    rosales Member

    Joined:
    May 29, 2008
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Did as instructed & the php configuaration editor is the same - the values are blank in the basic mode & this is what I get in the advanced mode:

    Section Directive Info Value
    COM & .Net com.allow_dcom true **DEFAULT**, Click to Edit
    COM & .Net com.autoregister_casesensitive false **DEFAULT**, Click to Edit
    COM & .Net com.autoregister_typelib true **DEFAULT**, Click to Edit
    COM & .Net com.autoregister_verbose true **DEFAULT**, Click to Edit
    COM & .Net com.typelib_file **DEFAULT**, Click to Edit
    Core crack.default_dictionary c:\php\lib\cracklib_dict **DEFAULT**, Click to Edit
    Core fbsql.allow_persistent OffOnOn **DEFAULT**, Click to Edit
    Core fbsql.autocommit OffOnOn **DEFAULT**, Click to Edit
    Core fbsql.batchSize 1000 **DEFAULT**, Click to Edit
    Core fbsql.default_database **DEFAULT**, Click to Edit
    Core fbsql.default_database_password **DEFAULT**, Click to Edit
    Core fbsql.default_host **DEFAULT**, Click to Edit
    Core fbsql.default_password **DEFAULT**, Click to Edit
    Core fbsql.default_user _SYSTEM **DEFAULT**, Click to Edit
    Core fbsql.generate_warnings OffOnOff **DEFAULT**, Click to Edit
    Core fbsql.max_connections 128 **DEFAULT**, Click to Edit
    Core fbsql.max_links 128 **DEFAULT**, Click to Edit
    Core fbsql.max_persistent -1 **DEFAULT**, Click to Edit
    Core fbsql.max_results 128 **DEFAULT**, Click to Edit
    Core printer.default_printer **DEFAULT**, Click to Edit
    Exif exif.decode_jis_intel JIS **DEFAULT**, Click to Edit
    Exif exif.decode_jis_motorola JIS **DEFAULT**, Click to Edit
    Exif exif.decode_unicode_intel UCS-2LE **DEFAULT**, Click to Edit
    Exif exif.decode_unicode_motorola UCS-2BE **DEFAULT**, Click to Edit
    Exif exif.encode_jis **DEFAULT**, Click to Edit
    Exif exif.encode_unicode ISO-8859-15 **DEFAULT**, Click to Edit
    Multibyte String mbstring.detect_order auto **DEFAULT**, Click to Edit
    Multibyte String mbstring.encoding_translation OffOnOff **DEFAULT**, Click to Edit
    Multibyte String mbstring.func_overload 0 **DEFAULT**, Click to Edit
    Multibyte String mbstring.http_input auto **DEFAULT**, Click to Edit
    Multibyte String mbstring.http_output SJIS **DEFAULT**, Click to Edit
    Multibyte String mbstring.internal_encoding EUC-JP **DEFAULT**, Click to Edit
    Multibyte String mbstring.language Japanese **DEFAULT**, Click to Edit
    Multibyte String mbstring.substitute_character none **DEFAULT**, Click to Edit
    Verisign Payflow Pro pfpro.defaulttimeout
    Verisign Payflow Pro pfpro.proxyaddress **DEFAULT**, Click to Edit
    Verisign Payflow Pro pfpro.proxylogon **DEFAULT**, Click to Edit
    Verisign Payflow Pro pfpro.proxypassword **DEFAULT**, Click to Edit
    Verisign Payflow Pro pfpro.proxyport **DEFAULT**, Click to Edit
    Zend zend_extension
    Zend zend_extension_manager.optimizer
    Zend zend_extension_manager.optimizer_ts
    Zend zend_extension_ts
    Zend zend_optimizer.version

    Got the latest csf firewall running - might this be getting in the way?
    The sites seem to be running fine.
     
    #5 rosales, May 29, 2008
    Last edited: May 29, 2008
  6. rosales

    rosales Member

    Joined:
    May 29, 2008
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Any ideas on this David?

    This is what I've got in /usr/local/lib/php.ini - again much reduced to what I had before. And just noticed that I have another file next to it php.ini.v - see the next post

    ds.
    pfpro.defaulttimeout = 30

    ; Default proxy IP address (if required).
    ;pfpro.proxyaddress =

    ; Default proxy port.
    ;pfpro.proxyport =

    ; Default proxy logon.
    ;pfpro.proxylogon =

    ; Default proxy password.
    ;pfpro.proxypassword =

    [com]
    ; path to a file containing GUIDs, IIDs or filenames of files with TypeLibs
    ;com.typelib_file =
    ; allow Distributed-COM calls
    ;com.allow_dcom = true
    ; autoregister constants of a components typlib on com_load()
    ;com.autoregister_typelib = true
    ; register constants casesensitive
    ;com.autoregister_casesensitive = false
    ; show warnings on duplicate constat registrations
    ;com.autoregister_verbose = true

    [Printer]
    ;printer.default_printer = ""

    [mbstring]
    ; language for internal character representation.
    ;mbstring.language = Japanese

    ; internal/script encoding.
    ; Some encoding cannot work as internal encoding.
    ; (e.g. SJIS, BIG5, ISO-2022-*)
    ;mbstring.internal_encoding = EUC-JP

    ; http input encoding.
    ;mbstring.http_input = auto

    ; http output encoding. mb_output_handler must be
    ; registered as output buffer to function
    ;mbstring.http_output = SJIS

    ; enable automatic encoding translation accoding to
    ; mbstring.internal_encoding setting. Input chars are
    ; converted to internal encoding by setting this to On.
    ; Note: Do _not_ use automatic encoding translation for
    ; portable libs/applications.
    ;mbstring.encoding_translation = Off

    ; automatic encoding detection order.
    ; auto means
    ;mbstring.detect_order = auto

    ; substitute_character used when character cannot be converted
    ; one from another
    ;mbstring.substitute_character = none;

    ; overload(replace) single byte functions by mbstring functions.
    ; mail(), ereg(), etc are overloaded by mb_send_mail(), mb_ereg(),
    ; etc. Possible values are 0,1,2,4 or combination of them.
    ; For example, 7 for overload everything.
    ; 0: No overload
    ; 1: Overload mail() function
    ; 2: Overload str*() functions
    ; 4: Overload ereg*() functions
    ;mbstring.func_overload = 0

    [FrontBase]
    ;fbsql.allow_persistent = On
    ;fbsql.autocommit = On
    ;fbsql.default_database =
    ;fbsql.default_database_password =
    ;fbsql.default_host =
    ;fbsql.default_password =
    ;fbsql.default_user = "_SYSTEM"
    ;fbsql.generate_warnings = Off
    ;fbsql.max_connections = 128
    ;fbsql.max_links = 128
    ;fbsql.max_persistent = -1
    ;fbsql.max_results = 128
    ;fbsql.batchSize = 1000

    [Crack]
    ; Modify the setting below to match the directory location of the cracklib
    ; dictionary files. Include the base filename, but not the file extension.
    ; crack.default_dictionary = "c:\php\lib\cracklib_dict"

    [exif]
    ; Exif UNICODE user comments are handled as UCS-2BE/UCS-2LE and JIS as JIS.
    ; With mbstring support this will automatically be converted into the encoding
    ; given by corresponding encode setting. When empty mbstring.internal_encoding
    ; is used. For the decode settings you can distinguish between motorola and
    ; intel byte order. A decode setting cannot be empty.
    ;exif.encode_unicode = ISO-8859-15
    ;exif.decode_unicode_motorola = UCS-2BE
    ;exif.decode_unicode_intel = UCS-2LE
    ;exif.encode_jis =
    ;exif.decode_jis_motorola = JIS
    ;exif.decode_jis_intel = JIS

    ; Local Variables:
    ; tab-width: 4
    ; End:


    ; ionCube Loader Configuration
    [Ioncube]

    [Zend]
    zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.3
    zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3
    zend_optimizer.version=3.3.3


    zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
    zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so
     
    #6 rosales, May 29, 2008
    Last edited: May 29, 2008
  7. rosales

    rosales Member

    Joined:
    May 29, 2008
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    This is the beginning of /usr/local/lib/php.ini.v - see the end of iit.
    The remainder looks like what my old php.ini file looked like.

    head 1.11;
    access;
    symbols;
    locks
    root:1.11; strict;
    comment @# @;


    1.11
    date 2008.05.14.06.37.08; author root; state Exp;
    branches;
    next 1.10;

    1.10
    date 2008.05.01.09.21.12; author root; state Exp;
    branches;
    next 1.9;

    1.9
    date 2008.05.01.09.19.43; author root; state Exp;
    branches;
    next 1.8;

    1.8
    date 2008.05.01.09.19.43; author root; state Exp;
    branches;
    next 1.7;

    1.7
    date 2008.04.30.22.06.19; author root; state Exp;
    branches;
    next 1.6;

    1.6
    date 2008.04.30.22.06.19; author root; state Exp;
    branches;
    next ;


    desc
    @Init by [bg installer] /scripts/easyapache
    @


    1.11
    log
    @Modified by /scripts/updatephpconf PRE cPScript::PHPINI::set_directives.
    @
    text
    @ds.
    pfpro.defaulttimeout = 30

    ; Default proxy IP address (if required).
    ;pfpro.proxyaddress =

    ; Default proxy port.
    ;pfpro.proxyport =

    ; Default proxy logon.
    ;pfpro.proxylogon =

    ; Default proxy password.
    ;pfpro.proxypassword =

    [com]
    ; path to a file containing GUIDs, IIDs or filenames of files with TypeLibs
    ;com.typelib_file =
    ; allow Distributed-COM calls
    ;com.allow_dcom = true
    ; autoregister constants of a components typlib on com_load()
    ;com.autoregister_typelib = true
    ; register constants casesensitive
    ;com.autoregister_casesensitive = false
    ; show warnings on duplicate constat registrations
    ;com.autoregister_verbose = true

    [Printer]
    ;printer.default_printer = ""

    [mbstring]
    ; language for internal character representation.
    ;mbstring.language = Japanese

    ; internal/script encoding.
    ; Some encoding cannot work as internal encoding.
    ; (e.g. SJIS, BIG5, ISO-2022-*)
    ;mbstring.internal_encoding = EUC-JP

    ; http input encoding.
    ;mbstring.http_input = auto

    ; http output encoding. mb_output_handler must be
    ; registered as output buffer to function
    ;mbstring.http_output = SJIS

    ; enable automatic encoding translation accoding to
    ; mbstring.internal_encoding setting. Input chars are
    ; converted to internal encoding by setting this to On.
    ; Note: Do _not_ use automatic encoding translation for
    ; portable libs/applications.
    ;mbstring.encoding_translation = Off

    ; automatic encoding detection order.
    ; auto means
    ;mbstring.detect_order = auto

    ; substitute_character used when character cannot be converted
    ; one from another
    ;mbstring.substitute_character = none;

    ; overload(replace) single byte functions by mbstring functions.
    ; mail(), ereg(), etc are overloaded by mb_send_mail(), mb_ereg(),
    ; etc. Possible values are 0,1,2,4 or combination of them.
    ; For example, 7 for overload everything.
    ; 0: No overload
    ; 1: Overload mail() function
    ; 2: Overload str*() functions
    ; 4: Overload ereg*() functions
    ;mbstring.func_overload = 0

    [FrontBase]
    ;fbsql.allow_persistent = On
    ;fbsql.autocommit = On
    ;fbsql.default_database =
    ;fbsql.default_database_password =
    ;fbsql.default_host =
    ;fbsql.default_password =
    ;fbsql.default_user = "_SYSTEM"
    ;fbsql.generate_warnings = Off
    ;fbsql.max_connections = 128
    ;fbsql.max_links = 128
    ;fbsql.max_persistent = -1
    ;fbsql.max_results = 128
    ;fbsql.batchSize = 1000

    [Crack]
    ; Modify the setting below to match the directory location of the cracklib
    ; dictionary files. Include the base filename, but not the file extension.
    ; crack.default_dictionary = "c:\php\lib\cracklib_dict"

    [exif]
    ; Exif UNICODE user comments are handled as UCS-2BE/UCS-2LE and JIS as JIS.
    ; With mbstring support this will automatically be converted into the encoding
    ; given by corresponding encode setting. When empty mbstring.internal_encoding
    ; is used. For the decode settings you can distinguish between motorola and
    ; intel byte order. A decode setting cannot be empty.
    ;exif.encode_unicode = ISO-8859-15
    ;exif.decode_unicode_motorola = UCS-2BE
    ;exif.decode_unicode_intel = UCS-2LE
    ;exif.encode_jis =
    ;exif.decode_jis_motorola = JIS
    ;exif.decode_jis_intel = JIS

    ; Local Variables:
    ; tab-width: 4
    ; End:


    ; ionCube Loader Configuration
    [Ioncube]

    [Zend]
    zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.3
    zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3
    zend_optimizer.version=3.3.3


    zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
    zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so@


    1.10
    log
    @Modified by /usr/local/cpanel/whostmgr/bin/whostmgr POST Cpanel::PHPINI::set_directives.
    @
    text
    @d1 1
    a1 1008
    PHP:

    ;;;;;;;;;;;
    ; WARNING ;
    ;;;;;;;;;;;
    ; This is the default settings file for new PHP installations.
    ; By default, PHP installs itself with a configuration suitable for
    ; development purposes, and *NOT* for production purposes.
    ; For several security-oriented considerations that should be taken
    ; before going online with your site, please consult php.ini-recommended
    ; and http://php.net/manual/en/security.php.


    ;;;;;;;;;;;;;;;;;;;
    ; About this file ;
    ;;;;;;;;;;;;;;;;;;;
    ; This file controls many aspects of PHP's behavior.  In order for PHP to
    ; read it, it must be named 'php.ini'.  PHP looks for it in the current
    ; working directory, in the path designated by the environment variable
    ; PHPRC, and in the path that was defined in compile time (in that order).
    ; Under Windows, the compile-time path is the Windows directory.  The
    ; path in which the php.ini file is looked for can be overridden using
    ; the -c argument in command line mode.
    ;
    ; The syntax of the file is extremely simple.  Whitespace and Lines
    ; beginning with a semicolon are silently ignored (as you probably guessed).
    ; Section headers (e.g. [Foo]) are also silently ignored, even though
    ; they might mean something in the future.
    ;
    ; Directives are specified using the following syntax:
    ; directive = value
    ; Directive names are *case sensitive* - foo=bar is different from FOO=bar.
    ;
    ; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one
    ; of the INI constants (On, Off, True, False, Yes, No and None) or an expression
    ; (e.g. E_ALL & ~E_NOTICE), or a quoted string ("foo").
    ;
    ; Expressions in the INI file are limited to bitwise operators and parentheses:
    ; |        bitwise OR
    ; &        bitwise AND
    ; ~        bitwise NOT
    ; !        boolean NOT
    ;
    ; Boolean flags can be turned on using the values 1, On, True or Yes.
    ; They can be turned off using the values 0, Off, False or No.
    ;
    ; An empty string can be denoted by simply not writing anything after the equal
    ; sign, or by using the None keyword:
    ;
    ;  foo =         ; sets foo to an empty string
    ;  foo = none    ; sets foo to an empty string
    ;  foo = "none"  ; sets foo to the string 'none'
    ;
    ; If you use constants in your value, and these constants belong to a
    ; dynamically loaded extension (either a PHP extension or a Zend extension),
    ; you may only use these constants *after* the line that loads the extension.
    ;
    ; All the values in the php.ini-dist file correspond to the builtin
    ; defaults (that is, if no php.ini is used, or if you delete these lines,
    ; the builtin defaults will be identical).


    ;;;;;;;;;;;;;;;;;;;;
    ; Language Options ;
    ;;;;;;;;;;;;;;;;;;;;

    ; Enable the PHP scripting language engine under Apache.
    engine = On

    ; Allow the <? tag.  Otherwise, only <?php and <scripttags are recognized.  
    NOTEUsing short tags should be avoided when developing applications or
    libraries that are meant for redistribution, or deployment on PHP
    servers which are not under your controlbecause short tags may not
    be supported on the targ.....


    [
    B][U]And finishes:[/U][/B]

    [
    Ingres II]
    Allow or prevent persistent links.
    ingres.allow_persistent On

    Maximum number of persistent links.  -1 means no limit.
    ingres.max_persistent = -1

    Maximum number of linksincluding persistents.  -1 means no limit.
    ingres.max_links = -1

    ; Default database (format: [node_id::]dbname[/srv_class]).
    ingres.default_database =

    ; Default 
    user.
    ingres.default_user =

    ; Default 
    password.
    ingres.default_password =

    [
    Verisign Payflow Pro]
    ; Default 
    Payflow Pro server.
    pfpro.defaulthost "test-payflow.verisign.com"

    ; Default port to connect to.
    pfpro.defaultport 443

    ; Default timeout in seconds.
    a111 2
    zend_extension 
    "/usr/local/ioncube/ioncube_loader_lin_5.2.so"
    zend_extension "/usr/local/Zend/lib/ZendExtensionManager.so"
    d114 4
    a117 3
    zend_extension_manager
    .optimizer "/usr/local/Zend/lib/Optimizer-3.3.3"
    zend_extension_manager.optimizer_ts "/usr/local/Zend/lib/Optimizer_TS-3.3.3"
    zend_optimizer.version 3.3.3
    d119 2
    a120 1
    zend_extension_ts 
    "/usr/local/Zend/lib/ZendExtensionManager_TS.so"
    @


    1.9
    log
    @Modified by /usr/local/cpanel/whostmgr/bin/whostmgr POST Cpanel::PHPINI::set_directives.
    @
    text
    @d836 1
    a836 1
    session
    .auto_start 1
    @


    1.8
    log
    @Modified by /usr/local/cpanel/whostmgr/bin/whostmgr PRE Cpanel::PHPINI::set_directives.
    @
    text
    @d836 1
    a836 1
    session
    .auto_start 0
    d1119 2
    a1120 1
    zend_extension
    ="/usr/local/ioncube/ioncube_loader_lin_5.2.so"
    d1123 3
    a1125 3
    zend_extension_manager
    .optimizer=/usr/local/Zend/lib/Optimizer-3.3.3
    zend_extension_manager
    .optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3
    zend_optimizer
    .version=3.3.3
    d1127 1
    a1127 2
    zend_extension
    =/usr/local/Zend/lib/ZendExtensionManager.so
    zend_extension_ts
    =/usr/local/Zend/lib/ZendExtensionManager_TS.so
    @


    1.7
    log
    @Modified by /usr/local/cpanel/whostmgr/bin/whostmgr POST Cpanel::PHPINI::set_directives.
    @
    text
    @d1117 4
    @


    1.6
    log
    @Modified by /usr/local/cpanel/whostmgr/bin/whostmgr PRE Cpanel::PHPINI::set_directives.
    @
    text
    @d230 1
    a230 1
    max_execution_time 
    30     
    d232 1
    a232 1
    memory_limit 
    32M      
    d813 1
    a813 1
    ;     session.save_path "N;/path"
    @
     
    #7 rosales, May 29, 2008
    Last edited: May 29, 2008
  8. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,460
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    The PHP Configuration Editor will only display directives that:

    1. Exist in php.ini; and
    2. Are not commented out in php.ini

    Thus, it will display this:

    session.save_path = /tmp

    But not this:

    ; session.save_path = /tmp

    Likewise if session.save_path doesn't exist at all in php.ini, it will not display.
     
  9. rosales

    rosales Member

    Joined:
    May 29, 2008
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Thanks - what should I do?
    This has occurred directly from the CPanel update.

    As you can see above in the php.ini, there's not a lot.
    And why should my sites be working fine - using php - Moodle, Joomla..

    Maybe get rid of the ';' in php.ini.v & delete what's in php.ini & copy over from php.ini.v to php.ini?
    But if everything is working fine I don't want to screw it all up.
     
    #9 rosales, May 29, 2008
    Last edited: May 29, 2008
  10. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,460
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    PHP has hard coded defaults for anything not explicitly set in php.ini.

    You can restore the missing entries using /usr/local/cpanel/3rdparty/etc/php.ini.dist as a source file.
     
  11. rosales

    rosales Member

    Joined:
    May 29, 2008
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Thanks Kenneth.

    The admins restored a backup for me.
     
Loading...

Share This Page