duanguzhong5776 2012-03-06 13:25
浏览 79
已采纳

Joomla没有阅读自定义php.ini

I placed a custom php.ini file in my public_html folder:

enter image description here

Now browsing example.com/phpinfo.php says the new config works:

enter image description here

However, Joomla's still not using the new config. When you go to Joomla's Admin area > Site > System Information > PHP Information it still says 2M.

enter image description here

Any ideas why?

  • 写回答

3条回答 默认 最新

  • dpikoto468637 2012-03-06 13:37
    关注

    This link stipulates that the 6th block on the PHP Information page (shown in your question) displays the path to the php.ini used by the Joomla installation.

    Link: http://forum.joomla.org/viewtopic.php?t=350630

    A good point mentionned again in the Joomla forum post from the link is that if you're on a shared host, you typically don't have access to the php.ini file. Still, someone mentionned this:

    You can create php.ini at Joomla Directory. I do it usually.

    Perhaps you can try that alternative? Is your public_html folder the top level Joomla installation folder?

    EDIT: Someone mentionned that he had the same exact problem you have (upload size), and this is what he did:

    I found that my host said that the php.ini need to be where the script was ran. In this case for media manager it had a limit of 2mb. Reason for this was uploading large files Acrobat PDF I simply place a php.ini file into the administration folder of Joomla 1.5. Upon this PHP recognized the new php settings. Here are the php.ini file i created:

     register_globals = Off  
     upload_max_filesize = 30M  
     post_max_size = 30M 
     memory_limit = 30M  
     upload_tmp_dir = 30M  
     max_execution_time = 180
    

    Again coming from the Joomla forums post in the provided link. You can replace the 30M with whatever value you need.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥50 高维数据处理方法求指导
  • ¥100 数字取证课程 关于FAT文件系统的操作
  • ¥15 如何使用js实现打印时每页设置统一的标题
  • ¥15 安装TIA PortalV15.1报错
  • ¥15 能把水桶搬到饮水机的机械设计
  • ¥15 Android Studio中如何把H5逻辑放在Assets 文件夹中以实现将h5代码打包为apk
  • ¥15 使用小程序wx.createWebAudioContext()开发节拍器
  • ¥15 关于#爬虫#的问题:请问HMDB代谢物爬虫的那个工具可以提供一下吗
  • ¥15 vue3+electron打包获取本地视频属性,文件夹里面有ffprobe.exe 文件还会报错这是什么原因呢?
  • ¥20 用51单片机控制急停。