Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The skill of setting up PHP Server

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article introduces the relevant knowledge of "PHP server erection skills". Many people will encounter such a dilemma in the operation of actual cases, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

PHP server erection [1] first download the software:

(apache) I used the apacheet 1.3.26 win32, which I downloaded from the Huajun Software Park.

(jdk!) There is a link on the home page.

(php4) needless to say, code-labs can also be found on the official website of php!

(iasp) one of the most important software.

PHP server erection [II] installation of apache

1, double-click the installation file of apache, just like the ordinary windows program installation, just click "next" along the way.

2. The installer requires you to enter your network domain (network domain name: shaped like xxx.com), server domain (server domain name: shaped www.xxx.com) and webmaster's e-mail. If there is, please fill it in truthfully, and if you don't have it, you can fill in it casually 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. "next" all the way to "finish". The installation is over.

At this point, your apache has been started, you can enter: http://127.0.0.1 in the ie address bar to see. In the "Services" item of the Administrative tools, you can also find the apache service. In the future, apache can be used as a windows2000 service to run with the startup of the machine!

PHP server erection [3] configuration apache

The main items to be modified when opening the configuration file are:

(1) find documentroot. This statement specifies the path to your site, that is, the directory where your home page is placed. You can use the default, or you can specify one yourself, but remember, don't add "/" at the end of this sentence.

(2) directoryindex was found. This is your site * display home page, add index.htm index.php index.php3 index.cgi index.pl index.asp after index.html, and so on. Note that there is a space between each type!

(3) A special note is port (port number). If iis is not installed, keep 80 unchanged, otherwise, change it (because iis's web service occupies 80%), change it to 81, etc., or simply change the default port number of iis! Whatever you want.

(4). # bindaddress * changed to bindaddress 127.0.0.1 (open it with notepad / then click Edit / find)

The rest are all items that will be configured only after in-depth use! Run http://localhost/ after installation

You can see the apache help file!

PHP server erection [IV] install xxx (note that this is the most important) (turn off the apache service)

(1) install php below first install php to c:\ php4 (don't change the path! Otherwise, the future configuration. Ahem) I use version 4.0.2 of php

(2), the next step is to copy msvcrt.dll to c:\ winnt\ system32\ the system will prompt that the file is being used by windows, never mind the normal phenomenon! Overwrite any original files.

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

(4) all right, now open the configuration file httpd.conf of apache and add the following statement: (anywhere, but 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 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, there is no mssql7.0)

Extension = php_imap.dll

■ ok save ko ■

Create the test.php file in your documentroot directory

Ok saw the test page of php! At this point, the configuration of php is complete!

The following installation of jdk is also the default installation on it! Then add the path variable value c:\ j2sdk *\ bin to the environment variable of windows (*: different installation pathnames of different versions)

All right, let's install iasp using the default installation. After the installation process, the software will prompt you to set up web server. First, select:

Instant asp native servlet surport option next select apache server

After that, you are required to choose the version number of apche and the path of httpd.conf after the system is automatically configured. If everything goes well, you can test it!

Establish test.asp

Now run http://localhost/test.asp and see helloworld! All right, everything is done. You can use apache!

PHP server set up [5], the above mentioned windows+apache+php+asp operating environment today to talk about on this basis so that apache can also support the operation of jsp.

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

Here's how to install it:

Resin is a .zip file after download. Simply extract it to the specified directory. Here I use c:\ resin-ee-2.1.4 to use the command c:\ resin-ee-2.1.4\ bin\ httpd.exe-install (remove) to 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 then you don't 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

This is the end of the content of "skills for setting up PHP servers". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report