How to Set up a PHP server

Source: Internet
Author: User
Tags php server php website

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

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.