Fortune Telling Collection - Comprehensive fortune-telling - Php source master come in! ! ! !
Php source master come in! ! ! !
2. Install the database
3. Point the website directory to the folder where the website source code is located.
The specific steps are as follows:
===========
===========
===========
Installation configuration of IIS+PHP+MySQL+Zend Optimizer+GD library +phpMyAdmin under Windows 2000/XP/2003.
Keywords: Windows IIS configuration supports PHP+MYSQL.
The configuration method of supporting PHP under Apache is relatively simple, so I won't write it here.
Generally, WIN hosts recommend PHP environment combination: PHP4.4.x+MySQL4.0.x, so the PHP4.4.x+MySQL4.0.x combination installed below is displayed in blue text. If you only need to install the combination of PHP4.4.x+MySQL4.0.x, you only need to look at the relevant content of blue text.
Of course, people who like to experience or WIN2003 system can also try the latest version. It is recommended to combine PHP 5.1.x+MySQL 5.0.x/MySQL 4.1.x.
1. Software preparation: The following is the latest official version as of 2006- 1-20, and the download address is also valid for a long time.
1.PHP, recommended ZIP decompression version of PHP4.4.0:
PHP(4.4.0):
. PHP . net/get/PHP-4 . 4 . 0-win32 . zip/from/a/mirror
[Optional]:
PHP(5. 1.2):
. PHP . net/get/PHP-5. 1.2-win32 . zip/from/a/mirror
2.MySQL, with PHP4, recommended the WIN system installation version of MySQL4.0.26:
MySQL(4.0.26):
. com/soft/244 18.html
. com/soft/ 1262.html
. com/soft/ 10687.html
Suppose C:\ is the system disk of the operating system you are using now. If your current operating system is not installed in C:\, please modify the corresponding path accordingly. At the same time, it is not easy to back up and transfer data on disk C because the system is often reloaded for various reasons.
Select the installation directory, so this article will install all PHP-related software in the D:\php directory, and this path can be set by yourself. If you installed in a different directory, please modify the corresponding path below accordingly.
Second, install PHP: The installation path of PHP in this article is D:\php\php4\
(To avoid confusion, the installation path of PHP5. 1.x version is D:\php\php5\).
(1), after downloading, get php-4.4.0-Win32.zip, unzip it to the D:\php directory, get the secondary directory php-4.4.0-Win32, rename it php4, and get the php file storage directory D:\php\php4\[ If it is php5.65438,
];
(2) Add directory D:\php\php4 and directory D:\ PHP \ PHP 4 \ dll[
PHP5 is D:\php\php5\
] to c:\Windows\system32(win2000 system is c:/winnt/system32/), overwriting the existing dll file;
(3) Open php.ini-dist with Notepad, and use the search function of Notepad to search for changes:
search
Code:
[Copy to Clipboard]
Register_globals = Off, change Off to On, that is, register _ globals = On;;
Note: This corresponds to the global variable function of PHP. Considering that many PHP programs need global variable functions, please pay attention to the rigor of -PHP programs after opening. If there is no need to recommend, it will remain closed by default.
Search again
Code:
[Copy to Clipboard]
Extension_dir =, and point its path to the extensions directory under your PHP directory, for example, change extension_dir =. /" to extension _ dir = " d:/PHP/PHP 4/extensions/";
Directory of PHP extension functions [PHP5 correspondingly changed to extension _ dir = "d:/PHP/PHP 5/ext/"]
Create a folder named tmp under D:\php.
seek
Code:
[Copy to Clipboard]
; Upload_tmp_dir = will; Upload_tmp_dir The comment character of this line, that is, semicolon ";" In the front. Remove to make this line valid in the php.ini document. Upload_tmp_dir is a temporary path to define the storage of uploaded files. You can also modify and define the absolute path here. The directory set here must have read and write permissions.
Here I set upload_tmp_dir = D:/php/tmp (that is, the folder established earlier).
Search and find
Code:
[Copy to Clipboard]
; Windows extensions put the following common items in front; get rid of
Code:
[Copy to Clipboard]
; extension=php_mbstring.dll
Code:
[Copy to Clipboard]
; extension=php_curl.dll
Code:
[Copy to Clipboard]
; extension=php_dbase.dll
Code:
[Copy to Clipboard]
; extension=php_gd2.dll
This is used to support GD library, which is generally needed and required.
Code:
[Copy to Clipboard]
; extension=php_ldap.dll
Code:
[Copy to Clipboard]
Extension=php_zip.dll Delete the preceding ";"
For the version of PHP5, you still need to know.
Code:
[Copy to Clipboard]
; Extension=php_mysql.dll and delete the preceding ";" That's right.
This is used to support MYSQL. Because PHP5 loads and runs MYSQL as an independent module, it needs to support MySQL.
seek
Code:
[Copy to Clipboard]
; Session.save_path = Delete the front end; No, this article will be set here.
session.save_path = D:/php/tmp
You can choose what you need to get rid of in front; Then save the file as php.ini to the directory C: \ Windows (C:\WINNT under Windows 2000), and change the file suffix to ini to get C: \ Windows \ PHP. Ini (C:\WINNT\php.ini under ini(Windows 2000).
I successfully configured PHP. Examples of INI files are for your reference:
/iis/php4/php.ini
The corresponding version is PHP4.4.0.
/iis/php5/php.ini
The corresponding version is PHP5. 1. 12.
If the path is the same as this article, you can directly save it in the directory C: \ Windows (C:\WINNT under Windows 2000) for use; If the path is the same as this article, it can be saved directly in the directory C: \ Windows (C:\WINNT under Windows 2000).
Friends often complain that they can't upload large files or run some programs over time. You can find the following contents in PHP. INI is modified in c: \ windows (C:\WINNT under windows 2000) directory:
Max _ execution _ time = 30 This is the longest running time of each script, which can be modified by itself, in seconds.
Max _ input _ time = 60 This is the time that each script can consume, and the unit is also seconds.
Memory _ limit = 8M This is the maximum memory consumption for script running, and you can increase it yourself.
Maximum file size for uploading = 2M;; The maximum allowable size of uploaded files can be changed by yourself. Some photo forums need this larger value.
(4) Configure IIS to support PHP:
First of all, you must ensure that IIS is properly installed in the system. If not, you need to install IIS first. The installation steps are as follows:
IIS installation under Windows 2000/XP;
Log in to the system as an administrator account, insert the Windows 2000 installation CD into the CD-ROM drive, enter the control panel, click Add/Remove Programs, click Add/Remove Windows components on the left, select Internet Information Services (IIS) in the pop-up window, and click the details button below to select components. The following components are required: Internet Service Manager, World Wide Web server and public files. Confirm the installation.
After the installation is completed, open Services in Administrative Tools in Control Panel, and then select IIS Management Services and World Wide Web Publishing Services. If not, start them.
IIS installation under Windows 2003:
Since IIS 6.0 of Windows 2003 is integrated in the application server, IIS 6.0 will be installed by default when installing the application server. Click Configure Your Server in the start menu, and select the application server (IIS, ASP.NET) on the left in the open Configure Your Server wizard. Click Next to display the Application Server Options. By default, you can select all components installed with the application server. Click "Next" to open the "Selection Summary Interface", prompting the options in this installation, and the configuration program will automatically install the configuration according to the options in "Selection Summary".
Open a browser and enter:
/index.rar
After downloading, unzip it to the root directory of your site and access it.
Third, install MySQL:
For MySQL4.0.26, you get mysql-4.0.26-win32.zip, unzip it to mysql-4.0.26-win32 directory, double-click the Next step to execute Setup.exe, select the installation directory as D:\php\MySQL, and the installation method is custom installation, then click Next all the way.
After the installation is completed, enter and run at the CMD command line:
Code:
[Copy to Clipboard]
D: \ PHP \ MySQL \ bin \ mysqld-nt-install If the service is installed successfully, the system service is installed successfully.
Create a new text file and save it as my.ini Edit and configure my.ini Here is a reference configuration.
(
/iis/my.ini
You can download it and save it directly to WINDOWS or WINNT directory for use)
Code:
[Copy to Clipboard]
[mysqld]
basedir=D:/php/MySQL
#MySQL directory
datadir=D:/php/MySQL/data
The directory where the #MySQL database is located can be changed to another directory where the database is stored.
# language = D:/PHP/MySQL/share/ your language directory
#port=3306
Setting variable = Maximum number of connections =800
Jump lock
set-variable = key _ buffer = 5 12M
set-variable = max _ allow _ packet = 4M
set-variable = table _ cache = 1024
Set variable = sort buffer =2M
set-variable = thread_cache=64
Set variable = connection buffer size =32M.
Set variable = record buffer =32M.
Set variable = thread concurrency =8
set-variable = myisam _ sort _ buffer _ size = 64M
set-variable = connect _ time out = 10
set-variable = wait _ time out = 10
server-id = 1
[isamchk]
Set- variable = key_buffer= 128M
Set variable = sort buffer = 128M.
Set variable = read buffer =2M.
Set variable = write buffer =2M.
[myisamchk]
Set- variable = key_buffer= 128M
Set variable = sort buffer = 128M.
Set variable = read buffer =2M.
Set variable = write buffer =2M.
[WinMySQLadmin]
Server = d:/PHP/MySQL/bin/MYsqld-nt.exe Save and copy this my. INI file to C: \ Windows directory (C:\WINNT under Windows 2000).
Return to the CMD command line, enter and run:
Code:
[Copy to Clipboard]
The net start mysqlMySQL service is starting.
MySQL service started successfully.
MySQL service will be started;
Modify the ROOT password under DOS: Of course, after installing PHPMYADMIN, you can also modify the password through PHPMYADMIN.
Format: mysqladmin -u username -p old password and new password.
Example: Add a password to root user xqin.com.
First, enter the CMD command line, go to the bin directory under the MYSQL directory, and then type the following command.
Mysqladmin -uroot password xqin.com
Note: Because root didn't have a password at first, you can omit the old password of item -p p..
d:\ PHP \ MySQL \ bin & gt; Mysql admin-uROOT password After xqin.com entered the car, the ROOT password was set to xqin.com.
If you download MySQL5.x or MySQL4. 1.x, such as mysql-5.0. 18-win32: double-click to execute Setup.exe after decompression, select Next after custom custom installation, and then select Next after installation path. Here we choose D:\php\MySQL, continue to the next step, skip the registration and complete the installation.
After the installation is completed, you will be prompted whether to configure it immediately. Select "Yes" to configure. Of course, there is also a configuration wizard MySQL server instance configuration wizard in the general post-installation menu. After running, you can configure and set the ROOT password according to the following steps.
Select the standard configuration after the next step.
Next, check the Include ... path.
Next, set the ROOT password. It is suggested that the proxy setting be more complicated to ensure the security of the server!
After the application is completed, my. INI configuration files will be generated in the D:\php\MySQL directory, and MySQL services will be added and started.
If your MySQL installation is wrong, uninstalling and reloading can't solve it. Here is a gadget system service manager.
/iis/ser.rar
, which is used to delete the existing MYSQL service after uninstalling, and install it according to the above instructions after restarting. Usually it can be installed successfully.
Fourth, install Zend optimizer:
After downloading, you can get ZendOptimizer-2.6.2-Windows-i386.exe. Double-click install directly. When you select a Web server during the installation, please select IIS, and then you will be prompted whether to restart the Web server. Select Yes and prompt you whether to back up php.ini before completing the installation. Click OK to complete the installation. I installed to D:\php\Zend here.
The directories in the following two steps are selected according to your own default website directory. Of course, you can also choose the D:\php\Zend directory.
Zend Optimizer's installation wizard will automatically modify php.ini according to your choice to help you start this engine. Let's briefly introduce the configuration options of Zend Optimizer. The following is the default configuration code in php.ini after my installation (the content after semicolon is a comment):
Zend _ extension _ ts = " D:\ PHP \ Zend \ lib \ zendextensionmanager . dll "
; Installation path of Zend optimizer module on hard disk.
Zend _ extension _ manager . Optimizer _ ts = " D:\ PHP \ Zend \ lib \ Optimizer-2 . 6 . 2 "
; By default, there is no need to modify the directory where the optimizer is located.
Zend _ optimizer . optimization _ level = 1023
; Optimization degree, here defines how many optimization processes to start. The default value is 15, which means that 1-4 optimization processes are started at the same time. We can change this value to 1023, which means that all 10 optimization processes have been started.
After calling the phpinfo () function, it displays:
Zend Engine v 1.3.0, copyright (c)1998-2004 Zend technologies with Zend extension manager v1.0.9, copyright (c) 2003-2006, By Zend Technologies with Zend Optimizer V2.6.2, copyright (c) 1998-2006, Zend Technologies indicates that the installation is successful.
- Related articles
- Who will attack the green cp?
- What is the fate of the tortoise in fortune telling? _ What is the life of the tortoise in fortune telling?
- What are the names of "Mahjong 3' s Ancient Intimate Contact"?
- Fire type
- Copper fortune-telling turntable
- What does the maglev train use to suspend the train?
- Rust lake Hotel Raiders Mr. Lu's Room 1 Game Solution Play Story
- Are men with small feet blessed? Is his fortune prosperous and profound?
- The fortune teller said that my son 12 years old can only wear gold ornaments! Is it true?/You don't say. /You don't say. Can you believe it?
- Fortune-telling of cattle _ Fortune-telling of zodiac cattle