php.ini - openlitespeed [7.1.9]

Discussion in 'General OpenLiteSpeed Discussion' started by Vanhels, Sep 22, 2017.

  1. Vanhels

    Vanhels New Member

    Hi, I have installed php 7.1.9, and everything works fine, now I make changes in the php.ini and restart openlitespeed and the changes do not execute them,

    phpinfo.php:

    Loaded Configuration File /usr/local/lsws/lsphp71/etc/php.ini

    Example:

    upload_max_filesize = 100M ----> No Works.
     
  2. lswave

    lswave Member

    can you give the URL to phpinfo.php ?
     
  3. Vanhels

    Vanhels New Member

  4. lswave

    lswave Member

    any output ?
    #grep upload_max_filesize /usr/local/lsws/lsphp71/etc/php.d/*.ini
     
  5. Vanhels

    Vanhels New Member

    # grep upload_max_filesize /usr/local/lsws/lsphp71/etc/php.d/*.ini --> Nothing

    # grep upload_max_filesize /usr/local/lsws/lsphp71/etc/*.ini --> upload_max_filesize = 100M

    it's strange I do not understand why it does not take the value of php.ini

    Used VirtualBox, Centos7 Minimal, OpenLiteSpeed 1.4.27, Php 7.1.9, MariaDb, i do not have anything else installed,

    Regards,
     
  6. lswave

    lswave Member

    can you try full stop / start openlitespeed ? instead of graceful restart
     
  7. Vanhels

    Vanhels New Member

    yes, i tried:

    systemctl systemctl stop lsws
    systemctl systemctl start lsws

    No works,
     
  8. Pong

    Pong Administrator

    seems a little wired. change over /usr/local/lsws/lsphp71/etc/php.ini should work. Did you start openlitespeed successfully? Can you make sure server process ID change after server restart?
    If still problem , may need your root ssh access to check
     
  9. Vanhels

    Vanhels New Member

    I have reinstalled the Centos7 Minimal virtual machine from Zero, just install OpenLiteSpeed with the default php version 5.6.14, change php.ini /usr/local/lsws/admin/conf/php.ini, getting the same result, does not take into account changed values, Url PhpInfo: http://190.142.101.87/phpinfo.php, this seems like a bug,

    Regards,

    Environment:

    Windows 10, VirtualBox 5.1.28 r117968, Centos 7 Minimal, OpenLiteSpeed 1.4.27, Php Default 5.6.14.
     
    Last edited: Sep 22, 2017
  10. lswave

    lswave Member

    just now got chance to install fresh OLS 1.4.27, lsphp 7.1.9 on centOS 7 box, edit /usr/local/lsws/lsphp71/etc/php.ini, change "upload_max_filesize = 2M" to "upload_max_filesize = 100M", phpinfo.php page reflect the change without any problem. so maybe there is some special stuff in the env.
     

Share This Page