How to set up a PHP server _ PHP Tutorial

Source: Internet
Author: User
How to set up a PHP server. How to set up a PHP server how to set up a PHP Server [a] first download software :( apache) I used in the Hurricane Software Park to download the apache_2.24-win32-x86-no_src !! Address: http: how to set up a PHP Server

How to set up a PHP Server

[1] first download the software:

(Apache) I am using a apache_2.24-win32-x86-no_src downloaded in the Hurricane Software Park !!

Address: http://www.pc6.com/SoftView/SoftView_2253.html

(Jdk !) There is a connection on the homepage.

(Php4) you can go to the official php website to check out code-labs !!

: Http://www.pc6.com/SoftView/SoftView_2165.html

(Iasp) the most important software ----------------------------------

[2] install apache

1. double-click the apache installation file. just like installing a common windows program, click "next.

2. the installer requires you to enter your network domain (network domain name: such as xxx.com), server domain (server domain name: form www.xxx.com), and website administrator's e-mail. If yes, enter the actual information. if not, enter the actual information in the format.

3. when selecting the installation path, I strongly recommend that you change the installation path to "c: \", because this saves a lot of configuration trouble. 4. all the way to "next" until "finish ". The installation is complete.

Now, your apache has been started. you can enter http: // localhost/or http: // 127.0.0.1 in the ie address bar. You can also find the apache service in the "service" item of "administrative tools". apache will be able to serve as a windows2000 service in the future and will run as the machine starts up!

------------------------------------------------------------------------------

[3] configure apache

The main changes to the configuration file are as follows:

(1) search for documentroot. This statement specifies the path of your website, that is, the directory on your home page. You can use the default one or specify one by yourself, but remember not to add "/" at the end of the sentence.

(2) find the directoryindex. In this example, add index.htm index. php index. php3 index. cgi index. pl index. asp to the homepage of index.html. Note: Leave a space between each type!

(3) port (port number). if iis is not installed, do not change the value of 80. otherwise, change it (because the iis web service occupies 80), change it to 81, or change the default iis port! Happy with you.

(4). # change bindaddress * to bindaddress 127.0.0.1 (use notepad to open/edit/search)

Other projects that need to be configured will be used in depth in the future! Run http: // localhost/

You can see the apache help file!

-----------------------------------------------------------------------------

[4] install xxx (note the most important one) (disable the apache service)

(1) install php below first install php to c: \ php4 (do not change the path! Otherwise, I will use php version 4.0.2,

(2) next we will copy msvcrt. dll to c: \ winnt \ system32 \ and the system will prompt that the file is being used by windows. it doesn't matter! Overwrite any original file.

(3) change c: \ php. ini-dist to php. ini and copy it to c: \ winnt,

(4) now open the configuration file httpd. conf of apache and add the following statement: (everything can be done, but it should be done separately)

Scriptalias/php4/"c:/php4 /"

Addtype application/x-httpd-php4. php

Addtype application/x-httpd-php4. php3

Addtype applications/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) modify the php. ini file.

Find the windows extensions entry: add

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 (do not add this item, no mssql7.0)

Extension = php_imap.dll

■ OK disk storage ko ■

Create the test. php file in the documentroot directory.

OK. The php test page is displayed !! So far, php configuration has been completed!

Install jdk by default! Then, add the path variable value c: \ j2sdk * \ bin in the windows environment variable (*: The installation path name is different for different versions)

Now you can install iasp by default! After the installation process, the software will prompt you to set the web server first:

Instant asp native servlet surport option next select apache server

After that, you must select the apche version number and httpd. conf path, and then the system automatically configures it. if everything goes well, you can test it !!

Create test. asp

<% Response. write ("hell world! ") %>

Now run http: // localhost/test. asp and you will see helloworld! Now, you can use apache !!!

------------------------------------------------------------------------

[5]. the running environment of windows + apache + php + asp is mentioned above. Today, apache can support jsp running on this basis.

1: software resin (resin2.1.4) resin http://www.caochu.com required

The following describes how to install the SDK:

After resindownload is the. zip file, as long as it is simply decompressed to the specified directory, here I am using c: \ resin-ee-2.1.4 using the command c: \ resin-ee-2.1.4 \ bin \ httpd.exe-install (remove) use resin as a service of win2000

OK! Next, find the win2000 environment variable "control panel --> System --> advanced --> environment variable"

Add variable "resin_home" variable value "c: \ resin-ee-2.1.4" if you have installed jdk, you don't need to set anything! No

Ghost how to set up PHP Server [a] first download software: (apache) I used in the Hurricane Software Park to download the apache_2.24-win32-x86-no_src !! Download Address: http :...

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.