phpIniOverride
phpIniOverride {php_value display_errors "Off"php_value upload_max_filesize "200M"php_value post_max_size "250M"}
CyberPanel said:For CyberPanel Ent, you can use custom php.ini the similar way as Apache. For OpenLiteSpeed you can use phpIniOverride, such asphpIniOverride {php_value display_errors "Off"php_value upload_max_filesize "200M"php_value post_max_size "250M"} You can put this in vHost conf of your website/child-domain.
For CyberPanel Ent, you can use custom php.ini the similar way as Apache. For OpenLiteSpeed you can use phpIniOverride, such as
docRoot $VH_ROOT/public_htmlvhDomain $VH_NAMEvhAliases www.$VH_NAMEadminEmails [email protected]enableGzip 1enableIpGeo 1index { useServer 0 indexFiles index.php, index.html}errorlog $VH_ROOT/logs/$VH_NAME.error_log { useServer 0 logLevel ERROR rollingSize 10M}accesslog $VH_ROOT/logs/$VH_NAME.access_log { useServer 0 logFormat "%v %h %l %u %t "%r" %>s %b" logHeaders 5 rollingSize 10M keepDays 10 compressArchive 1}scripthandler { add lsapi:talksho php}extprocessor talksho { type lsapi address UDS://tmp/lshttpd/talksho.sock maxConns 10 env LSAPI_CHILDREN=10 initTimeout 600 retryTimeout 0 persistConn 1 pcKeepAliveTimeout 1 respBuffer 0 autoStart 1 path /usr/local/lsws/lsphp71/bin/lsphp extUser talksho extGroup talksho memSoftLimit 2047M memHardLimit 2047M procSoftLimit 400 procHardLimit 500}context /.filemanager { location /usr/local/lsws/Example/html/FileManager allowBrowse 1 autoIndex 1 accessControl { allow 127.0.0.1, localhost deny 0.0.0.0/0 } rewrite { inherit 0 } phpIniOverride {php_value display_errors "Off"php_value upload_max_filesize "200M"php_value post_max_size "250M"} addDefaultCharset off}phpIniOverride {php_value short_open_tag 1}rewrite { enable 1 autoLoadHtaccess 1}
CyberPanel said:Make sure your vHost conf for OpenLiteSpeed looks likedocRoot $VH_ROOT/public_htmlvhDomain $VH_NAMEvhAliases www.$VH_NAMEadminEmails [email protected]enableGzip 1enableIpGeo 1index { useServer 0 indexFiles index.php, index.html}errorlog $VH_ROOT/logs/$VH_NAME.error_log { useServer 0 logLevel ERROR rollingSize 10M}accesslog $VH_ROOT/logs/$VH_NAME.access_log { useServer 0 logFormat "%v %h %l %u %t "%r" %>s %b" logHeaders 5 rollingSize 10M keepDays 10 compressArchive 1}scripthandler { add lsapi:talksho php}extprocessor talksho { type lsapi address UDS://tmp/lshttpd/talksho.sock maxConns 10 env LSAPI_CHILDREN=10 initTimeout 600 retryTimeout 0 persistConn 1 pcKeepAliveTimeout 1 respBuffer 0 autoStart 1 path /usr/local/lsws/lsphp71/bin/lsphp extUser talksho extGroup talksho memSoftLimit 2047M memHardLimit 2047M procSoftLimit 400 procHardLimit 500}context /.filemanager { location /usr/local/lsws/Example/html/FileManager allowBrowse 1 autoIndex 1 accessControl { allow 127.0.0.1, localhost deny 0.0.0.0/0 } rewrite { inherit 0 } phpIniOverride {php_value display_errors "Off"php_value upload_max_filesize "200M"php_value post_max_size "250M"} addDefaultCharset off}phpIniOverride {php_value short_open_tag 1}rewrite { enable 1 autoLoadHtaccess 1}
Make sure your vHost conf for OpenLiteSpeed looks like
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
phpIniOverride
, such as You can put this in vHost conf of your website/child-domain.Now works great