search
HomeBackend DevelopmentPHP TutorialWindows 98下安装phpMyAdmin的方法_PHP

Windows 98下安装phpMyAdmin的方法_PHP

Jun 01, 2016 pm 12:35 PM
cmysqlCanInstalldocumentmethodTable of contents

phpmyadminWindows98

1.安装PHP4

软件获得:国外http://www.php.net;国内http://www.phpchina.com, http://phpuser.com等得到压缩包以后解压缩到c:\php4目录下.
拷贝php4ts.dll,msvcrt.dll到C:\windows\system
把php.ini-dist改名为php.ini拷贝到c:\windows\
编辑这个文件,很简单,只要更改少许几个选项.
extension_dir = c:\php4
extension =php_ldap.dll
extension =php_zlib.dll
extension =php_calendar.dll
extension =php_exif.dll
extension =php_ftp.dll
extension =php_mssql70.dll
extension =php_imap.dll
有就去掉前面的分号,没有就自己加上。建议先不要更改这个部分,否则容易出现错误.
这里出现:

X-Powered-By: PHP/4.0.0
Content-type: text/html

就是因为在php.ini文件中指定加载了无效的或者不存在的php_*.dll 文件,加载这些错误信息还可能导致浏览器寻找不到服务器.在经历了漫长而艰苦的等待以后,IE对你说:
兄弟! 找不到服务器!请节哀顺便.....哈哈!
完了就这么简单,还有了,
如果你用的WEB Server是PWS, 那么还要更改一个地方!
browscap = C:\windows\system\inetsrv\browscap.ini
并且修改一下PWS-php4.reg 文件
".php"=" [PUT PATH HERE]\\php4isapi.dll"
改为
".php"="C:\\php4\\ php4isapi.dll"
只需指出php4isapi.dll文件的位置
还可以填加对其他后缀名,具体文件为:
REGEDIT4
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services
\w3svc\parameters\Script Map]
".php"="C:\\php4\\ php4isapi.dll"
".php3"="C:\\php4\\ php4isapi.dll"
".php4"="C:\\php4\\ php4isapi.dll"
".phtml"="C:\\php4\\ php4isapi.dll"

保存退出,双击执行,写入注册表!
其他细部设置:
asp_tags = On ; 允许使用ASP风格的标记
upload_max_filesize = 2097152;上载文件的最大字节
mysql.default_host = localhost;
mysql.default_user = root;
mysql.default_password= yourpasswd;
以上关于mysql的设置可以在my.cnf中完成.这里只给出了很少的部分,其它内容的设置还要靠大家自己去摸索!
include_path = \path1;\path2;\path3....
在您使用include函数时,只有被指定的目录下的文件才可以被包含.
关于doc_root与user_dir的设置方法.
设置了doc_root以后,只有doc_root目录下面的php文件可以执行!
比如doc_root=c:\php4\test
那么PHP文件只有放到这个目录下面才能被解释执行.
当没设置user_dir时,被控制文件读取的是doc_root。
如http://localhost/doc.php3这个URL,打开了 c:\php4\test\下面的doc.php3文件,而不是c:\program
files\....\htdocs\下面的doc.php3文件。关于 user_dir的设置问题,本人还是没有搞清楚,希望高手指教!
2.安装APACHE1.3.12

软件获得:http://www.apache.org;http://www.phpchina.com; http://phpuser.com;http://www.phpsite.net。

软件的安装很简单,下载完后直接双击执行安装.
配置conf目录下的httpd.conf文件.
#BindAddress *改为 BindAddress 127.0.0.1
#Servername new.host.name改为Servername localhost
出现类似的错误的原因可能就是没有指定servername.
"cannot determine local host name,use servername to set it manually"

好了,你的apache已经可以运行了!
运行你的apache.应该显示:
Apache/1.3.12 (Win32) running...
注意,这里假设您的APACHE是安装在默认目录下即:
C:/Program Files/Apache Group/Apache
否则文档中的serverroot以及docmentroot 等也要更改。比如你是安装在c:\apache下.那么
serverroot = c:/apache docmentroot = c:/apache/htdocs
其他选项依次类推
如果你的机器还安装了别的服务器程序,而你又希望他们共同为你效劳那么你就必须改一下port ,默认为80,你可以改为81或者8080. 不要使用其他一些常用的端口比如21,23,
25等(废话^_^).

