duanlaican1849 2015-11-09 13:51
浏览 69

在centos 6.7上查找和编辑php.ini

I try to increase the upload limit for phpmyadmin on centos 6.7.

Please help me to find the path of php.ini and wich line should i edit.

I find some threads on the net about /etc/php.ini but there is on max_upload_size = 128M and in phpmyadmin is allowing only 2.4 M

And i m confused.

any one knows ? thanks.

  • 写回答

1条回答 默认 最新

  • dtcu5885 2015-11-09 13:59
    关注

    In php.ini you have upload_max_filesize = ; also post_max_size

    LE: presuming you have a WHM Panel, you can search for PHP Configuration Editor in the navigation => check the Advanced Mode => find post_max_size and set it to a higher value ex. 128M => find upload_max_filesize and set it to a higher value ex. 128M ( please mind the caps on M ) => in the nav search for http, you should see HTTP Server (Apache). now restart and check in phpmyadmin if the value has changed.

    If you don't have a WHM Panel for your server than do what Glorfindel suggested and upload a php file with the <?php phpinfo(); ?> content and check for the loaded php.ini file. next edit that file same configuration variables upload_max_filesize and post_max_size, but i think the one that the phpmyadmin is checking for is the post_max_size. after you saved the changes restart apache ( I think sudo service httpd restart in terminal ).

    评论

报告相同问题?

悬赏问题

  • ¥15 Python时间序列如何拟合疏系数模型
  • ¥15 求学软件的前人们指明方向🥺
  • ¥50 如何增强飞上天的树莓派的热点信号强度,以使得笔记本可以在地面实现远程桌面连接
  • ¥15 MCNP里如何定义多个源?
  • ¥20 双层网络上信息-疾病传播
  • ¥50 paddlepaddle pinn
  • ¥20 idea运行测试代码报错问题
  • ¥15 网络监控:网络故障告警通知
  • ¥15 django项目运行报编码错误
  • ¥15 STM32驱动继电器