How to set up a PHP server
How to set up a PHP server
"One" first download the software:
(Apache) I'm using the apache_2.24-win32-x86-no_src!! downloaded in Hurricane Software Park.
Download Address: http://www.pc6.com/SoftView/SoftView_2253.html
(jdk!) There is a connection on the top page.
(PHP4) Do not have to say more code-labs above there is also can go to the official PHP website to see!!
Download Address: http://www.pc6.com/SoftView/SoftView_2165.html
(iasp) One of the most important software ——————————————————————————————————
"Two" Install Apache
1, double-click Apache installation files, and ordinary Windows program installation, all the way to "next" can.
2. The Setup program requires you to enter your network domain (Web name: Form xxx.com), server domain (server domains: Shape www.xxx.com) and webmaster's e-mail. Some words are filled in according to the actual, if not the individual user can fill in the format casually.
3, to the selection of installation path, I strongly recommend that you change the installation path to "C: \", because this can save a lot of configuration trouble. 4, all the way "next" until "Finish". The installation is over.
At this point, your Apache has started, you can enter in the IE Address bar: http://localhost/or http://127.0.0.1 look. In the "management tool" of the "service" item, you can also find the Apache service figure, later Apache can be as a windows2000 service, with the machine started and run!
------------------------------------------------------------------------------
"Three" configuration Apache
The main items that are modified to open the configuration file are:
(1), find DocumentRoot. This statement specifies your Web site path, which is the directory where your page is located. You can either use the default, or you can specify one yourself, but remember, don't add "/" at the end of the sentence.
(2), find the DirectoryIndex. This is the first page of your site, add index.htm index.php index.php3 index.cgi index.pl index.asp and so on after index.html. Note that you have to leave a space between each type!
(3), special note is the port (port number), if not installed IIS, keep 80 do not change, otherwise, it is necessary to change (because IIS Web Services occupy 80), can be changed to 81 and so on, or simply change the default port number of IIS! You're happy with that.
(4). #bindaddress * Change to bindaddress 127.0.0.1 (open with Notepad/Then click Edit/Find)
The other is in-depth use later is to configure the project! Run http://localhost/after installation
You can see the Apache Help file!
-----------------------------------------------------------------------------
"Four" Install XXX (note this most important) (Close Apache service)
(1), install PHP below first install PHP to C:\PHP4 (do not change the path!) or later configuration .... HUM) I'm using PHP 4.0. Version 2,
(2), the next copy Msvcrt.dll to c:\winnt\system32\ below the system on the back of the prompt file is being used by Windows, it does not matter normal! Overwrite any existing file.
(3), the c:\php.ini-dist renamed to PHP.ini, copy to C:\Winnt,
(4) Well, now open the Apache configuration file httpd.conf Add the following statement: (Can be anywhere, but alone)
scriptalias/php4/"c:/php4/"
AddType application/x-httpd-php4. php
AddType APPLICATION/X-HTTPD-PHP4. php3
AddType APPLICATION/X-HTTPD-PHP4. PhP4
Action Application/x-httpd-php4 "/php4/php.exe"
DirectoryIndex index.html
DirectoryIndex index.htm
DirectoryIndex index.php
DirectoryIndex index.php3
DirectoryIndex INDEX.PHP4
DirectoryIndex index.asp
(5), next modify the php.ini file
Find Windows Extensions entry: Increase
Extension_dir = C:\PHP4
Extension=php_zlib.dll
Extension =php_ldap.dll
Extension =php_zlib.dll
Extension =php_calendar.dll
Extension =php_exif.dll
Extension =php_ftp.dll
Extension =php_mssql70.dll (this one does not add, no mssql7.0 AH)
Extension =php_imap.dll
OK to disk Ko
Create a test.php file in your DocumentRoot directory
OK see the test page of PHP!! The configuration of PHP is now complete!
Installing the JDK below is also a default installation! Then add the path variable value to the Windows environment variable c:\j2sdk*\bin (*: Different versions of the installation path name)
Okay, here's the installation iasp use the default installation! After the installation process, the software prompts you to make Web server settings first select:
Instant ASP native servlet surport option next select Apache Server
After the request you choose Apche version number and httpd.conf path selection after the system automatically configure if all goes well can test!!
Establish test.asp
<%response.write ("Hell world!") %>
Now run http://localhost/test.asp, see helloworld! good everything is ready to use Apache!!!
------------------------------------------------------------------------
"Five", the above mentioned the windows+apache+php+asp of the operating environment today said on this basis, so that Apache can also support the operation of JSP.
1: Required software resin (resin2.1.4) Resin http://www.caochu.com
Let's talk about how to install:
Resin after the download is a. zip file as long as the simple decompression to the specified directory can be here I use the c:\resin-ee-2.1.4 command C:\resin-ee-2.1.4\bin\httpd.exe-install (remove) Use resin as a service for Win2000
ok! find the environment variables for Win2000 "Control Panel--system--high-level environment variables"
Add variable "resin_home" Variable Value "c:\resin-ee-2.1.4" if you already have the JDK installed then you don't need to set anything!
http://www.bkjia.com/PHPjc/845137.html www.bkjia.com true http://www.bkjia.com/PHPjc/845137.html techarticle How to set up a PHP server how to set up a PHP server "one" first download software: (Apache) I used to download the Hurricane Software Park apache_2.24-win32-x86-no_src!! Download address: http: ...