好了,下面让你的APACHE来支持PHP4. 加上下面这么几句,基本上就可以了!

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"

;不要写成
;Action application/x-httpd-php4 "c:/php4/php.exe"
;否则会出错的.
在httpd.conf中分别找到相似的行,加进去,这样容易维护一些. 关于默认启动文档:apache的默认启动文档为index.html DirectoryIndex
index.html 把它改为你想要的默认启动文档
想要支持更多文档要象这样:
DirectoryIndex index.htm
DirectoryIndex index.php
DirectoryIndex index.php3
DirectoryIndex index.php4
完成了! 写一个测试文件:


phpinfo();
?>
保存为info.php

在浏览器中输入http://localhost/info.php
别忘了要先运行APACHE啊!
3.安装PWS
软件获得:WIN98光盘add-ons\pws目录内。呵呵,直接setup就可以了,无须配置!安装完了后,运行PWS,点高级建立一个虚拟目录,点编辑属性修改其属性.默认为读取和脚本中间还有一个执行,在前面打上勾,把它选上 .这个目录下面的PHP4文件就可以运行了!

注意在PHP.INI文件中设置
browscap = C:\windows\system\inetsrv\browscap.ini
如果没有设置的话,PHP4是不可能跑起来的.
4.安装MYSQL(mysql-3.23.21-beta-win)

软件获得:国外http://www.mysql.com; 国内http://www.phpchina.com;http://phpuser.com, http://www.phpsite.net。

运行setup文件执行安装,完毕后应该没有任何提示,这时mysql
已经安装到你的系统中去了,默认目录为:c:\mysql
在c:\mysql下有一个文件my-example.cnf改名为 my.cnf拷贝到c:\下面.
无须修改!!!
可以加入用户名,密码,登陆主机,数据库和端口等信息!
到c:\mysql\bin目录下. 双击mysqld执行!正常情况下DOS窗口一闪而过. 建议打开一个MS-DOS窗口在c:\mysql\bin>提示符下输入
mysqld
执行MYSQL守护进程!
[如果没有mysqld就应该有mysqld-shareware.exe执行它也一样的]
如果没有任何提示,表示没有错误!你的mysql已经开始运行了! 你可以试着输入几个命令来测试一下:

C:\mysql\bin>mysqladmin ping
mysqld is alive
C:\mysql\bin>mysqlshow
+-----------+
| Databases |
+-----------+
| mysql |
| test |
+-----------+


以上为正常情况!
输入mysql进行登陆!

C:\mysql\bin>mysql C:\mysql\bin>mysql -u root -p
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 8 to server version: 3.23.21-beta-debug
Type 'help' for help.
mysql>
记得在登陆之前运行mysqld,否则就会出现这样的错误提示:

Can't connect to MySQL server on 'localhost'
恩,你遇到过吗?反正我在开始运行mysql的时候,就是这样!
5.安装Phpmyadmin VER:(phpMyAdmin_2.1.0)

这就是一个用php写的应用程序,直接拷贝到可执行php的目录下运行即可.比如
c:/program files/apache group/apache/htdocs/phpmyadmin/
修改一下config.inc.php3文件,把

require("english.inc.php3");
改为
require("chinese_gb.inc.php3");

要是您的E文足够好的话,不改也行啊!反正我的E文是^@#^%^%$&^&^*@$#@$#&*&*&*(()(#@!

呵呵!
好了,执行一下建表任务,看看好不好用!!!
我已经讲完了,这是我的做法!建成的调试环境还可以! 我现在还没有发现什么问题!由于本人也是初学PHP, 所以文中的错误再所难免,希望高手们多多批评指正!


如果您在相似的环境中调试出现了麻烦,不妨参照我的方法做一下, 如果出现了什么问题的话,请和我联系!

