Home  >  Article  >  Backend Development  >  Win2000 installation Apache+PHP4+MySQL_PHP tutorial

Win2000 installation Apache+PHP4+MySQL_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 17:22:55733browse

1. Install APACHE1.3.9 (configure the httpd.conf file in the conf directory)
 1.
 #BindAddress * changed to BindAddress 127.0.0.1
 #Servername new.host.name changed to Servername localhost
 
 2.
Let your APACHE support PHP4. Add the following sentences:
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"
 3.
Set up the Apache virtual directory and add the following lines:
Alias ​​/test/ "c:/php3/test/"
Alias ​​/jjjj/ "d:/timenet/"
4.
Add the default startup document:
DirectoryIndex index.html
DirectoryIndex index.htm
DirectoryIndex index.php
DirectoryIndex index.php3
DirectoryIndex index.php4
5.
Test file info.php:
<? phpinfo(); ?>
Enter http://localhost/info.php in the browser
2. php4 installation (php-4.0.2pl2-Win32 .zip)
 1. Unzip the software package to c:php4.
 2. Then copy all dll files in the directory to c;winntsystem32. Do not overwrite existing dll files. Copy the two files php.exe and php.ini-dist in the directory to c:winnt;


3. Rename winntphp.ini-dist to php.ini, and find; the Windows Extensions item will be
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
If there is, remove the semicolon in front of it. If not, add it yourself. This part is prone to errors because invalid or non-existent php_*.dll files are specified in the php.ini file. Loading these error messages may also cause the browser to be unable to find the server.
 4. Other settings of PHP.INI:
asp_tags = On; Allow the use of ASP style tags
upload_max_filesize = 2097152; Maximum bytes of uploaded files (about mysql settings)
mysql.default_host = localhost;
mysql.default_user = root;
mysql.default_password= yourpasswd;
Above (when you use the include function, only files in the specified directory can be included)
include_path = path1;path2;path3 ....
(Only php files under the c:php4 est directory can be executed)
doc_root=c:php4 est
3. MySQL installation (mysql-3.23.27-beta-win.zip )
 1. Install mysql first. The default installation path is: c:mysql
 2. Open "Run" and enter C:mysql inmysqld-nt.exe –install
 3. Open "Administrative Tools" -> "Services", find the "mysql" service, and start it. Restart windows2000

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/532268.htmlTechArticle1. Install APACHE1.3.9 (configure the httpd.conf file in the conf directory) 1. #BindAddress * Change to BindAddress 127.0.0.1 #Servername new.host.name Change to Servername localhost 2. Let your...
Statement:
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