Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2004
    Posts
    1,226

    different php.ini's?

    hello

    is it possible to run 2 different php.ini configs in the same server?

    i know that cpanel uses a different php.ini then the other sites (but it use other httpd port too)

    what i'd like to know is to split my clients accounts into "trustable" and "not trustable" and put php.ini more restrictions to the "not trustable"s one

    that's because ONE of my clients (and it seens just him) need PHP exec function (i checked the script and it doesn't do anything harmful), and i'm not willing to loose him...

    thanks

  2. #2
    Join Date
    May 2003
    Posts
    472
    No you cannot run two different php.ini's . That would essentially be running two web servers on one server, which would work as they would both try to bind to port 80.

    You could find a cheaper server for like 80-100/month and put the clients that need special functions on there, or you could just enable them globally.

    BTW - you could always use the safe_mode_exec_dir setting in php.ini to set which directories you would like the special functions to be allowed to be executed in. See: http://us2.php.net/features.safe-mode

  3. #3
    Join Date
    Mar 2003
    Location
    California USA
    Posts
    13,294
    BTW - you could always use the safe_mode_exec_dir setting in php.ini to set which directories you would like the special functions to be allowed to be executed in. See: http://us2.php.net/features.safe-mode
    that is if he is using safe mode
    Steven Ciaburri | Industry's Best Server Management - Rack911.com
    Software Auditing - 400+ Vulnerabilities Found - Quote @ https://www.RACK911Labs.com
    Fully Managed Dedicated Servers (Las Vegas, New York City, & Amsterdam) (AS62710)
    FreeBSD & Linux Server Management, Security Auditing, Server Optimization, PCI Compliance

  4. #4
    Join Date
    May 2003
    Posts
    475
    Can we enable the php functions that have been disabled in php.ini? How to do that in httpd.conf?
    Dixiy.com - Professional Web Hosting Provider since 2002
    AutoCreation.net - Automation Solution for cPanel Hosting! + Illegal File Scanner
    WHDir.net - Your complete Web Hosting Directory with Hosting/Server Tutorials

Posting Permissions

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