Windows 98下安装phpMyAdmin的方法
window
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呵呵!
差了好远呢!
好了,祝大家好运!

Hot AI Tools

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

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

Undress AI Tool
Undress images for free

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

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.

The process of starting MySQL in Docker consists of the following steps: Pull the MySQL image to create and start the container, set the root user password, and map the port verification connection Create the database and the user grants all permissions to the database

The main role of MySQL in web applications is to store and manage data. 1.MySQL efficiently processes user information, product catalogs, transaction records and other data. 2. Through SQL query, developers can extract information from the database to generate dynamic content. 3.MySQL works based on the client-server model to ensure acceptable query speed.

The core benefits of PHP include ease of learning, strong web development support, rich libraries and frameworks, high performance and scalability, cross-platform compatibility, and cost-effectiveness. 1) Easy to learn and use, suitable for beginners; 2) Good integration with web servers and supports multiple databases; 3) Have powerful frameworks such as Laravel; 4) High performance can be achieved through optimization; 5) Support multiple operating systems; 6) Open source to reduce development costs.

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 is suitable for web development and content management systems, and Python is suitable for data science, machine learning and automation scripts. 1.PHP performs well in building fast and scalable websites and applications and is commonly used in CMS such as WordPress. 2. Python has performed outstandingly in the fields of data science and machine learning, with rich libraries such as NumPy and TensorFlow.

PHP is a server-side scripting language used for dynamic web development and server-side applications. 1.PHP is an interpreted language that does not require compilation and is suitable for rapid development. 2. PHP code is embedded in HTML, making it easy to develop web pages. 3. PHP processes server-side logic, generates HTML output, and supports user interaction and data processing. 4. PHP can interact with the database, process form submission, and execute server-side tasks.

Laravel is a PHP framework for easy building of web applications. It provides a range of powerful features including: Installation: Install the Laravel CLI globally with Composer and create applications in the project directory. Routing: Define the relationship between the URL and the handler in routes/web.php. View: Create a view in resources/views to render the application's interface. Database Integration: Provides out-of-the-box integration with databases such as MySQL and uses migration to create and modify tables. Model and Controller: The model represents the database entity and the controller processes HTTP requests.
