win2003系統(tǒng)下IIS6+php5+Zend+MySql+phpMyAdmin的安裝與配置
Jun 08, 2016 pm 05:32 PM好久沒有裝過了,這次安裝又發(fā)現(xiàn)了些問題,gg,baidu搜了一大圈,有的解決方法,有的不可以,把我的配置方法寫一遍,留備用。
目標:win2003下配置iis+php+zend+mysql+phpmyadmin
需要軟件列表:
IIS6: win2003自帶
php: 版本 5.2.5 (最開始用的win下面的msi的安裝包,總是出問題,最后換了zip包進行安裝)
zend: 版本 2.2.0
phpmyadmin: 版本 2.11.5
mysql: 版本 5.0.22-community-nt
以下為參考某網(wǎng)站版本,對于我個人適用
===================================
WIN2003 IIS6.0+ASP.NET+PHP+MYSQL+ZEND配置
第一步? IIS安裝
首先在控制面板里運行"添加刪除程序" 打開 應用程序服務器? 鉤上ASP.NET
雙擊Internet 信息服務(IIS)-- 萬維網(wǎng)服務? 鉤上Active Server Pages? 確定? 安裝
把Win 2003系統(tǒng)盤插入光驅安裝? 或者指向系統(tǒng)文件I386目錄安裝
然后啟用IIS父路徑
打開我的電腦 -- 控制面板 -- 管理工具 -- Internet 信息服務(IIS)管理器 -- 雙擊打開列表
點網(wǎng)站 -- 屬性 -- 主目錄 -- 配置 -- 選項 -- 鉤上 啟用父路徑? 確定
然后修改默認訪問文件? 在文檔里添加刪除
我一般設置Default.htm? Default.html? Default.asp? Default.aspx? Index.htm? Index.html? Index.asp? Index.aspx
第二步? PHP配置
先到php官網(wǎng)下載php安裝包
http://www.php.net/downloads.php
目前最新版是 PHP 5.2.3 zip package
將下載來的 php-5.2.3-Win32.zip 解壓縮到C:PHP
先將C:PHPphp.ini-recommended 重命名為 php.ini,
將這個文件剪貼到C:windows中,確認它有users讀與運行的權限。
用記事本打開C:windowsphp.ini
查找short_open_tag = Off,把off改成On,此處一般能解決運行安裝Discuz!論壇時出現(xiàn)空白的問題
查找extension_dir = "./" 改為 extension_dir = "C:phpext"
查找;extension=php_mbstring.dll,把分號;去掉
查找;extension=php_mysql.dll,把分號;去掉,注意是mysql
查找;extension=php_gd2.dll,把分號;去掉
查找safe_mode = Off 改為: safe_mode = On
查找magic_quotes_gpc = Off? 改為: magic_quotes_gpc = On
下面的是否要修改自己決定:
一些文件上傳以及內存使用最大限制:
post_max_size = 20M 閃存容量
upload_max_filesize = 20M 附件容量
去掉前面的;
extension=php_bz2.dll
extension=php_curl.dll
extension=php_dba.dll
extension=php_dbase.dll
extension=php_gd2.dll
extension=php_imap.dll
extension=php_interbase.dll
extension=php_ldap.dll
extension=php_mbstring.dll
extension=php_mssql.dll
extension=php_mysql.dll
extension=php_pdo_mssql.dll
extension=php_pdo_mysql.dll
extension=php_pdo_odbc.dll
extension=php_sockets.dll
extension=php_xmlrpc.dll
exten

Hot AI Tools

Undress AI Tool
Undress images for free

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

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

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

To safely handle PHP file uploads, you need to verify the source and type, control the file name and path, set server restrictions, and process media files twice. 1. Verify the upload source to prevent CSRF through token and detect the real MIME type through finfo_file using whitelist control; 2. Rename the file to a random string and determine the extension to store it in a non-Web directory according to the detection type; 3. PHP configuration limits the upload size and temporary directory Nginx/Apache prohibits access to the upload directory; 4. The GD library resaves the pictures to clear potential malicious data.

InPHP,variablesarepassedbyvaluebydefault,meaningfunctionsorassignmentsreceiveacopyofthedata,whilepassingbyreferenceallowsmodificationstoaffecttheoriginalvariable.1.Whenpassingbyvalue,changestothecopydonotimpacttheoriginal,asshownwhenassigning$b=$aorp

MySQL supports transaction processing, and uses the InnoDB storage engine to ensure data consistency and integrity. 1. Transactions are a set of SQL operations, either all succeed or all fail to roll back; 2. ACID attributes include atomicity, consistency, isolation and persistence; 3. The statements that manually control transactions are STARTTRANSACTION, COMMIT and ROLLBACK; 4. The four isolation levels include read not committed, read submitted, repeatable read and serialization; 5. Use transactions correctly to avoid long-term operation, turn off automatic commits, and reasonably handle locks and exceptions. Through these mechanisms, MySQL can achieve high reliability and concurrent control.

The most direct way to find the last occurrence of a substring in PHP is to use the strrpos() function. 1. Use strrpos() function to directly obtain the index of the last occurrence of the substring in the main string. If it is not found, it returns false. The syntax is strrpos($haystack,$needle,$offset=0). 2. If you need to ignore case, you can use the strripos() function to implement case-insensitive search. 3. For multi-byte characters such as Chinese, the mb_strrpos() function in the mbstring extension should be used to ensure that the character position is returned instead of the byte position. 4. Note that strrpos() returns f

Character set and sorting rules issues are common when cross-platform migration or multi-person development, resulting in garbled code or inconsistent query. There are three core solutions: First, check and unify the character set of database, table, and fields to utf8mb4, view through SHOWCREATEDATABASE/TABLE, and modify it with ALTER statement; second, specify the utf8mb4 character set when the client connects, and set it in connection parameters or execute SETNAMES; third, select the sorting rules reasonably, and recommend using utf8mb4_unicode_ci to ensure the accuracy of comparison and sorting, and specify or modify it through ALTER when building the library and table.

The most direct way to connect to MySQL database is to use the command line client. First enter the mysql-u username -p and enter the password correctly to enter the interactive interface; if you connect to the remote database, you need to add the -h parameter to specify the host address. Secondly, you can directly switch to a specific database or execute SQL files when logging in, such as mysql-u username-p database name or mysql-u username-p database name

The reason why header('Location:...') in AJAX request is invalid is that the browser will not automatically perform page redirects. Because in the AJAX request, the 302 status code and Location header information returned by the server will be processed as response data, rather than triggering the jump behavior. Solutions are: 1. Return JSON data in PHP and include a jump URL; 2. Check the redirect field in the front-end AJAX callback and jump manually with window.location.href; 3. Ensure that the PHP output is only JSON to avoid parsing failure; 4. To deal with cross-domain problems, you need to set appropriate CORS headers; 5. To prevent cache interference, you can add a timestamp or set cache:f

To design a reliable MySQL backup solution, 1. First, clarify RTO and RPO indicators, and determine the backup frequency and method based on the acceptable downtime and data loss range of the business; 2. Adopt a hybrid backup strategy, combining logical backup (such as mysqldump), physical backup (such as PerconaXtraBackup) and binary log (binlog), to achieve rapid recovery and minimum data loss; 3. Test the recovery process regularly to ensure the effectiveness of the backup and be familiar with the recovery operations; 4. Pay attention to storage security, including off-site storage, encryption protection, version retention policy and backup task monitoring.
