Installing Apache + PHP + JSP + MySQL in Windows2003 Select Blog from AliKeten

xiaoxiao2021-03-06  99

First, PHP is currently version 4.3 1. PHP.INI-DIST REM is php.ini, copy to winnt, copy php4tsts.dll to winnt / system32, no need to copy or change other settings. 2. PHP.INI: register_globals = Off -> on extension = php_gd.dll removes the comment, start the GD library extension_dir = ./ -> C: / PHP / EXTENSIONS --------------- ------------------ Second, install Apache Currently installation version 2.0.43 Configuring the httpd.conf file under the conf directory Add: loadingModule PHP4_Module C: / PHP /sapi/php4apache2.dll addtype application / x-httpd-php .php addtype application / x-httpd-php .php3 #alias / www / "c: / documents and settings / administrator / www /" (virtual directory, customization ) # Install CGI mode Add: Scriptalias / PHP / "C: / PHP /" AddType Application / X-httpd-php4 .php Addtype Application / X-httpd-php4 .php3 action application / x-httpd-php4 "/ PHP / php.exe "# increase the default startup file: DirectoryIndex index.html increased to: DirectoryIndex index.html index.htm index.php index.php3 # make # apache2 default display Chinese added: AddLanguage zh-cn .cn DefaultLanguage zh-cn # Modification: adddefaultcharset ISO-8859-1 ---> AddDefaultcharset GB2312 ######################################################################################################################################################################################################################################################################## ####### Test file info.php: Enter http://localhost/info.php in the browser -------------------------------------------------------------------------- ----------------------------- Third, MySQL installation 1. The default installation path is: c: / mysql 2. Run C: / mysql / bin / winmysqladmin, enter username, password // If there is no service: Open "Run" input C: /Mysql/bin/mysqld-nt.exe -Install. Then open the Administrative Tools -> Services to find the "MySQL" service and start it. Restart Windows2000.

============================================================================================================================================================================================================= ================== If JSP does not require JSP, install it to this. Let's start installing JSP ================================================= ====================== 4, install the relevant software 1, download a JDK (J2SDK-1_4_0-win.exe), assume that it is installed as C: / J2SDK. 2, download the Resin for Windows version (2.1.6), address: http://www.caucho.com/download/, solution ... resin / bin / httpd -install, if you want to serve from the system service Delete in the command line, execute "C: / Resin / Bin / httpd - remove". 3, download the jdbc for mysql file named mm.mysql-2.0.14-bin.jar Copy to c: / resin / lib directory ( Used for JSP to support mysql). ---------------------------- Five, configure environment variables my computer mouse -> Properties -> Advanced -> Environment Variables -> System Variable Bar 1, Java_HOME Click "New ...", the variable name bar fill in "java_home", the variable value column fills in "C: / J2SDK", click "OK". 2, resin_home Create a variable "resin_home", the value is "c: / resin". 3, ClassPath found ClassPath in the system variable bar, click "Edit ...", if there is no such variable, click "New ...", in the variable The value is added to C: /J2SDK/LIB/Tools.jar; C: /J2SDK/LIB/dt.jar; ", click" OK ". Test Service: Execute: http: // localhost: 8080 You can see some environment variables of the current RESIN server. --------------------------- 6. Configure the Apache bundle RESIN, perform C: /RESIN/bin/setup.exe to select the Apache2 service, will Automatically add the C: /Apache/conf/httpd.conf file you need.

Or open C: /Apache/conf/httpd.conf, add loadModule caucho_module "c: /resin/libexec/apache-2.0/mod/caucho.dll" cauchoconfigfile "c: / resin / conf / resin .conf " setHandler caucho-status Modify the resin profile c: /resin/conf/resin.conf found this line: DOC Change: c: / apache2 / htdocs -------------------------- in C : / Apache / htdocs / directory newly built a file Test.jsp, the content is as follows: 2 2 = <= 2 2> Run http://localhost/test.jsp: //localhost/test.jsp: 2 2 = 4 Description Apache resin configuration is complete.

转载请注明原文地址:https://www.9cbs.com/read-104378.html

New Post(0)