install mysql-standard-4.0.18-pc-linux-i686 + php-4.3.4

发表于:2007-06-08来源:作者:点击数: 标签:
Environment:RedHat Linux 9.2 setupmysql-standard-4.0.18-pc- linux -i686.tar.gz php-4.3.4.tar.gz httpd-2.0.48.tar.gz 准备工作: loginasarootuserand useraddtest soft: mysql-standard-4.0.18-pc-linux-i686.tar.gz : groupaddmysql;useradd-gmysqlmy

Environment :RedHat Linux 9.2
setup  mysql-standard-4.0.18-pc-linux-i686.tar.gz
php-4.3.4.tar.gz
httpd-2.0.48.tar.gz
准备工作:
login as a root user and
useradd test

soft:
mysql-standard-4.0.18-pc-linux-i686.tar.gz
:
groupadd mysql; useradd -g mysql mysql
cd /usr/local; cp /home/test/mysql-standard-4.0.18-pc-linux-i686.tar.gz .;tar -zxvf mysql-standard-4.0.18-pc-linux-i686.tar.gz
ln -s mysql-standard-4.0.18-pc-linux-i686 mysql
chown -R mysql:mysql mysql/data
chgrp -R mysql mysql
./configure -prefix=/usr/local/mysql
./bin/mysqladmin --version //系统发现mysql能够启动,检查
reboot(cd /usr/local/mysql; ./bin/safe_mysqld &)
//检查data目录下的*.err错误文件的内容,系统没有/data/mysql/host.frm权限
chown mysql/data/mysql/*
:: vi /etc/rc.d/rc.local //add to the end
//让mysql能够在系统启动后自己启动
/bin/sh -c 'cd /usr/local/mysql; ./bin/safe_mysqld &'
php-4.3.4.tar.gz
:
cd /home/test; tar -zxvf php-4.3.4.tar.gz;tar -zxvf http-2.0.48.tar.gz
cd php-4.3.4
./configure -with-mysql=/usr/local/mysql -with-apache2=../httpd-2.0.48 -enable-track-vars -with-prefix=/usr/local/php
cd /home/test/http-2.0.48
./configure -prefix=/usr/local/httpd
httpd-2.0.48.tar.gz
:
cd /usr/local; mkdir httpd-2.0.48; ln -s /usr/local/httpd-2.0.48 /usr/local/httpd
cd /home/test/httpd-2.0.48
./configure -prefix=/usr/local/httpd -enable-so
make
make install

到此时,系统中没有libphp4.so出现,现在是不是需要手动配置php,或者是重新./configure; make; make install?
请问如何,在线等待,谢谢!!!

 st.linux.ily 回复于:2004-02-29 02:51:33
为何生成不了libphp4.so文件哦,急,急,急!

 d13138 回复于:2004-02-29 14:13:54
从别的地方抄来的,不知道对你有没有
-------------------

1、安装MYSQL4.0.18 
下了MYSQL以后,解压缩 
./configure --prefix=/usr/local/mysql 
make 
make install 
useradd mysql 
chown -R mysql /usr/local/mysql/var 
启动MYSQL,/usr/local/mysql/bin/mysqld_safe --user=mysql 

2、安装APACHE 2.0.48 
解压缩 
./configure 
make 
make install 

3、安装PHP 4.3.4 
解压缩 
./configure --with-mysql --with-apxs2=/usr/local/apache2/bin/apxs --enable-versioning --disable-debug --enable-track-vars 
make 
make install 

修改/usr/local/apache2/conf/httpd.conf 
看有没有以下两行 
LoadModule      php4_module     modules/libphp4.so 
AddType         application/x-httpd-php .php 
默认应该有第一行,第二行要自己添加 

增加默认页面index.php 
DirectoryIndex index.html index.php index.htm index.html.var

 jhsea3do 回复于:2004-02-29 18:27:33
--with-apxs2=/usr/local/apache2/bin/apxs 

主要是装php时你少了这句话

 liuf19780320 回复于:2004-02-29 21:56:04
与我碰到的一样,并且我加了--with-apxs2=/usr/local/apache2/bin/apxs,另外我想问以下,configure所接参数太长一行输不完怎么办?

 HonestQiao 回复于:2004-02-29 23:01:48
不停输入

原文转自:http://www.ltesting.net