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

我试图克隆一个Joomla网站,我从原始网站导出数据库,并试图使用phpmyadmin 将其导入到新站点的数据库中。 数据库大约是75mb,所以进口保持超时。 我(愚蠢)登录到我的主机控制面板并开始调整设置(memory_limit,mac_execution_time,max_input time等),将它们放在更大和更大的值来导入数据库(从未工作过,可能是因为我没有重启apache 今天早上我使用MySql Workbench打开我从phpmyadmin完成的SQL导出文件,运行查询,然后以这种方式导入。 这工作我有我的数据库和设置我的网站重复修订。</ p>

然后我逐渐开始失去所有网站的后端功能(大约十几个,大部分是 我没有碰过)。 首先K2不会过滤或保存,它会跳回管理控制面板。 我开始检查并在所有网站上注意到这一点。 几个小时后,我开始失去管理员登录功能。 一个接一个,我无法登录,只是重置为空白字段。 我检查了几个我启用了前端登录的站点,当我尝试登录时,我得到“无效令牌”。</ p>

我检查了jos_plugins,我的'用户 - Joomla'已经发布。 我的名字/ id仍在jos_users中,我仍然输入超级管理员。 php设置被重置(我让我的托管公司的专业人员这样做),并重新启动服务。 这不起作用,然后也没有重新启动。</ p>

任何人都可以在php配置中想到我可能已经调整过的任何东西会引起这种情况吗? 这里有一些似乎很重要的设置(或者我记得搞乱了)和它们的价值。 我必须在这里遗漏一些东西。 </ p>

  memory_limit:128M 
upload_max_filesize:64MB
max_execution_time:30
max_input_time:60
session.cache_expire:180
session.cookie_domain:blank(我相信默认服务器名称?)

session.cookie_lifetime:0(浏览器重启过期?)
session.gc_maxlifetime:1400
</ code> </ pre>

还有什么我应该看的? 有人可以帮忙吗? 真的绝望了。</ p>
</ div>

展开原文

原文

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.

dsizmmwnm56437180
dsizmmwnm56437180 抱歉!我整夜检查了我的手机,但它从未更新过。我正在运行Joomla1.5.2我相信,和PHP5.2.9。
7 年多之前 回复
duanan1946
duanan1946 你正在使用什么joomla版本?你提到你真的很绝望,但你没有回应
7 年多之前 回复
dornc9470
dornc9470 哪个joomla版本?
7 年多之前 回复

1个回答



问题解决了,操作员错误! 我使用了错误的copy_max_filesize简写(MB而不是M)。 显然它有所作为。 :)我很感谢你回应Deonia而且很抱歉浪费了你的时间。 来自 http://us2.php.net/ini.core </ p>
\ n


注意:
PHP允许比特值的快捷方式,包括K(千),M(兆)和G(千兆)。 如果您使用其中任何一个,PHP将自动执行转换。 注意不要超过32位有符号整数限制(如果你使用的是32位版本),因为它会导致你的脚本失败。“</ p>
</ blockquote>
</ div>

展开原文

原文

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."

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问