Java+php+tomcat+apche+mysql+phpmyadmin Environment building based on Windows platform

Source: Internet
Author: User
Tags phpmyadmin server port

Prepare the Software:

    1. Jdk-8u31-windows-x64
    2. mysql-installer-community-5.6.19.0
    3. Apache-tomcat-8.0.18-windows-x64
    4. Apache HTTP server2.4_x64
    5. Myeclipse-pro-2014-ga-offline-installer-windows
    6. Php-5.6.5-win32-vc11-x64
    7. Phpmyadmin-4.2.11-all-languages

Detailed Description:

1.jdk-8u31-windows-x64

(1) Download JDK

Available for download from http://www.oracle.com/technetwork/java/javase/downloads/index.html

(2) Installing the JDK

Run the downloaded executable directly to install it, preferably not on the C drive, the JRE and JDK are installed in the Java directory

(3) Setting environment variables

Right--My computer--Properties--Advanced environment variables (which can be user variables, or system variables, which are set in this article are system variables)

1) New system environment variable Java_home

java_home=x:\jdk1.7

(The environment variable points to the installation path of the JDK, Java_home is the environment variable name, = right is the actual installation path of the JDK.) For example, if the JDK is installed in the C:\MyJDK\JDK1.7 directory, the java_home= C:\MyJDK\JDK1.7) version number needs to be modified with the downloaded JDK version

2) Edit the existing system environment variable path, and add the following path value after the value of the variable:

;%java_home%\bin

(This setting allows the Java command to be used under any path, with semicolons; the delimiter for each environment variable value)

Note: This configuration environment needs to use more than JDK6.0 version

2. mysql-installer-community-5.6.19.0

Installation steps

(1) Run install installation and proceed to the next step.

(2) Developer default installation type

Server only as Server

Client only

Full fully installed type

Custom user-defined installation type

Choose the installation according to your own situation, we have a custom installation here as an example:

(3) There are 3 options,

1.Developer Machine (development machines), personal desktop workstations, with minimal system resources

2.Server machine (server), MySQL server can run with other applications, such as FTP, email, and Web server. The MySQL server is configured to use the appropriate scale of system resources.

3.Dedicated MySQL server machine (dedicated MySQL servers): This option represents a server that only runs the MySQL service. Assume that the run is not running other applications. The MySQL server is configured to use all available system resources.

Choose according to your own situation, the general Web server Select the second, server machine can! PC installation choice First, Developer machine is better.

(4) Continue with the next installation. Complete the installation

! Reminder: Remember password, best set password is 123456


3.apache-tomcat-8.0.18-windows-x64

Unzip, remember the extracted directory.

4.Apache HTTP server2.4_x64
A) Double-click on file httpd-2.2.22-win32-x86-openssl-0.9.8t to pop up the Welcome screen. Single Next button to enter the License Agreement (License agreement) interface.

b) The user must agree to the terms in the interface to continue the installation. After selecting the I accept the terms in the License Agreement radio button, click the Next button, 1, to enter the program description and description interface.

Figure 1

c) After browsing the description and description of the program, click the Next button to enter the server information interface, as shown in 2.

Figure 2

d) The server information interface requires users to fill in the domain name, server name, and administrator email. Under Network domain, enter your domain name (for example: goodwaiter.com) in the server Name (e.g. www.goodwaiter.com, hostname plus domain name), fill in the contact e-mail address of the system administrator under Administrator ' s email (for example: [email Protected]), the above three information is for reference only, where the contact e-mail address will be provided to visitors when the system fails, three information can be arbitrarily filled out, invalid also line. Finally there are two radio buttons, if the default first radio button is selected, the server is open to everyone, and the server has a port number of 80, this is the recommended option. The second radio button is that the server is open only to the current user, and the server port is 8080. Select the first option and click the Next button to enter the Setup type interface, if 3 is shown.

Figure 3

e) in the Setup type interface, you can choose the installation types, there are typical default installation, custom user-defined installation of two types of installation, here to maintain the custom installation options, click the Next button to enter the destination Folder (path selection) interface, As shown in 4. The Select installation Options screen appears, left-click on "Apache HTTP Server 2.0.55", select "This feature, and all subfeatures, would be installed on the local hard drive." , that is, "This section, and sub-sections of subordinate content, all installed on the local hard disk."

Figure 4

f) Click the Change button to select the installation path. Here the path is set to "D:\Apache2.2\" and click the Next button. (You have chosen, generally recommended not installed in the operating system disk, lest the operating system is broken, the restore operation to the Apache configuration file also cleared. )

g) Enter the file installation interface. This is the last step of Apache installation and the program starts the installation file. After the installation is complete, click the Finish button to end the Setup program.

h) When the installation is complete, the Apache server will open automatically. An icon will appear in the lower right corner of the desktop, when the current Apache server starts, the icon style is: The server is not started, and the icon style is.

Click the small icon, you will see the server's open and close function, you can also right-click the small icon, in the popup shortcut menu, choose the Open Apache Monitor command, open Apache monitoring program.

