Home  >  Article  >  Backend Development  >  Tips Sharing PHP Server Setup_PHP Tutorial

Tips Sharing PHP Server Setup_PHP Tutorial

WBOY
WBOYOriginal
2016-07-15 13:34:55782browse

PHP server setup [1] First download the software:

(apache) I use the Huajun software Park downloaded apache_1.3.26-win32-x86-no_src! !
(jdk!) There is a link on the home page.
(php4) Needless to say, it is available on code-labs. You can also check out the official website of php! !
(iasp) The most important software

PHP server setup [2] Install apache

1. Double-click the apache installation file and ordinary windows program The installation is the same, just click "next" along the way.
2. The installation program requires you to enter your network domain (network domain name: in the form of xxx.com); server domain (server domain name: in the form of www.xxx.com) and the e-mail of the website administrator. If there is any, please fill it in according to the actual situation. If not, individual users can fill in the form according to the format.
3. When it comes to choosing the installation path, I strongly recommend that you change the installation path to "c:", because this can save a lot of configuration trouble. 4. Go all the way to "next" until "finish". The installation is complete.

At this time, your apache has been started. You can enter: http://127.0.0.1 in the IE address bar to see. In the "Service" item of "Management Tools", you can also find the apache service. In the future, apache can be used as a Windows 2000 service and run as the machine starts!

PHP server setup [3] Configure apache

The main items to modify when opening the configuration file are:

(1), search for documentroot. This statement specifies the path of your website, which is the directory where your homepage is placed. You can use the default one or specify one yourself, but remember, do not add "/" at the end of this sentence.
(2). Find directoryindex. This is the first homepage displayed on your site. After index.html, add index.htm index.php index.php3 index.cgi index.pl index.asp and so on. Note that there must be a space between each type!
(3). A special note is the port (port number). If iis is not installed, keep it at 80. Otherwise, you need to change it (because the iis web service occupies 80). You can change it to 81. Wait, or simply change the default port number of iis! As you please.
(4). #bindaddress * Change to bindaddress 127.0.0.1 (open with notepad/then click edit/search)

Others are items that need to be configured for in-depth use in the future! After the installation is complete, run http://localhost/
to see the apache help file!

PHP server setup [4] Install xxx (note this is the most important thing) (turn off the apache service)

(1), install php below first install php to c:php4 (Don’t change the path! Otherwise, the future configuration...hum) I am using version 4.0.2 of php,
(2), next I need to copy msvcrt.dll to c:winntsystem32 The system will prompt you that the file is being used by Windows. It doesn't matter. It's normal! Overwrite any existing files.
(3). Rename c:php.ini-dist to php.ini and copy it to c:winnt.
(4). Now open the apache configuration file httpd.conf and add the following statement : (Anywhere can be used, but it must be on a separate line)

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 the windows extensions item: 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 (Don’t add this item, there is no mssql7.0)
  9. extension =php_imap.dll

■ok save ko■

Create the test.php file in your documentroot directory

ok see php Test page now! ! At this point, the configuration of php has been completed!
Just install jdk by default below! Then add the path variable value c:j2sdk*bin (*: different versions have different installation path names) in the Windows environment variable

Okay, just install iasp using the default installation! After the installation process, the software will prompt you to set up the web server. First select:

instant asp native servlet surport option. Next, select apache server

and then ask you to select the version number of apche and httpd. After the conf path is selected, 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 see helloworld! Okay, everything is done and you can use apache! ! !

PHP server setup [5]. The above mentioned the operating environment of windows+apache+php+asp. Today, let’s talk about how to make apache also support the operation of jsp on this basis.

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

Let’s talk about how to install it:

resin is After downloading, it is a .zip file. Just unzip it to the specified directory. Here I am using c:resin-ee-2.1.4 and use the command c:resin-ee-2.1.4binhttpd.exe -install(remove) Use resin as a service of win2000

ok! Next, find the environment variables of win2000 "Control Panel-->System-->Advanced-->Environment Variables" and add the variable "resin_home" variable value "c:resin-ee-2.1.4" if you have installed jdk Then there is no need to set anything!

Now modify the apache settings file httpd.conf if the following code:

loadmodule caucho_module c:/resin-ee-2.1.4/libexec/apache-1.3/mod_caucho.dll
addmodule mod_caucho.c


www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/445948.htmlTechArticlePHP server setup [1] First download the software: (apache) I use apache_1 downloaded from Huajun Software Park .3.26-win32-x86-no_src! ! (jdk!) There is a link on the home page. (php4) No...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn