Build a PHP environment using win7 + XAMPP

Source: Internet
Author: User

Introduction: This is a detailed page for building a PHP environment in win7 + XAMPP. It introduces PHP, related knowledge, skills, experience, and some PHP source code.

Class = 'pingjiaf' frameborder = '0' src = 'HTTP: // biancheng.dnbc?info/pingjia.php? Id = 343929 'rolling = 'no'>

Try to install xampp on the 64-bit SP1 System of win7 flagship edition, prepare to learn PHP, and write down all the curious things while taking notes.

1. log onto the XAMPP official website and find the installation package for Windows and download it.

Http://www.apachefriends.org/zh_cn/xampp-windows.html

The download is like this:

OpenProgramInstall XAMPP and keep default next step

I installed it in the XAMPP directory of drive D. continue to the next step.

The first two are shortcuts for creating desktop icons and menus, and the last three are backend services.

Prompt that the service has been installed

Yes open the XAMPP Control Panel

This is the control panel. Apache and MySQL services must be enabled.

Enter the MySQL console to set the Database Password

Http: // localhost/security/xamppsecurity. php

Login after setting

Http: // localhost/phpMyAdmin

My account is root, password: 123456

After logon, the following message is displayed at the bottom of the page:

PhpMyAdminThe additional feature of the linked table has not been activated. To identify the cause, click here

PhpMyAdmin version V3 or above seems to have this problem

The solution for reprinting on the internet is as follows:

Step 1: Use the MySQL Administrator Account to log in through phpMyAdmin, click "import", and then click "Browse, find a file named create_tables. SQL In the scripts folder under the phpMyAdmin folder. It is OK to import it.

Appendix online solution supplement (put scripts/create_tables_mysql_4_1_2 +. SQL under the phpMyAdmin directory (select by version if mysql version is earlier 4.1.2 Use create_tables. SQL) if an error is prompted, import create_tables. SQL first, and then import create_tables_mysql_4_1_2 +. SQL again. I can solve the problem without performing this operation in version 3.38)

Step 2: Open the libraries folder under the phpMyAdmin folder and find the file named config. default. PHP files are opened using text editing tools (notepad is not recommended, and Dreamweaver is recommended. Modify it.

V3.38The version is directly modified in the root directory.Config. Inc. php.

The modified content is not continuous. Please modify it manually. Do not copy it.

Before modification:

$ Cfg ['servers'] [$ I] ['pmadb'] = ";

$ Cfg ['servers'] [$ I] ['bookmarktable'] = ";

$ Cfg ['servers'] [$ I] ['relation'] = ";

$ Cfg ['servers'] [$ I] ['table _ info'] = ";

$ Cfg ['servers'] [$ I] ['table _ coords '] = ";

$ Cfg ['servers'] [$ I] ['pdf _ page'] = ";

$ Cfg ['servers'] [$ I] ['column _ info'] = ";

$ Cfg ['servers'] [$ I] ['History '] = ";

$ Cfg ['servers'] [$ I] ['designer _ coords '] = ";

$ Cfg ['servers'] [$ I] ['tracking'] = ";

Modified content:

$ Cfg ['servers'] [$ I] ['pmadb'] = 'phpmyadmin ';

$ Cfg ['servers'] [$ I] ['bookmarktable'] = 'pma _ bookmark ';

$ Cfg ['servers'] [$ I] ['relation'] = 'pma _ relation ';

$ Cfg ['servers'] [$ I] ['table _ info'] = 'pma _ table_info ';

$ Cfg ['servers'] [$ I] ['table _ coords '] = 'pma _ table_coords ';

$ Cfg ['servers'] [$ I] ['pdf _ page'] = 'pma _ pdf_pages ';

$ Cfg ['servers'] [$ I] ['column _ info'] = 'pma _ column_info ';

$ Cfg ['servers'] [$ I] ['History '] = 'pma _ history ';

$ Cfg ['servers'] [$ I] ['designer _ coords '] = 'pma _ designer_coords ';

$ Cfg ['servers'] [$ I] ['tracking'] = 'pma _ tracking ';

Change $ cfg ['pmaabsoluteuri'] in libraries/config. Default. php

$ Cfg ['pmaabsoluteuri '] = 'HTTP: // 127.0.0.1/PHPmyAdmin /';

Step 3: log out of phpMyAdmin and log on again. Success!

From: http://hi.baidu.com/netdp/blog/item/6d6ec224c849147235a80f78.html

Start Hello World

Create a new helloworld. php file in the XAMPP/htdocs directory. Remember to use utf8 encoding.

<HTML>

<Head>

<Title> Hello World </title>

</Head>

<Body>

<? PHP

Echo "Hello World ";

?>

</Body>

</Html>

 

Then access

Http: // localhost/helloworld. php

At last, we found that the 64-bit win7 system can run php normally. This article is only for personal notes. Please note the shortcomings.

Love J2EE follow Java Michael Jackson video station JSON online tools

Http://biancheng.dnbcw.info/php/343929.html pageno: 5.

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.