LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 700|回复: 0

( xinmincui 进来)我的apache1.3.2.9+mod_ssl+openssl+php4.3.4安装过程,和出现的问

[复制链接]
发表于 2003-12-9 09:37:26 | 显示全部楼层 |阅读模式
mysql-max-4.1.1-alpha-pc-linux-i686.tar.gz安装:
在mysql-max-4.1.1-alpha-pc-linux-i686.tar.gz所在目录下
tar –zxvf mysql-max-4.1.1-alpha-pc-linux-i686.tar.gz
mv mysql-max-4.1.1-alpha-pc-linux-i686 /usr/local
ln –s /usr/local/mysql-max-4.1.1-alpha-pc-linux-i686 mysql
cd mysql
scripts/mysql_install_db
chown -R root  .
chown -R mysql data
chgrp -R mysql .
bin/mysqld_safe --user=mysql &   (启动数据库)
./bin/mysqladmin -u root password '密码';(不要忘记设置数据库root密码)

j2sdk-1_4_2_02-linux-i586-rpm.bin安装:
在j2sdk-1_4_2_02-linux-i586-rpm.bin所在目录下
chmod +x j2sdk-1_4_2_02-linux-i586-rpm.bin (增加可执行权限)
./ j2sdk-1_4_2_02-linux-i586-rpm.bin  (解包)
rpm –i j2sdk-1_4_2_02-linux-i586.rpm  (安装)
如果下载的文件不是bin类型,可直接执行rpm –i j2sdk-1_4_2_02-linux-i586.rpm

apache_1.3.29.tar.gz  php-4.3.4.tar.gz  mod_ssl-2.8.16-1.3.29.tar.gz  openssl-0.9.6l.tar.gz安装
tar -zxvf apache_1.3.29.tar.gz
tar -zxvf php-4.3.4.tar.gz
tar -zxvf openssl-0.9.6l.tar.gz
tar -zxvf mod_ssl-2.8.16-1.3.29.tar.gz
cd apache_1.3.29
vi src/include/httpd.h
修改入下:
#define HARD_SERVER_LIMIT 2560 <=将原来的HARD_SERVER_LIMIT 256 后面加个“0”
:wq!
./configure --prefix=/usr/local/apache --enable-shared=max --enable-module=most
cd ..
cd php-4.3.4
./configure --with-mysql --with-apache=../apache_1.3.29 --enable-track-vars
make
make install
cd openssl-0.9.61/
./config shared
make
make test
make install
cd ..
cd mod_ssl-2.8.16-1.3.29
./configure --with-apache=../apache_1.3.29
cd ..
cd apache_1.3.29
SSL_BASE=/usr/local/ssl ./configure --prefix=/usr/local/apache --activate-module=src/modules/php4/libphp4.a --enable-module=ssl --enable-shared=max --enable-module=most --enable-shared=ssl --enable-module=so
make
make certificate
make install
cd ..
cd php-4.3.4
cp php.ini-dist /usr/local/lib/php.ini
vi /usr/local/apache/conf/httpd.conf
找到下面的第一行内容后换成所有下面的内容
   
    AddType application/x-tar .tgz
    AddType image/x-icon .ico
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php .php3
AddType application/x-httpd-php-source .phps
存盘退出.
/usr/local/apache/bin/apachectl startssl
提示出错如下:
Cannot load /usr/local/apache/libexec/libssl.so into server: libssl.so.0.9.6: cannot open shared object file: No such file or directory
/usr/local/apache/bin/apachectl startssl: httpd could not be started
各位朋友帮忙解决一下
问题2
-------------------------------------------------------------
我参看xinmincui的文档
http://www.linuxsir.cn/forum.php?mod=viewthread&tid=38089
其中mysql的安装部分如下几步不明白是干什么用的。
12. cp support-files/my-medium.cnf /etc/my.cnf
13. cp scripts /usr/local/mysql -R
14. cp support-files /usr/local/mysql -R
15. cd /usr/local/mysql
16. chmod +x support-files/mysql.server
17. cp support-files/mysql.server /etc/rc.d/init.d/mysqld 同时要设置 /etc/rc.d/init.d/mysqld 开机自动运行:ln -s /etc/rc.d/init.d/mysqld /etc/rc.d/rc3.d/S99mysqld
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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