In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to install and configure IIS6.0+PHP+MySQL under win2003". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn how to install and configure IIS6.0+PHP+MySQL under win2003.
Installation configuration of IIS+PHP+MySQL
There are two ways to install PHP under Windows: manually or using the installer. According to PHP's official manual, the best option to install PHP is to install it manually. The best way to install PHP in a manual installation is to put all PHP-related files in the same directory and set this directory in the system's PATH environment variable.
ISAPI (Internet Server Application Program Interface): that is, the Internet server application programming interface.
CGI (Common Gateway Interface): common gateway interface
Installer installation
The Windows installer for PHP can be downloaded from http://www.php.net/downloads.php.
Click PHP 5.1.2 installer to download.
It installs the CGI version of PHP for IIS, PWS, and Xitami and configures the web server.
The installer does not contain any external PHP extensions (PHP_*.dll).
If necessary, you can find it in the Windows ZIP package and PECL.
Note: although the Windows installer is the easiest way to make PHP work, it has many limitations.
For example, it does not support automatic installation of PHP extensions. Using the installer to install PHP is not the best way. Warning: please note that PHP installed in this installation is not safe.
If you need a secure PHP setting, it is best to install it manually and set each option manually.
The automatic installer allows users to use PHP immediately, but that doesn't mean it can be used on an online server. Manual installation
The manual installer for PHP can be downloaded from http://www.php.net/downloads.php. Click PHP 5.1.2 zip package to download. Although there are many all-in-one installers and a PHP installer for Microsoft Windows has been released, users are advised to take the time to manually install PHP themselves.
Because only in this way can we have a better understanding of the system and be able to install PHP extensions more easily when needed.
At the same time, the server module provides better performance and more functions than CGI executable programs.
The CLI version is designed to use PHP command-line scripts.
Php5ts.dll is required for both the CGI and CLI executables as well as the web server module.
You must make sure that the file can be found in the PHP installation path. The search order for the DLL is:
1. The directory where the php.exe is called, or the directory of the web server when using the ISAPI module (for example, C:\ Program Files\ Apache Group\ Apache2\ bin). 2. Any directory specified in the PATH environment variable of Windows. For php5ts.dll to be searched correctly, there are three options: copy the file to the Windows system directory, copy the document to the directory of the web server, or add the PHP directory (for example, d:\ PHP) to the PATH environment variable. For better maintenance in the future, it is recommended that you use the last option to add the PHP directory to the PATH environment variable, as this makes it easier to upgrade PHP in the future.
The following describes the manual installation steps of PHP: the first step: I unzipped and put it directly into the PHP directory of the d disk, so it will be much easier to find files. After unzipping, my PHP directory is d:\ PHP.
Step 2: add the PHP directory to the PATH environment variable, (my computer-> Properties-> Advanced-> Environment variable-> system variable-> find the variable path and click to edit it and add it as d:\ php; is the path where you install PHP. Note that there is a semicolon separation between each variable. If there is no semicolon in front, please add it. Please pay attention to the demo. If you don't understand, please refer to the attached DOC document.
Step 3: set up a valid configuration file for PHP, php.ini. There are two ini files, php.ini-dist and php.ini-recommended, in the ZIP package. Php.ini-recommended is recommended because performance and security are optimized in this file. Please read the comments in this file carefully, as it is modified from php.ini-dist and will have a greater impact on the settings. For example, set display_errors to off and magic_quotes_gpc to off. In addition to reading these sections, you can also learn about ini settings and manually set up each configuration item. If you want the most secure setting, this is the best way, although PHP is also safe by default. First rename D:\ PHP\ php.ini-recommended to php.ini. Then use notepad to open php.ini, look for register_globals = Off, change off to On (there are two places) here can generally solve the problem of blank installation of the operation forum. Then look for short_open_tag = Off, change off to On, and change extension_dir = ". /" to extension_dir = "d:\ PHP\ ext" (specify the directory of the dynamic link library, the difference between php5 and php4 is that the directory of the dynamic link library has changed, which is explained in detail in its document structure) and then look for it again. Extension=php_mbstring.dll, remove extension=php_mbstring.dll from the semicolon in front of the following sentences. If it is not selected, there will be a red prompt with phpMyAdmin.
Extension=php_dba.dll
Extension=php_dbase.dll
Extension=php_filepro.dll optional
Extension=php_gd2.dll supports GD libraries, generally
Extension=php_imap.dll optional
Extension=php_ldap.dll
Extension=php_mysql.dll supports MySQL and then modifies some file upload and memory usage maximum limits:
Memory_limit = 20m memory capacity
Post_max_size = 20m flash capacity
Upload_max_filesize = 20m attachment capacity above 3 places please modify everything else according to your actual needs, save and exit.
Step 4: make the php.ini file used by PHP under Windows, (my computer-> Properties-> Advanced-> Environment variable-> system variable-> Click add-> variable name "PHPRC"-> variable value "D:\ PHP" "that is, the path where you install PHP-> make sure all the way) = pay special attention to the following steps (friends who install for the first time do not need this step) friends who have previously installed PHP will copy all files with the suffix DLL under D:\ PHP and D:\ PHP\ ext to
Copy php.exe, php-win.exe and php.ini-dist under C:\ WINDOWS\ system32 and D:\ PHP to C:\ WINDOWS. It is possible to cause some special problems when installing PHPWIND, so try repeating it. Copy all files with the suffix DLL under D:\ PHP and D:\ PHP\ ext to C:\ WINDOWS\ system32 and copy php.exe, php-win.exe and php.ini under D:\ PHP to C:\ WINDOWS. The above steps (friends who install for the first time do not need this step) =
After restarting the computer, the variable setting takes effect, and then do the following steps. Open the internet information service manager, enter the management of the IIS site to add a new ISAPI account name, we can easily enter one, for the convenience of recording in the future, I entered php, in the next download the location of the php5isapi.dll file. Then open up the subject and target. Check the configuration and create a new executable file named .PHP in the location where the ISAPI application is saved. We can also select the location of the php5isapi.dll file. Just make sure! Restart the IIS Service Manager. Now our IIS can parse .PHP files.
Create a new file with notepad, the contents of the file input: save as Phpinfo.php, enter http://localhost/Phpinfo.php in the browser address to test whether PHP is successfully installed and run.
The successful installation will show the information related to the pre-PHP. If it cannot be opened, please check the above step if you can't open it and prompt the file download or 404 error. Meaning: if you are a WINDOWS 2003 system, you also need to add a new exhibition to the web applications show. see the same option to select the location of php5isapi.dll this file. in the past, some friends would choose "allow all unknown ISAPI exhibitions". It is safer for us to do so now.
Thank you for reading, the above is the content of "how to install and configure IIS6.0+PHP+MySQL under win2003". After the study of this article, I believe you have a deeper understanding of how to install and configure IIS6.0+PHP+MySQL under win2003. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.