Myprincess
V2EX  ›  PHP

PHP Memory Limit 128M 如何改为 256M 或更高,通过 PHP .INI 修改不生效

  •  
  •   Myprincess · Sep 8, 2020 · 1950 views
  •   You need to sign in to view this topic
    This topic created in 2278 days ago, the information mentioned may be changed or developed.
    我已经尝试修改 PHP.INI 文件,把原来的 64M 改为 256M,但是后台依然没有生效。
    是否还要修改.htaccess
    如果我在.htaccess 文件里增加一行:php_value memory_limit 256 是否能成功。
    谢谢。
    以下修改不成功

    magic_quotes_gpc = Off
    register_globals = Off
    default_charset = UTF-8
    memory_limit = 256M
    max_execution_time = 36000
    upload_max_filesize = 999M
    safe_mode = Off
    mysql.connect_timeout = 20
    session.auto_start = Off
    session.use_only_cookies = On
    session.use_cookies = On
    session.use_trans_sid = Off
    session.cookie_httponly = On
    session.gc_maxlifetime = 3600
    allow_url_fopen = On
    ;display_errors = 1
    ;error_reporting = E_ALL
    hbolive
    hbolive
    Sep 11, 2020
    1
    第一感觉想到的是:没重启服务?
    Myprincess
    Myprincess
    OP
    Sep 11, 2020
    2
    @hbolive 重启好几回了。就是不能生效
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1896 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 10:18 · PVG 18:18 · LAX 02:18 · JFK 05:18
    ♥ Do have faith in what you're doing.