douwei2966 2013-05-15 22:54
浏览 28

php mis-config导致joomla登录失败?

I was attempting to clone a Joomla site, I had exported the database from the original, and was attempting to use phpmyadmin to import it into the db for the new site. The DB was around 75mb so the import kept timing out. I (foolishy) logged in to my hosting control panel and started tweaking settings (memory_limit, mac_execution_time, max_input time, etc), putting them at larger and larger values to import the db (which never worked, probably because i didn't restart apache).

This morning I used MySql Workbench to open the SQL Export file I had done from phpmyadmin, run the query, and import it that way. This worked I had my database and setup my site duplicate for revisions.

Then gradually throughout the day I began to lose backend functionality across all of my sites (roughly a dozen or so, most of which I hadn't touched). First K2 wouldn't filter or save, it would jump back to admin control panel. I started checking and noticed this on all site. After couple hours of that, I started to lose admin login capability altogether. One by one, I couldn't login, it just reset to blank fields. I checked the couple of sites I have front end login enabled and when I try to login there I get "invalid token".

I checked jos_plugins, my 'User - Joomla' is published. My name/id are still in jos_users and I'm still typed as super admin. The php settings were reset (i let the pros at my hosting company do that), and services restarted. That didn't work, and neither then did a hard reboot.

Can anyone think of anything in the php config I may have tweaked that would cause this? Here's a few settings that seem to count (or I remember messing with) and their value. I must be missing something here.

memory_limit: 128M
upload_max_filesize: 64MB
max_execution_time: 30
max_input_time: 60
session.cache_expire: 180
session.cookie_domain: blank (default server name then I believe?)
session.cookie_lifetime: 0 (expires browser restart?)
session.gc_maxlifetime: 1400

Anything else I should look at? Can anyone help? Truly desperate here.

  • 写回答

1条回答 默认 最新

  • duanaoou4105 2013-05-16 17:46
    关注

    Problem solved, operator error! I had used incorrect shorthand for upload_max_filesize (MB instead of M). Apparantly it makes a difference. :) I do appreciate you responding Deonia and sorry to have wasted your time. From http://us2.php.net/ini.core

    Note: PHP allows shortcuts for bit values, including K (kilo), M (mega) and G (giga). PHP will do the conversions automatically if you use any of these. Be careful not to exceed the 32 bit signed integer limit (if you're using 32bit versions) as it will cause your script to fail."

    评论

报告相同问题?

悬赏问题

  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!