首页 | 编程语言 | 网站建设 | 游戏天堂 | 冲浪宝典 | 网络安全 | 操作系统 | 软件时空 | 硬件指南 | 病毒相关 | IT 认证
软讯网络 > 操作系统 > 其他操作系统 > Mysql+Apache+PHP4
【标  题】:Mysql+Apache+PHP4
【关键字】:Mysql+Apache+PHP4
【来  源】:http://blog.chinaunix.net/article.php?articleId=10300&blogId=3491

Mysql+Apache+PHP4

1.安装Mysql
#cd /usr/ports/database/mysql40-server
#make install
SKIP_DNS_CHECK=yes 表示在加入本机名字时﹐不用做反向解析
BUILD_OPTIMIZED=yes 表示在编译时优化处理
BUILD_STATIC=yes 把mysqld编译成静态执行版本
with-charset=gb2312
在/etc/rc.conf中添加mysql_enable="YES"
重启后就启动了mysqld守护进程
#mysql 看到mysql>就说明正常了

2.安装Apache
#cd /usr/ports/www/apache2
#make install clean

3.安装PHP4
#cd /usr/ports/www/mod_php4
#cd /usr/ports/lang/php4-exstentions

4.配置apache
#ee /usr/local/etc/apache2/http.conf
DirectoryIndex index.php index.html index.html.var
AddDefaultCharset GB2312

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

5.测试php
<?
phpinfo();
?
>

今天收获挺大:【上一篇】
欢迎进入Christ的博客!:【下一篇】
【相关文章】
没有相关文章
【随机文章】
  • 24.3 Attribute instances
  • linux下mysql5安装日志
  • ubuntu升级历险记
  • 详解萎缩性鼻炎
  • delphi常用数据库连接
  • Series60的2.1版本的模拟器编码转换的一个小bug
  • Microsoft beta office 2007 and vista
  • 找到并终止Oracle9i里被锁定的会话
  • <原创>PF限制部分机器上网实验
  • 灯光的分类
  • 【相关评论】
    没有相关评论
    【发表评论】
    姓名:
    邮件:
    随机码*
    评论*
          
    |  首 页  |  版权声明  |  联系我们   |  网站地图  |
    CopyRight © 2004-2007 软讯网络 All Rigths Reserved.