i) after the server is turned on, you need to test the server at last. Open a browser window, enter "HTTP://127.0.0.1/" or "http://localhost:+ port number" in the Address bar, press ENTER to see the 5 interface (the tutorial has seen the following interface, but I have not seen this interface, Just see two English words it Works, but it doesn't matter.

Figure 5

5.php-5.6.5-win32-vc11-x64

After the Apache server starts successfully, the next step is to install PHP5. To install PHP5, proceed as follows:

① PHP5 installation files php-5.3.5-win32-vc6-x86 to the appropriate directory, followed by the Php-5.3.5-win32-vc6-x86 folder

Figure 2.1

② copies all DLL files under this directory to the system disk Windows\System32 directory (the Windows 2000 user is in the Winnt\System32 directory).

③ the file php.ini-developmentphp.ini-proviment or copy it to the Windows directory of the system disk and rename it to PHP.ini.

④ open "; Extension=php_mysql.dll" this line, will precede the semicolon ";" Remove, so that PHP can support MySQL database.

⑤ continued to remove the semicolon of the extension=php_mbstring.dll sentence.

Change Extension_dir = "" To Extension_dir = "E:\php-5.3.5-Win32-VC6-x86\ext" Directory for PHP installation directory, semicolon remove

Change doc_root = "" To Doc_root = "E:\Program files\apache software Foundation\apache2.2\htdocs" Specific directory is Apache installation directory, semicolon removed

5.1. Configuring Apache and PHP5

To use the Apache server to support PHP files, you will need to do some setup in the Apache configuration file httpd.conf. The location of the httpd.conf file is located in the Conf directory under the Apache root directory, and the main settings are as follows.

? Locate the LoadModule configuration block and add the following information at the end of LoadModule:

LoadModule Php5_module E:\php-5.3.5-Win32-VC6-x86\php5apache2_2.dll

Add the file as shown in result 4.1.

Figure 4.1

? Modify the DocumentRoot parameter to modify the root directory of the Apache server master. The location of the original root directory is the Apache2.2\hotdocs directory where the user can specify the location, such as:

DocumentRoot "d:/htdocs/"

In the documentroot under the distance of 28 lines, there is a behavior <directory "d:/apache2.2/htdocs/", and changed to <directory "d:/htdocs/". (Note that documentroot and the parameter values here must be consistent OH)

? Add the PHP extension that you want the Apache server to recognize. Add the following code:

AddType application/x-httpd-php. php. html. htm

Add location 4.2 as shown.

? The page is displayed by default. The default display page for Apache is index.html. That is, when the server does not named the file, first find index.html, if index.html is found, then the server will load the file, otherwise display a list of files in the directory. Add a PHP default page index.php here. The changed code is as follows:

DirectoryIndex index.html index.php

(In fact, not necessarily "index.html", such as "test.php", etc., can be)

? Modify the Apache port number. Apache has a port number of 80. Modify the value of the option listen to modify the port number, such as 82, then the changed code is as follows (generally not changed):

Listen 82

Once the above configuration is complete, restart the Apache server.

6.1 Myeclipse-pro-2014-ga-offline-installer-windows

    1. The first step: click on the downloaded MyEclipse installer, pop up the following dialog box, click Next, that is the next step.
    2. Step two: Tick the box above to agree to the MyEclipse agreement, then click Next.

3. Step three: Set the path of the installation myeclipse, preferably install a disk root directory, so easy to find.

4. Fourth step: Tick the front, select all, and then next.

5. Fifth step: Check all, click Next.

6. Sixth step: Pop up the following dialog box, at this time, you need to know what the computer installed system, how many bits of the system, see the seventh step to identify how many bits of the method.

7. Seventh Step: Check how many system steps the PC is in: Right-click on my computer to see. Windows XP is 32-bit, this can be noted.

8. The first step: the installation time may take five minutes or so, wait, then you can complete.

6.2 MyEclipse Installation Diagram:

MyEclipse 10 activating the detailed process

1, install the MyEclipse 10 (10.1, 10.5 or 10.6 version, theoretically can be cracked, here to 10.6 version for example), after the installation is completed please do not run myeclipse.

2, in the download good Activation patch directory, Double-click Cracker.jar to run the activation tool (if the double-click cannot run, you can double-click the batch file under the same directory Run.bat to run Cracker.jar), enter your registered user name in the Usercode field, select your myeclipse 10 corresponding version, Then click SystemID ... Generate SystemID:

3. After generating SystemID, click Active:

License key, Activation code, and Activation key are generated automatically:

Auto-Generate license key, Activation code, and Activation key

4. Click menu Tools, 2.SaveProperties, to save the license key, Activation code, and Activation key generated in the previous step to C:\Documents and Settings\ In the Administrator\.myeclipse.properties file:

5. Click on the menu Tools->1.replacejarfile ..., then select the \common\plugins directory under the MyEclipse installation directory and click "Open":

Then click on "Open"

Wait a moment until a message similar to the following appears, prompting for the replacement file to succeed:

Prompt to replace the file successfully (done), the activation process to this end.

6. Now we can open myeclipse to verify that it has been activated successfully! Click menu myeclipse->subscription Information ...:

If you see the activation status (Activation status) as activated products (product activated), the activation is successful!

congratulations!

Activation Successful! congratulations!

7.phpmyadmin-4.2.11-all-languages

Installation method: Download the installation package and unzip it directly to E:\Program Files\apache software Foundation\apache2.2\htdocs, which is the Htdocs file of Apache's installation directory. Then direct access to the address can be http://localhost:82/phpMyAdmin

Windows platform-based java+php+tomcat+apche+mysql+phpmyadmin environment setup

Related Article

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.