QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 627|回复: 1

请高手给一个mysql+php的完全安装手册把 我一直都装不好啊

[复制链接]
发表于 2002-12-14 19:21:14 | 显示全部楼层 |阅读模式
谢谢了
发表于 2002-12-15 19:58:54 | 显示全部楼层
这个应该对你有用

# compile and install mysql
tar xvfz mysql-3.23.47.tar.gz
mv mysql-3.23.47 mysql
cd mysql
./configure --prefix=/usr/local/mysql
make
make install
scripts/mysql_install_db

# set the attribute of directories
groupadd mysql
useradd -g mysql mysql
chown -R root /usr/local/mysql
chown -R mysql /usr/local/mysql/var
chgrp -R mysql /usr/local/mysql
cp support-files/my-medium.cnf /etc/my.cnf

# make mysql auto start and auto stop
cd /usr/local/mysql/share/mysql
chmod +x mysql.server
cp mysql.server /etc/rc.d/init.d/mysql
cd /etc/rc.d/rc3.d/
ln -s ../init.d/mysql S99mysql
/usr/local/mysql/share/mysql/mysql.server start

# gunzip apache and php
cd /etc/local
tar xvfz apache_1.3.19.tar.gz
tar xvfz php-4.0.5.tar.gz
mv apache_1.3.19 apache
mv php-4.0.5 php

# compile and install php4
cd apache
./configure --prefix=/usr/local/apache
cd ../php
./configure --with-apache=../apache --with-mysql --disable-debug --enable-ftp --enable-track-vars
make
make install
cp php.ini-dist /usr/local/lib/php.ini

# compile and install apache
cd ../apache
./configure --prefix=/usr/local/apache --activate-module=src/modules/php4/libphp4.a
make
make install

# make apache support php4
cd /usr/local/apache/conf
sed 's/#\(AddType application\/x-httpd-php \.php\)/\1\
AddType application\/x-httpd-php .php4/' httpd.conf > httpd.bak
mv -f httpd.bak httpd.conf
#\/是斜杠

# make apache auto start and auto stop
cd /usr/local/apache/bin
chmod +x apachectl
cp apachectl /etc/rc.d/init.d/apache
cd /etc/rc.d/rc3.d/
ln -s ../init.d/apache S99apache
cd ../rc0.d/
ln -s ../init.d/apache K10apache
cd ../rc6.d/
ln -s ../init.d/apache K10apache
/usr/local/apache/bin/apachectl start

# clear all
cd /etc/local
rm -rf mysql apache php
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-17 17:38 , Processed in 0.092041 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表