Home Backend Development PHP Tutorial Tips Sharing PHP Server Setup_PHP Tutorial

Tips Sharing PHP Server Setup_PHP Tutorial

Jul 15, 2016 pm 01:34 PM
apache php one Download software share I Skill server use first

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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

PHP and Python: Comparing Two Popular Programming Languages PHP and Python: Comparing Two Popular Programming Languages Apr 14, 2025 am 12:13 AM

PHP and Python each have their own advantages, and choose according to project requirements. 1.PHP is suitable for web development, especially for rapid development and maintenance of websites. 2. Python is suitable for data science, machine learning and artificial intelligence, with concise syntax and suitable for beginners.

How to set the cgi directory in apache How to set the cgi directory in apache Apr 13, 2025 pm 01:18 PM

To set up a CGI directory in Apache, you need to perform the following steps: Create a CGI directory such as "cgi-bin", and grant Apache write permissions. Add the "ScriptAlias" directive block in the Apache configuration file to map the CGI directory to the "/cgi-bin" URL. Restart Apache.

How to start apache How to start apache Apr 13, 2025 pm 01:06 PM

The steps to start Apache are as follows: Install Apache (command: sudo apt-get install apache2 or download it from the official website) Start Apache (Linux: sudo systemctl start apache2; Windows: Right-click the "Apache2.4" service and select "Start") Check whether it has been started (Linux: sudo systemctl status apache2; Windows: Check the status of the "Apache2.4" service in the service manager) Enable boot automatically (optional, Linux: sudo systemctl

The Enduring Relevance of PHP: Is It Still Alive? The Enduring Relevance of PHP: Is It Still Alive? Apr 14, 2025 am 12:12 AM

PHP is still dynamic and still occupies an important position in the field of modern programming. 1) PHP's simplicity and powerful community support make it widely used in web development; 2) Its flexibility and stability make it outstanding in handling web forms, database operations and file processing; 3) PHP is constantly evolving and optimizing, suitable for beginners and experienced developers.

How to delete more than server names of apache How to delete more than server names of apache Apr 13, 2025 pm 01:09 PM

To delete an extra ServerName directive from Apache, you can take the following steps: Identify and delete the extra ServerName directive. Restart Apache to make the changes take effect. Check the configuration file to verify changes. Test the server to make sure the problem is resolved.

PHP: Handling Databases and Server-Side Logic PHP: Handling Databases and Server-Side Logic Apr 15, 2025 am 12:15 AM

PHP uses MySQLi and PDO extensions to interact in database operations and server-side logic processing, and processes server-side logic through functions such as session management. 1) Use MySQLi or PDO to connect to the database and execute SQL queries. 2) Handle HTTP requests and user status through session management and other functions. 3) Use transactions to ensure the atomicity of database operations. 4) Prevent SQL injection, use exception handling and closing connections for debugging. 5) Optimize performance through indexing and cache, write highly readable code and perform error handling.

How to connect to the database of apache How to connect to the database of apache Apr 13, 2025 pm 01:03 PM

Apache connects to a database requires the following steps: Install the database driver. Configure the web.xml file to create a connection pool. Create a JDBC data source and specify the connection settings. Use the JDBC API to access the database from Java code, including getting connections, creating statements, binding parameters, executing queries or updates, and processing results.

PHP's Purpose: Building Dynamic Websites PHP's Purpose: Building Dynamic Websites Apr 15, 2025 am 12:18 AM

PHP is used to build dynamic websites, and its core functions include: 1. Generate dynamic content and generate web pages in real time by connecting with the database; 2. Process user interaction and form submissions, verify inputs and respond to operations; 3. Manage sessions and user authentication to provide a personalized experience; 4. Optimize performance and follow best practices to improve website efficiency and security.

See all articles