PHP LSAPI 5.0b2 feedback report

Discussion in 'Bug Reports' started by DraCoola, Nov 25, 2009.

  1. DraCoola

    DraCoola Member

    After using PHP LSAPI 5.0b2 release (http://www.litespeedtech.com/support/forum/showthread.php?t=3545 and http://www.litespeedtech.com/support/forum/showthread.php?p=17555 ), one of my user reporting error from php functions, and suddenly, disable_function on php.ini is affected to his script :

    Screenshot ---> http://img412.imageshack.us/img412/8485/afterphp.jpg


    "Warning: get_current_user() has been disabled for security reasons" was never happen before (on default LSWS php) with the same php.ini configuration.
    I am on 64 bit lsws (4.1RC2) with CENTOS 5.3, using php 5.2.11.
    FYI : Cpanel has update their MySQL version to 5.0.85 at couple hours ago.

    But.... moving that account/domain to my another Cpanel server (apache 2.2.14, default php 5.2.11, mod_suphp, MySQL 5.0.85, all are the same as my LSWS server, except for using LSWS + PHP LSAPI 5.0b2) has cured that script.
    Last edited: Nov 25, 2009
  2. mistwang

    mistwang LiteSpeed Staff

    Is that function listed in php.ini disable_function configuration?
  3. DraCoola

    DraCoola Member

    Yes it does.
    But that doesn't influence before either on the same script and the same php.ini
    So the old php has "some kind of broken" because it still can passing through disable_function configuration?

    Btw I try to put custom php.ini (without disabling get_current_user) on that user directory (on LSWS server) but still resulting the same.
    How to make LSWS to accept custom php.ini applied to per user?
    Last edited: Nov 25, 2009
  4. mistwang

    mistwang LiteSpeed Staff

    It works as expected then. :)


    You can override the php.ini in main httpd.conf <virtualhost ...> section with php_admin_value.

    Per user custom php.ini does not work by default, search for "PHPRC" if you want to use per user php.ini.
  5. mistwang

    mistwang LiteSpeed Staff

    If you configure per user php.ini, the global php.ini will be ignored for that user, so it could be a security concern for shared hosting environment as you lost the central control of php.ini.
  6. DraCoola

    DraCoola Member

    I don't really understand about "PHPRC"...
    But I perhaps need to override php.ini as per request if my user ask for that.
    So not the rest of them.
    I hope can soon find that "PHPRC" on this forum or on your wiki docs :)

    If custom php.ini for one user can override global php.ini, so that user can do anything, e.g. : walking around another user dir and my whole server with php shell?

    By the way... the other php error warning on above screenshot (except error caused by disable function) are purely caused by PHP LSAPI 5.0b2?
    Even the user has migrated and cured now to apache server, I hope you can fix that on the next b3 release :)
  7. mistwang

    mistwang LiteSpeed Staff

    No, it is not related to PHP LSAPI, but PHP internal errors.
  8. DraCoola

    DraCoola Member

    But moving that script to another server (default Cpanel, apache) with all the same software configurations, versions, kernel, and hardwares, (LSWS server on dallas, Apache server on seatle) make all of error warning are completely dissapear.

    Please suggest me on how to fix this php internal errors [​IMG]
    Last edited: Nov 25, 2009
  9. DraCoola

    DraCoola Member

  10. DraCoola

    DraCoola Member

  11. mistwang

    mistwang LiteSpeed Staff

  12. priestjim

    priestjim New Member

    When compiling against PHP 4.4.9, I get this error:

  13. mistwang

    mistwang LiteSpeed Staff

    Please use 5.0b3 for PHP 5.x only.

Share This Page