MY_ID : Tony Reeves;Reeves etc...
MY_OICQ: 438937
E-mail : lovesally@126.com
homepg : http://loveline.soyou.edu.cn PHP写成的网站,爱情竹叶
另外讲一点,就是关于PHP,MYSQL等软件的获得途径,建议大家还是到它们的开发组的网站上去下载,速度嘛!绝对不会比国内的网站慢的!而且我发现国内的PHP网站对于这些软件的更新都比较慢!比如phpmyadmin,现在的version是2.1.0,国内的网站大多是2.0.1呵呵!
差了好远呢!
好了,祝大家好运!
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
The Continued Use of PHP: Reasons for Its EnduranceThe Continued Use of PHP: Reasons for Its EnduranceApr 19, 2025 am 12:23 AM

What’s still popular is the ease of use, flexibility and a strong ecosystem. 1) Ease of use and simple syntax make it the first choice for beginners. 2) Closely integrated with web development, excellent interaction with HTTP requests and database. 3) The huge ecosystem provides a wealth of tools and libraries. 4) Active community and open source nature adapts them to new needs and technology trends.

PHP and Python: Exploring Their Similarities and DifferencesPHP and Python: Exploring Their Similarities and DifferencesApr 19, 2025 am 12:21 AM

PHP and Python are both high-level programming languages ​​that are widely used in web development, data processing and automation tasks. 1.PHP is often used to build dynamic websites and content management systems, while Python is often used to build web frameworks and data science. 2.PHP uses echo to output content, Python uses print. 3. Both support object-oriented programming, but the syntax and keywords are different. 4. PHP supports weak type conversion, while Python is more stringent. 5. PHP performance optimization includes using OPcache and asynchronous programming, while Python uses cProfile and asynchronous programming.

PHP and Python: Different Paradigms ExplainedPHP and Python: Different Paradigms ExplainedApr 18, 2025 am 12:26 AM

PHP is mainly procedural programming, but also supports object-oriented programming (OOP); Python supports a variety of paradigms, including OOP, functional and procedural programming. PHP is suitable for web development, and Python is suitable for a variety of applications such as data analysis and machine learning.

PHP and Python: A Deep Dive into Their HistoryPHP and Python: A Deep Dive into Their HistoryApr 18, 2025 am 12:25 AM

PHP originated in 1994 and was developed by RasmusLerdorf. It was originally used to track website visitors and gradually evolved into a server-side scripting language and was widely used in web development. Python was developed by Guidovan Rossum in the late 1980s and was first released in 1991. It emphasizes code readability and simplicity, and is suitable for scientific computing, data analysis and other fields.

Choosing Between PHP and Python: A GuideChoosing Between PHP and Python: A GuideApr 18, 2025 am 12:24 AM

PHP is suitable for web development and rapid prototyping, and Python is suitable for data science and machine learning. 1.PHP is used for dynamic web development, with simple syntax and suitable for rapid development. 2. Python has concise syntax, is suitable for multiple fields, and has a strong library ecosystem.

PHP and Frameworks: Modernizing the LanguagePHP and Frameworks: Modernizing the LanguageApr 18, 2025 am 12:14 AM

PHP remains important in the modernization process because it supports a large number of websites and applications and adapts to development needs through frameworks. 1.PHP7 improves performance and introduces new features. 2. Modern frameworks such as Laravel, Symfony and CodeIgniter simplify development and improve code quality. 3. Performance optimization and best practices further improve application efficiency.

PHP's Impact: Web Development and BeyondPHP's Impact: Web Development and BeyondApr 18, 2025 am 12:10 AM

PHPhassignificantlyimpactedwebdevelopmentandextendsbeyondit.1)ItpowersmajorplatformslikeWordPressandexcelsindatabaseinteractions.2)PHP'sadaptabilityallowsittoscaleforlargeapplicationsusingframeworkslikeLaravel.3)Beyondweb,PHPisusedincommand-linescrip

How does PHP type hinting work, including scalar types, return types, union types, and nullable types?How does PHP type hinting work, including scalar types, return types, union types, and nullable types?Apr 17, 2025 am 12:25 AM

PHP type prompts to improve code quality and readability. 1) Scalar type tips: Since PHP7.0, basic data types are allowed to be specified in function parameters, such as int, float, etc. 2) Return type prompt: Ensure the consistency of the function return value type. 3) Union type prompt: Since PHP8.0, multiple types are allowed to be specified in function parameters or return values. 4) Nullable type prompt: Allows to include null values ​​and handle functions that may return null values.

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Tools

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.