Home  >  Article  >  Backend Development  >  Installing Apache PHP4 MySQL_PHP Tutorial under Windows2000

Installing Apache PHP4 MySQL_PHP Tutorial under Windows2000

WBOY
WBOYOriginal
2016-07-13 17:39:20851browse

Author: Donkey Kong
Email: cheng24@163.net
Content: 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 default startup document:
DirectoryIndex index.html
DirectoryIndex index.htm
DirectoryIndex index.php
DirectoryIndex index.php3
DirectoryIndex index.php4
5. Test file info.php:
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 it; 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 so, 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. PHP.INI other settings:
asp_tags = On ; Allow 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:php4test directory can be executed)
doc_root= c:php4test
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:mysqlbinmysqld-nt.exe –install
3. Open "Administrative Tools" -> "Services", find the "mysql" service, and start it. Restart windows2000.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/486420.htmlTechArticleAuthor: Donkey Kong Email: cheng24@163.net Content: 1. Install APACHE1.3.9 (in the configuration conf directory httpd.conf file) 1. #BindAddress * Change to BindAddress 127.0.0.1 #Servername ne...
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