Magento background cannot log in

Source: Internet
Author: User

Often someone encounters Magento backstage, entered the correct account password. Do not log on properly, and do not prompt for errors. is to continue to jump to the login interface.

There are many solutions on the web, most of which are to comment out a piece of code.

I am a stand-alone server, according to the online method, annotate the code, also can not log in.

Then I emptied the cache and after the session. Can log in. But only for a while. After a few 10 minutes. Re-landing, there are problems again.

So the problem arises when allocating memory space to the Var.

At the time of Magento optimization. I used the command mount-t tmpfs-o size=100m,mode=0777 tmpfs var

is to mount the Var in memory and assign it 100M of memory space. The memory for VAR is only configured with 100M. How can this be done? var minutes to two hundred or three hundred m.

Decisively execute command mount-t tmpfs-o size=1000m,mode=0777 tmpfs var. Add the memory of Var to 1G. The problem has been solved.

Log on to FTP to view var. Takes up more than 300 m. No wonder you can't land. But assigned to 1G. It's enough. It's good to have the cache emptied periodically.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.