How to set up a PHP server_PHP tutorial

PHPz
Release: 2018-09-30 10:48:05
Original
4778 people have browsed it

[One-click PHP server environment building tool]: The 6 best PHP environment building tools recommended in 2017!

How to set up a PHP server?

[1] First download the software:

(Apache) download address :http://www.php.cn/xiazai/gongju/96

(jdk!) There is a link on the homepage.

(PHP4.0.2) Download address: http://www.php.cn/xiazai/gongju/124

(iasp) The most important A software

[2] Install apache

1. Double-click the apache installation file, just like ordinary windows program installation, just click next all 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://localhost/ or http://127.0.0.1 in the IE address bar to see. In the management tool service item, you can also find the apache service. In the future, apache can be used as a windows2000 service and run with the startup of the machine!

[3] Configure apache

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

(1), find 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 it will need to be changed. After a while (because the iis web service occupies 80), you can change it to 81 and so on, or simply change the default port number of iis! As you like.

(4).#bindaddress * Change to bindaddress 127.0.0.1 (open with Notepad/then click Edit/Find)

Other items will be configured only after in-depth use. !After the installation is complete, run http://localhost/

and you can see the apache help file!

[4] Install xxx (note this is the most important thing) (Close apache service)

(1). To install php below, first install php to c:php4 (don’t change the path! Otherwise, the future configuration...hum) I am using php 4.0 .2 version,

(2). Next, copy msvcrt.dll to c:winntsystem32. The system will prompt that the file is being used by windows. It doesn’t matter. It’s normal! Any original files will be overwritten.

(3), rename c:php.ini-dist to php.ini, copy it to c:winnt,

(4), now open the apache configuration file httpd Add the following statement to .conf: (It can be anywhere, but it must be on a separate line)

scriptalias /php7/ "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
Copy after login

(5). Next, modify the php.ini file

to find the windows extensions item: 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 (这一项不要加,没有mssql7.0呀)
extension =php_imap.dll
Copy after login

■ok save ko■

Create the test.php file in your documentroot directory

ok, see php Test page!! So far, the configuration of PHP has been completed!

Next, you can install jdk by default! Then add the path variable value c:j2sdk*bin(*: different in the windows environment variable The installation path names of versions are different)

Okay, just install iasp and use 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
Copy after login

Next, select

apache server
Copy after login

and then you are asked to select the version number of apche and the path of httpd.conf. After selecting the system, it will automatically configure it. If everything goes well, you can test it!!

Create test.asp

Add variable "resin_home" variable value "c:resin-ee-2.1.4" If you have installed jdk, then there is no need to set anything!

http:/ /www.bkjia.com/PHPjc/845137.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/845137.htmlTechArticleHow to set up a PHP serverHow to set up a PHP server【1】First download the software: (apache) I use The one downloaded from Hurricane Software Park is apache_2.24-win32-x86-no_src!! Download address: http:...
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template