Results 1 to 18 of 18
  1. #1
    Join Date
    Sep 2008
    Location
    NL,IR
    Posts
    1,491

    which php function?

    hello. i finde that in some cms it show my server os version.
    and my hdd .
    how can i disable them?
    which my users cant see my server os and my hdd ?

    i think that if i disable ini_get my users cant find which disable function i have.
    and uname for os. but what about hdd?
    my user can see server hdd status.

  2. #2
    Join Date
    Sep 2008
    Location
    NL,IR
    Posts
    1,491
    i find that it show my disable function. how can i disable to show my dsiable funstion on cms?
    i mean which php function can show disable_function

  3. #3
    I agree with nimafire that you will have to disable certain feature in php.ini file to resolve this issue.

  4. #4
    Join Date
    Jul 2009
    Location
    Charlotte, NC
    Posts
    42
    Add the following to your httpd.conf to disable your server signature:
    ServerTokens Prod
    ServerSignature Off
    ServerSignature Off tells Apache not to display the server version.

    ServerTokens Prod
    tells Apache to only list "Apache" in the header.

  5. #5
    Join Date
    Sep 2008
    Location
    NL,IR
    Posts
    1,491
    hello. no it doesent work.its my httpd.conf:



    # /var/cpanel/templates/apache2/vhost.local #
    # /var/cpanel/templates/apache2/ssl_vhost.default #
    # /var/cpanel/templates/apache2/ssl_vhost.local #
    # #
    # Templates with the '.local' extension will be preferred over templates with the '.default' extension. #
    # The only template updated by the apache_conf_distiller is main.default. #
    # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #


    Include "/usr/local/apache/conf/includes/pre_main_global.conf"
    Include "/usr/local/apache/conf/includes/pre_main_2.conf"

    ServerTokens Prod
    ServerSignature Off

  6. #6
    Join Date
    Sep 2008
    Location
    NL,IR
    Posts
    1,491
    no one have this probelm?

  7. #7
    Join Date
    Sep 2008
    Location
    NL,IR
    Posts
    1,491
    so i must disable ini_get to disable , show disable function on some cms?

  8. #8
    Join Date
    May 2009
    Location
    SLASH ROOT
    Posts
    867
    The steps mentioned by "eeg3" should work. Hope you have restarted Apache to reflect the changes.
    █ WebHostRepo.com
    █ Linux | Windows
    | VPS | Cloud
    █ Outsourced Technical Support since 2009
    █ sales@webhostrepo.com

  9. #9
    Join Date
    Jun 2007
    Location
    San Francisco
    Posts
    150
    It has to be done on httpd.conf, not php.ini unless you disable phpinfo()

  10. #10
    Join Date
    Sep 2008
    Location
    NL,IR
    Posts
    1,491
    its my httpd.conf:



    # /var/cpanel/templates/apache2/vhost.local #
    # /var/cpanel/templates/apache2/ssl_vhost.default #
    # /var/cpanel/templates/apache2/ssl_vhost.local #
    # #
    # Templates with the '.local' extension will be preferred over templates with the '.default' extension. #
    # The only template updated by the apache_conf_distiller is main.default. #
    # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #


    Include "/usr/local/apache/conf/includes/pre_main_global.conf"
    Include "/usr/local/apache/conf/includes/pre_main_2.conf"

    ServerTokens Prod
    ServerSignature Off

  11. #11
    Join Date
    Sep 2007
    Posts
    815
    Try disabling phpinfo from your php.ini disable function
    All things work together for the good of those who love God - Romans 8:28

  12. #12
    Join Date
    Sep 2008
    Location
    NL,IR
    Posts
    1,491
    hello
    phpinfo only disable phpinfo like version , lib and ...
    not disable_function

    tnx

  13. #13
    Join Date
    Sep 2007
    Posts
    815
    hello
    phpinfo only disable phpinfo like version , lib and ...
    not disable_function

    tnx
    Put phpinfo inside the disable_functions in PHP configuration and when someone do a phpinfo in your server, the php information will not be shown.

    Or go to this site: http://www.ducea.com/2006/06/15/apac...tware-version/
    All things work together for the good of those who love God - Romans 8:28

  14. #14
    Join Date
    Sep 2008
    Location
    NL,IR
    Posts
    1,491
    yes i want to do it.
    i mean http://www.ducea.com/2006/06/15/apac...tware-version/
    but after i add it.nothing do.
    i have paste you my httpd.conf on my last post

  15. #15
    Join Date
    Sep 2008
    Location
    NL,IR
    Posts
    1,491
    ok. i do it and set ServerSignature Off
    but i can see my disable_function list on datalife cms admin page which show

    disable function on your server:

  16. #16
    Join Date
    Sep 2007
    Posts
    815
    you mean it shows the PHP disable_function list? If yes, you can try to turn of phpinfo itself and include phpinfo in your disable_function list
    All things work together for the good of those who love God - Romans 8:28

  17. #17
    Join Date
    Sep 2008
    Location
    NL,IR
    Posts
    1,491
    yes. it show which function i have add on disable_function on php.ini
    no.
    phpinfo cant do it.

  18. #18
    Join Date
    Sep 2008
    Location
    NL,IR
    Posts
    1,491
    and ... ?
    can an one help me? i am waiting for you

Similar Threads

  1. what is the function of ....
    By rs2host in forum Hosting Security and Technology
    Replies: 4
    Last Post: 08-19-2008, 01:28 AM
  2. Replies: 1
    Last Post: 03-15-2006, 02:19 AM
  3. Replies: 1
    Last Post: 10-05-2003, 01:23 PM
  4. PM function
    By hooter in forum WHT Announcements, Feedback and Questions
    Replies: 2
    Last Post: 07-04-2003, 01:10 AM
  5. Need Help With Function
    By CChard in forum Programming Discussion
    Replies: 3
    Last Post: 02-23-2003, 10:23 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •