doufuhuang6981 2019-01-21 08:26
浏览 233

增加live server php中的post_max_size

I want to change the post_max_size in live server, for that I have created a file say .htaccess with following data

php_value post_max_size 100M

and placed this .htaccess file in root folder of the project. This worked in local but not working at live Server. Where did I make mistake, please suggest me in right way to increase the post_max_size in live server.

  • 写回答

1条回答 默认 最新

  • dongmou9260 2019-01-21 08:50
    关注

    open .htaccess add this line.

    php_value upload_max_filesize 99M
    php_value post_max_size 100M
    

    If your web server is running php5, I believe you must use php5_value.

    for some hosting like Web Fusion, you need to create a file called php.ini and save it in the same location as your .htaccess file.

    your method is right, check your .htaccess file is updated successfully or not also,

    upload_max_filesize should be less than post_max_size.

    If you are getting 500 - Internal server error that means you don't have permission to set these values by .htaccess. You have to contact your web server providers and ask to set AllowOverride Options for your host or to put these lines in their virtual host configuration file.

    评论

报告相同问题?

悬赏问题

  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 shape_predictor_68_face_landmarks.dat
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 对于相关问题的求解与代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料