Announcement

Collapse
No announcement yet.

PHP Manager Question

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • PHP Manager Question

    PHP Manager Question
    Hostking | Since 2013 | Web Hosting | WordPress Web Hosting

  • #2
    Hi Guys,

    Quick question around PHP Manager. I have customers that can:

    1. Add their own php.ini in their www folder and when loading phpinfo file I can see that it actually looks at this file. Any way to disable this?
    2. Clients can disable within PHP Manager suhosin. Any way to not allow them to disable this aswell by unchecking it in PHP Manager?

    Thanks
    Hostking | Since 2013 | Web Hosting | WordPress Web Hosting

    Comment


    • #3
      Any ideas?
      Hostking | Since 2013 | Web Hosting | WordPress Web Hosting

      Comment


      • #4
        1. It depends what you are using (control panel/suPHP or mod_fcgid)
        Basically -- you need to disable all of those parameters:
        SuPHP_ConfigPath, PHPRC, PHP_INI_SCAN_DIR

        2. For now you cannot force any module to be used. Also, suhoshin does not work correctly on php5.4 and up.

        Comment


        • #5
          Hi,

          Im trying to restrict clients fr om not using their own php.ini files but able to use php 5.3, php 5.4 or php5.5
          Im using suPHP

          When I do the leave suphp as default they can use their own php.ini and make changes.

          When I do the following:

          [handlers]
          ;Handler for php-scripts
          application/x-httpd-php5="php:/usr/bin/php"
          application/x-httpd-php54="php:/usr/bin/php"
          application/x-httpd-php55="php:/usr/bin/php"

          ;Handler for CGI-scripts
          ;x-suphp-cgi="execute:!self"

          [phprc_paths]
          ;Uncommenting these will force all requests to that handler to use the php.ini
          ;in the specified directory regardless of suPHP_ConfigPath settings.
          application/x-httpd-php5=/opt/alt/php53/etc/php.ini
          application/x-httpd-php54=/opt/alt/php54/etc/php.ini
          application/x-httpd-php55=/opt/alt/php55/etc/php.ini

          It seems to work better and php versions change via PHP selector only the php.ini always points to:

          /opt/alt/php53/etc/php.ini

          Any way to make it change php versions but also sel ect the correct php.ini linked to the /opt directory under suphp and restricting them to non other than those 3 global php.ini files.
          Thats what puzzles me a bit.
          Hostking | Since 2013 | Web Hosting | WordPress Web Hosting

          Comment

          Working...
          X