PHPCMS Local environment debugging slow solution

Source: Internet
Author: User

Open the host file with Notepad (file location, under Windows General under Path C:\Windows\System32\drivers\etc)
Find #127.0.0.1 localhost This sentence to remove the previous #
Database address when installing the database localhost or 127.0.0.1
If you do this, you will not have a slow running problem when you run it locally.

1. Modify the host file. Location: C:\Windows\System32\drivers\etc.

Find #127.0.0.1 localhost This sentence to remove the previous #

2, when the database is installed, the database address is filled 127.0.0.1.

I use the phpstudy environment, and not only phpcms this site, so it is a bit of a hassle to modify the host file. So I only used the following, directly opened the database.php file, said ' hostname ' modified to: 127.0.0.1. File location: Installation directory \caches\configs\database.php

<? PHP return Array (    array  (        ' hostname ' = ' 127.0.0.1 ',        ' port ' = = 3306,        ' database ' = > ' phpcmsv9 ',        ' username ' + ' root ',        ' password ' + ' root ',        ' tablepre ' = ' v9_ ',        ' CharSet ' = ' utf8 ',        ' type ' = ' mysqli ',        true,        ' pconnect ' = 0,        ' autoconnect ' = 0        ),);? >

After the adjustment, the background refresh speed, a lot faster. At least not wait for the system backstage response time.

PHPCMS Local environment debugging slow solution

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.