Tips Sharing PHP Server Setup_PHP Tutorial
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
- 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 (Don’t 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 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

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics











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.

PHP and Python have their own advantages and disadvantages, and the choice depends on project needs and personal preferences. 1.PHP is suitable for rapid development and maintenance of large-scale web applications. 2. Python dominates the field of data science and machine learning.

PHP is mainly procedural programming, but also supports object-oriented programming (OOP); Python supports a variety of paradigms, including OOP, functional and procedural programming. PHP is suitable for web development, and Python is suitable for a variety of applications such as data analysis and machine learning.

PHP is suitable for web development and rapid prototyping, and Python is suitable for data science and machine learning. 1.PHP is used for dynamic web development, with simple syntax and suitable for rapid development. 2. Python has concise syntax, is suitable for multiple fields, and has a strong library ecosystem.

The core benefits of PHP include ease of learning, strong web development support, rich libraries and frameworks, high performance and scalability, cross-platform compatibility, and cost-effectiveness. 1) Easy to learn and use, suitable for beginners; 2) Good integration with web servers and supports multiple databases; 3) Have powerful frameworks such as Laravel; 4) High performance can be achieved through optimization; 5) Support multiple operating systems; 6) Open source to reduce development costs.

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.

PHP originated in 1994 and was developed by RasmusLerdorf. It was originally used to track website visitors and gradually evolved into a server-side scripting language and was widely used in web development. Python was developed by Guidovan Rossum in the late 1980s and was first released in 1991. It emphasizes code readability and simplicity, and is suitable for scientific computing, data analysis and other fields.

PHPhassignificantlyimpactedwebdevelopmentandextendsbeyondit.1)ItpowersmajorplatformslikeWordPressandexcelsindatabaseinteractions.2)PHP'sadaptabilityallowsittoscaleforlargeapplicationsusingframeworkslikeLaravel.3)Beyondweb,PHPisusedincommand-linescrip
