LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: boy

成功安装httpd-2.0.45(apache) + php-4.3.1 + mysql-3.23.56 + ZendOptimiz-2.1

[复制链接]
发表于 2003-4-24 20:48:09 | 显示全部楼层
呵呵,精采!
发表于 2003-5-3 00:49:17 | 显示全部楼层
多谢了,到时我申请得公网IP就开始设置服务器,在这里不得不谢谢兄弟们带我入门,一步步成长!到时再请教。。。。
发表于 2003-6-2 17:02:25 | 显示全部楼层
使用 vi 编辑一 shell 文件

请问文件名称是什么?

我应该在哪个目录下面运行它?

我输入 ./install(我建立的文件名称)

为什么会提示我权限不够呢?


我的系统是httpd-2.0.46+mysql-standard-4.0.13-pc-linux-i686+php-4.3.2+ZendOptimizer-2.1.0a-Linux_glibc21-i386

我的shell脚本名称是install

内容为:

#!/bin/sh
cd /home/src/mysql-standard-4.0.13-pc-linux-i686
./configure --prefix=/server/mysql
make
make install
/server/mysql/bin/mysql_install_db

chown -R root /server/mysql
chgrp -R mysql /server/mysql

chown -R root /server/mysql/bin
chgrp -R mysql /server/mysql/bin

chown -R root /server/mysql/var
chgrp -R mysql /server/mysql/var
chmod 777 /server/mysql/var

chown -R root /server/mysql/var/mysql
chgrp -R mysql /server/mysql/var/mysql
chmod 777 /server/mysql/var/mysql

