TIPS: PHP server setup

Source: Internet
Author: User

PHP server setup [1] first download the software:

(Apache) I used to download the apache_1.3.26-win32-x86-no_src IN THE huajun Software Park !!
(Jdk !) There is a connection on the homepage.
(Php4) You can go to the official php website to check out code-labs !!
(Iasp) The most important software

Install apache on the PHP server [2]

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: // 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!

PHP server setup [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!

PHP server setup [4] install xxx (note this most important) (disable 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: winntsystem32 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

  1. Extension_dir = c: php4
  2. Extension = php_zlib.dll
  3. Extension = php_ldap.dll
  4. Extension = php_zlib.dll
  5. Extension = php_calendar.dll
  6. Extension = php_exif.dll
  7. Extension = php_ftp.dll
  8. Extension = php_mssql70.dll (do not add this item, no mssql7.0)
  9. Extension = php_imap.dll

■ OK disk storage ko ■

Create the test. php file in the documentroot directory.

<? Phpinfo ();?>

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 !!!

PHP server setup [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:

Resindownload is the. ZIP file as long as Simple decompression to the specified directory can be here I am using c: resin-ee-2.1.4 using the command c: resin-ee-2.1.4binhttpd.exe-install (remove) resin as a service for 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!

Now, modify the apache configuration file httpd. conf as follows:

Loadmodule caucho_module c:/resin-ee-2.1.4/libexec/apache-1.3/mod_caucho.dll
Addmodule mod_caucho.c


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.