[原创]WIN98/ME安装APACHE+MYSQL+PHP安装最终技巧...
apache|mysql|技巧|原创
我用的版本很新...
apache为apache_1.3.26-win32-x86-no_src.exe(在官方里面DOWN的)
php为php4.23(www.pconline.com里面有)
mysql为3.23在PCONLINE.COM里面都有..就只有APACHE.EXE(PCONLINE为ZIP要慢慢搞我不喜欢所以去了官方那里DOWN)www.apache.org(en版本)
APACHE安装到c:\(就是选择文件夹的时候选择的)
PHP为C:\PHP4MYSQL为C:\MYSQL
---------------------------------安装系统WIN98/WINME通过...
说明:"[]"中括号里面的是文件名...表示要修改或要复制过去另个地方的...
[php.ini]
把php-dist.ini复制到c:\windows把名字改为php.ini
编辑里面找到extension_dir = ./
把./改成c:\windows\system或把下面的直接覆盖那行
extension_dir = c:\windows\system
----------------------------------------
apache安装
----------------------------------------
安装的时候在需要您填入信息的时候您所填的最好是这样:
Network Domain 为 root
Server Name 为 localhost
Administartor''s Email 填您的EMAIL地址
[httpd.conf]
编辑httpd.conf搜索DocumentRoot(注意大小写)把""里面改成你想把站点放的地方...是绝对的...
DocumentRoot "d:/php"
我的是放在"d:\php"网站目录...您想改个地方可以自由修改.或直接放在c:\Apache\htdocs里面那就随便你咯...不过肯定要提醒的是在最后的文件夹里面不能为有"/"这个符号.不然就只能够不断判断到出错...
在最后面把下面的复制的过去。。。如果您的目录不是c:\php4那么就只要修改"x(您的PHP文件所在的地方):/目录/"就可以了...其他都的都不可以修改...否则会搞到服务器解释为下载*.PHP
ScriptAlias /php/ "c:/php4/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php.exe"
mysql......
安装好以后用"我的电脑"找回您所安装的地方...一般来说都是c:\mysql...
打开c:\mysql\bin\winmysqladmin.exe
在第一次驱动的时候它会要您输入用户名和密码,建议您最好是把用户名为root(注意大小写),密码就随便了...只要您能够记得!不记得就查看c:\windows\my.ini里面password=密码
然后关闭mysql
把目录里面的my-huge.cnf复制到c:\下并改为my.cnf
然后运行c:\mysql\bin\mysqld.exe
再把目录里面的my-huge.cnf复制到C:\下并改为my.cnf
然后再运行c:\mysql\bin\mysqld.exe
重新启动电脑打开winmysqladmin选择"start Check"看看下面的信息...如果是
There is a my.ini file.............yes
Verifying the my.ini keys
MySQL server path keyi........OK
datadir...............................OK
basedir...............................OK
如果是就恭喜你了...您已经可以完全连接MYSQL了...
-----------------------
最后当然是测试啦!
因为我的网站目录是在D:\PHP\,所以我在里面建立了一个info.php的文件
文件里面的内容很简单...我看了一眼就记得了
phpinfo();
?>
然后在IE里面运行http://localhost/info.php后面的东西就不说啦!自由发展..出现一个很大很大的表就恭喜你了..如果没有就...你的问题咯...呵呵...
-----------------------------------------------
有些朋友WIN里面本来就有PWS..
在这里也说说吧!
如果您的电脑里面有PWS而又想运行APACHE+PHP+MYSQL的话很简单..只要把httpd.conf里面修改Port 80为Port 8080的话就可以了...其他的都不要管它...
而IE里面就应该是http://localhost:8080/info.php,记着:"http://localhost:8080";一定要这样打出来...不可以就localhost...那样会自动为80端口...
大功告成...有什么不明白直接QQ我吧!我研究了两天了.也看了很多的文章了...老是说些废话就是搞不好...都是一班垃圾文章...我看那个INSTALL.TXT还好...
[绝对后悔编写,文本方便我语文很差所以很可能不通顺,请见谅]

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











MySQL and phpMyAdmin can be effectively managed through the following steps: 1. Create and delete database: Just click in phpMyAdmin to complete. 2. Manage tables: You can create tables, modify structures, and add indexes. 3. Data operation: Supports inserting, updating, deleting data and executing SQL queries. 4. Import and export data: Supports SQL, CSV, XML and other formats. 5. Optimization and monitoring: Use the OPTIMIZETABLE command to optimize tables and use query analyzers and monitoring tools to solve performance problems.

AI can help optimize the use of Composer. Specific methods include: 1. Dependency management optimization: AI analyzes dependencies, recommends the best version combination, and reduces conflicts. 2. Automated code generation: AI generates composer.json files that conform to best practices. 3. Improve code quality: AI detects potential problems, provides optimization suggestions, and improves code quality. These methods are implemented through machine learning and natural language processing technologies to help developers improve efficiency and code quality.

In MySQL, add fields using ALTERTABLEtable_nameADDCOLUMNnew_columnVARCHAR(255)AFTERexisting_column, delete fields using ALTERTABLEtable_nameDROPCOLUMNcolumn_to_drop. When adding fields, you need to specify a location to optimize query performance and data structure; before deleting fields, you need to confirm that the operation is irreversible; modifying table structure using online DDL, backup data, test environment, and low-load time periods is performance optimization and best practice.

session_start()iscrucialinPHPformanagingusersessions.1)Itinitiatesanewsessionifnoneexists,2)resumesanexistingsession,and3)setsasessioncookieforcontinuityacrossrequests,enablingapplicationslikeuserauthenticationandpersonalizedcontent.

To safely and thoroughly uninstall MySQL and clean all residual files, follow the following steps: 1. Stop MySQL service; 2. Uninstall MySQL packages; 3. Clean configuration files and data directories; 4. Verify that the uninstallation is thorough.

Efficient methods for batch inserting data in MySQL include: 1. Using INSERTINTO...VALUES syntax, 2. Using LOADDATAINFILE command, 3. Using transaction processing, 4. Adjust batch size, 5. Disable indexing, 6. Using INSERTIGNORE or INSERT...ONDUPLICATEKEYUPDATE, these methods can significantly improve database operation efficiency.

MySQL functions can be used for data processing and calculation. 1. Basic usage includes string processing, date calculation and mathematical operations. 2. Advanced usage involves combining multiple functions to implement complex operations. 3. Performance optimization requires avoiding the use of functions in the WHERE clause and using GROUPBY and temporary tables.

Methods for configuring character sets and collations in MySQL include: 1. Setting the character sets and collations at the server level: SETNAMES'utf8'; SETCHARACTERSETutf8; SETCOLLATION_CONNECTION='utf8_general_ci'; 2. Create a database that uses specific character sets and collations: CREATEDATABASEexample_dbCHARACTERSETutf8COLLATEutf8_general_ci; 3. Specify character sets and collations when creating a table: CREATETABLEexample_table(idINT