chown -R root /server/mysql/var/mysql/*
chgrp -R mysql /server/mysql/var/mysql/*
chmod 777 /server/mysql/var/mysql/*

chmod 777 /server/mysql/lib/mysql/libmysqlclient.a
#安装 mysql-standard-4.0.13-pc-linux-i686

cd /home/src/httpd-2.0.46
./configure --prefix=/server/apache --enable-so
make
make install
#安装 httpd-2.0.46

cd /home/src/php-4.3.2
./configure --with-mysql=/server/mysql --with-apxs2=/server/apache/bin/apxs \
--enable-track-vars --enable-force-cgi-redirect --enable-pic \
--enable-inline-optimiation --enable-memory-limit --enable-bcmath \
--enable-shmop --enable-versioning \
-enable-calendar --enable-dbx --enable-dio --enable-mcal \
--with-config-file-path=/server/apache/conf
make
make install
cp php.ini-dist /server/apache/conf/php.ini
#安装php-4.3.2 ,以上某些模块可不使用,--with-config-file-path=/server/apache/conf 指定
#php的配置文件在目录 /server/apache/conf

ln -s /server/apache/bin/apachectl /bin/apache
ln -s /server/mysql/bin/mysql /bin/mysql
#创建符号连接


运行后出错:




[root@bll bin]# bash ./install
NOTE: This is a MySQL binary distribution. It's ready to run, you don't
need to configure it!

To help you a bit, I am now going to create the needed MySQL databases
and start the MySQL server for you.  If you run into any trouble, please
consult the MySQL manual, that you can find in the Docs directory.

Installing all prepared tables
030602 16:56:24  ./bin/mysqld: Shutdown Complete


To start mysqld at boot time you have to copy support-files/mysql.server
to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
This is done with:
./bin/mysqladmin -u root password 'new-password'
./bin/mysqladmin -u root -h bll password 'new-password'
See the manual for more instructions.

NOTE:  If you are upgrading from a MySQL <= 3.22.10 you should run
the ./bin/mysql_fix_privilege_tables. Otherwise you will not be
able to use the new GRANT command!

You can start the MySQL daemon with:
cd . ; ./bin/mysqld_safe &

You can test the MySQL daemon with the benchmarks in the 'sql-bench' directory:
cd sql-bench ; perl run-all-tests

Please report any problems with the ./bin/mysqlbug script!

The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at https://order.mysql.com

Starting the mysqld server.  You can test that it is up and running
with the command:
./bin/mysqladmin version
make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target `install'.  Stop.
./install: line 6: /server/mysql/bin/mysql_install_db: 没有那个文件或目录
chown: failed to get attributes of `/server/mysql': 没有那个文件或目录
chgrp: failed to get attributes of `/server/mysql': 没有那个文件或目录
chown: failed to get attributes of `/server/mysql/bin': 没有那个文件或目录
chgrp: failed to get attributes of `/server/mysql/bin': 没有那个文件或目录
chown: failed to get attributes of `/server/mysql/var': 没有那个文件或目录
chgrp: failed to get attributes of `/server/mysql/var': 没有那个文件或目录
chmod: failed to get attributes of `/server/mysql/var': 没有那个文件或目录
chown: failed to get attributes of `/server/mysql/var/mysql': 没有那个文件或目录
chgrp: failed to get attributes of `/server/mysql/var/mysql': 没有那个文件或目录
chmod: failed to get attributes of `/server/mysql/var/mysql': 没有那个文件或目录
chown: failed to get attributes of `/server/mysql/var/mysql/*': 没有那个文件或目录
chgrp: failed to get attributes of `/server/mysql/var/mysql/*': 没有那个文件或目录
chmod: failed to get attributes of `/server/mysql/var/mysql/*': 没有那个文件或目录
chmod: failed to get attributes of `/server/mysql/lib/mysql/libmysqlclient.a': 没有那个文件或目录
Starting mysqld daemon with databases from /home/src/mysql-standard-4.0.13-pc-linux-i686/data
030602 16:56:24  mysqld ended
 楼主| 发表于 2003-6-3 10:43:54 | 显示全部楼层
NOTE: This is a MySQL binary distribution. It's ready to run, you don't
need to configure it!
----------------------------
注意:这是mysql二进制发布代码。已经准备好可以运行,你不需要配置它。。。
-----------------
我用的是源码。。
请问文件名称是什么?
文件名可随意。假设install
我应该在哪个目录下面运行它?
存放install的目录,或者可以带路径操作。。
为什么会提示我权限不够呢?
进入存放install的目录
#chmod u+x install   加执行权限
#./install
或者
#sh install
发表于 2003-6-8 19:19:45 | 显示全部楼层

无法安装成功mysql,建VAR库时出错,请帮忙!

按你的操作,下载的是mysql-3.23.56.tar.gz,用tar解出后,make及make install都正常,但运行 ./mysql_install_db出现如下图所示,无法建成VAR库,
[root@tcl7696 bin]# ./mysql_install_db
Installing all prepared tables
030608 18:56:38  /usr/local/mysql/libexec/mysqld: Shutdown Complete


To start mysqld at boot time you have to copy support-files/mysql.server
to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
This is done with:
/usr/local/mysql/bin/mysqladmin -u root  password 'new-password'
/usr/local/mysql/bin/mysqladmin -u root -h tcl7696.domain  password 'new-passwor
d'
See the manual for more instructions.

NOTE:  If you are upgrading from a MySQL <= 3.22.10 you should run
the /usr/local/mysql/bin/mysql_fix_privilege_tables. Otherwise you will not be
able to use the new GRANT command!

You can start the MySQL daemon with:
cd /usr/local/mysql ; /usr/local/mysql/bin/safe_mysqld &

You can test the MySQL daemon with the benchmarks in the 'sql-bench' directory:
cd sql-bench ; run-all-tests

Please report any problems with the /usr/local/mysql/bin/mysqlbug script!

The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at https://order.mysql.com

[root@tcl7696 bin]# pwd
/usr/local/mysql/bin
谢谢!

初学者,仅装过四次redhat linux9.0,昨天装了apache 2.0.46
发表于 2003-6-8 20:50:00 | 显示全部楼层
ZendOptimiz-2.1
是干什么的呀???
 楼主| 发表于 2003-6-14 12:40:02 | 显示全部楼层
最初由 ruochen 发表
ZendOptimiz-2.1
是干什么的呀???

php优化、加速。。。好东西。。
发表于 2003-7-27 12:20:32 | 显示全部楼层

打开php网页时显示的是源码,怎么回事?

我的DocumentRoot在/mnt/vfat/web下.index的权限为0755,登录为root.
按照以上方法在  RedHat 9下安装httpd-2.0.45.tar.gz , mysql-4.0.14.tar.gz , php-4.3.2.tar.gz都很顺利.谢谢.
发表于 2003-7-27 19:42:58 | 显示全部楼层

打开php网页时显示的是源码,怎么回事?(问题解决了)

编辑httpd.conf支持后缀为 .php .php3的文件
添加AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
发表于 2003-7-30 09:31:47 | 显示全部楼层

我用BOy的方法成功装上APACHE2.0.47/php4.3.2/mysql4.0.14

我用boy的方法成功装上APACHE2.0.47/php4.3.2/mysql4.0.14.但启动MYSQL时要用改成#/server/mysql/bin/mysql_safe --user=mysql &
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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