php4.3.4.4、apache2.0.4.8、mysql 4.0.26、window7 配置过程

apache的安装不需要过程,直接默认安装,下一步 下一步就Ok了。

php4的安装:

1 将php-4.0.4-Win32.zip(最新版本4.0.4)解压缩到硬盘的一个目录中,例如解压到E:php目录中。 
2 将php目录中的php4ts.dll移动到c盘windows系统目录 即(c:windows\system32)中。 
3 再修改apacheconfhttpd.conf文件,加以下内容:
LoadModule php4_module E:/php/php-4.3.4-Win32/sapi/php4apache2.dll 
AddType application/x-httpd-php .php
4 将php(d:php)目录下的文件php.ini-dist拷贝至windows目录(c:windows)下,并改名为php.ini。 
重新启动apache。

测试php是否能够正常运行的页面内容:

<html>
<body>
<?php 
phpinfo(); 
?>
</body>
</html> 将文件test.php 放到apache htdocs 目录下面   在浏览器中 输入http://localhost/test.php,如果能看到以下内容,说明你成功了。

mysql安装过程

(首先Mysql的安装分为install noinstall 两种,install的就是将服务导入到了window系统当中,可以在系统的服务中看到并且通过启动服务来启动,但是noinstall的版本就是没有将服务导入到系统中,需要自己手动的去导入。下面就是我用来导入的过程)

(在安装了mysql之后,如果你执行以下命令出现该服务已经存在,但是用命令进行启动net start mysql出现1058,指定的服务被标记为删除的错误的时候,并且你到服务列表中去查看mysql这个服务,他的状态被禁用,并且不能改变他的状态,只要改变就会报错—提示该服务已标记为删除,说明你的服务列表还没有反应过来,你可以尝试关机,然后在进行下面的导入服务的工作。

安装完毕后,在CMD命令行中输入并运行:
D:\php\MySQL\bin\mysqld-nt -install

如果返回Service successfully installed.则说明系统服务成功安装

net start mysql 如果成果,则不需要进行下面的操作,如果不成功 ,则看下面的内容。

新建一文本文件存为MY.INI,编辑配置MY.INI,这里给出一个参考的配置

[mysqld]
basedir=D:/php/MySQL
#MySQL所在目录
datadir=D:/php/MySQL/data
#MySQL数据库所在目录,可以更改为其他你存放数据库的目录
#language=D:/php/MySQL/share/your language directory
#port=3306
set-variable = max_connections=800
skip-locking
set-variable = key_buffer=512M
set-variable = max_allowed_packet=4M
set-variable = table_cache=1024
set-variable = sort_buffer=2M
set-variable = thread_cache=64
set-variable = join_buffer_size=32M
set-variable = record_buffer=32M
set-variable = thread_concurrency=8
set-variable = myisam_sort_buffer_size=64M
set-variable = connect_timeout=10
set-variable = wait_timeout=10
server-id = 1
[isamchk]
set-variable = key_buffer=128M
set-variable = sort_buffer=128M
set-variable = read_buffer=2M
set-variable = write_buffer=2M
[myisamchk]
set-variable = key_buffer=128M
set-variable = sort_buffer=128M
set-variable = read_buffer=2M
set-variable = write_buffer=2M
[WinMySQLadmin]
Server=D:/php/MySQL/bin/mysqld-nt.exe

保存后复制此MY.INI文件到C:\Windows ( Windows 2000 下为 C:\WINNT)目录下
回到CMD命令行中再次输入并运行:

net start mysql

MySQL 服务正在启动 .
MySQL 服务已经启动成功。

将能够正常的启动 MySQL 服务;

 

转载于:https://www.cnblogs.com/wangqc/p/php4Install.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值