由 boy 在 04-21-2003 17:28 发表:
php4.3.1默认安装怎么没有libphp4.so ?
apache2.0.45启动时,找不到libphp4.so ????/
-------------------
apache 、 php我都是直接:
./configure
make
make install
由 dsj 在 04-21-2003 21:42 发表:
编译时要这样才可以加载所有的模块
./configure --enable-module=most --enable-shared=max
闲聊空间:
http://www.wonyen.net/bbs/mboard.asp
由 boy 在 04-22-2003 09:32 发表:
是不是apache和php都要重新 ./configure --enable-module=most --enable-shared=max 安装?
用源码安装怎样卸载?
由 chenxee 在 04-22-2003 10:01 发表:
用源码安装卸载不了,自己手动删除吧
先编译apache,./configure --prefix=/usr/local/apache
再编译php,./configure --with-apache2=/.../apache [其他编译选项]
make makeinstall
再编译apache,./configure --activate-module=src/modules/php4/libphp4.a
make make install
最后别忘了cp php.ini-dist /usr/local/lib/php.ini
以上是我安装apache 1.3.X用的,都能成功,但apache2从来没有试过,听说有好多问题的
Good luck to you
由 boy 在 04-22-2003 10:08 发表:
我apache 、php 安装到哪里去了?
由 chenxee 在 04-22-2003 10:25 发表:
编译时可以加--prefix=/path自己设定的
如果没设置,就安到默认目录了,看看apache在不在/usr/local下
由 boy 在 04-22-2003 10:33 发表:
usr/local/apache2
usr/local/lib/php
usr/local/bin
由 boy 在 04-22-2003 15:26 发表:
我终于成功安装:httpd-2.0.45(apache) + php-4.3.1 + mysql-3.23.56 + ZendOptimiz-2.1

但是我想知道ZendOptimiz-2.1( http://zend.com/store/free_download.php?pid=13 ),用图形界面是怎样安装的?
我在终端里执行解压目录里的install.sh后弹出一个安装向导,我去到选择php.ini文件目录的下一步,就不知道应该怎样继续了,请问这个向导是怎样使用的?
我现在是通过查看md5文件找到 ZendOptimizer.so的位置并复制到/server/Zend/lib
在php.ini加入zend_optimizer.optimization_level=15
zend_extension="/server/Zend/lib
/ZendOptimizer.so"
zend_loader.enable=Off
这样才搞定的。。。。。
这里额外增加的第三行代码是可选的。禁止zend_loader似乎能够让Zend Optimizer的速度更快一点,所以在php.ini中加上这行代码是值得的。注意:只有当你不使用Zend Encoder Runtime时,你才可以禁用zend_loader。 (网上找到的资料)
由 dsj 在 04-23-2003 13:23 发表:
兄弟能详细介绍你的过程吗,大家可以分享一下!
闲聊空间:
http://www.wonyen.net/bbs/mboard.asp
由 boy 在 04-23-2003 14:58 发表:
我是按照你教的方法安装的: http://www.linuxsir.com/bbs/showthr...p;highlight=php
由于跟你的软件差不多,所以在安装过程中没有遇到很多问题。。。就是在安装httpd-2.0.45(apache)时停顿了一下,幸好已经编译完成,重新 make install 就搞定了。。。。。。
--------------------------------------------
在这里提供一下软件的下载地址:
httpd-2.0.45(apache): http://count.skycn.com/softdown.php...d-2.0.45.tar.gz
php-4.3.1: http://count.skycn.com/softdown.php...hp-4.3.1.tar.gz
mysql-3.23.56: http://count.skycn.com/softdown.php...-3.23.56.tar.gz
ZendOptimiz-2.1: http://zend.com/store/free_download.php?pid=13
--------------------------------------------
ZendOptimiz-2.1 的安装,我上面的帖子就有说明。。。。。
--------------------------------------
一、准备安装
将所有软件的源代码放置在目录 /home/src 下 ,安装目录为 /server ,下载后的源代码包在/files目录下,故执行以下操作:
mkdir /home/src
mkdir /server
groupadd mysql
useradd -g mysql -d /home/mysql mysql //建立mysql组及用户
cd /home/src
tar zxvf /files/mysql-3.23.56.tar.gz
tar zxvf /files/httpd-2.0.45.tar.gz
tar zxvf /files/php-4.3.1.tar.gz
tar zxvf /files/ZendOptimizer-2[1].1.0a-Linux_glibc21-i386.tar
二、安装配置过程
使用 vi 编辑一 shell 文件,内容如下: (复制并编辑一个脚本文件,内容如下)
-----------------------------------
#!/bin/sh
cd /home/src/mysql-3.23.56
./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-3.23.56
cd /home/src/httpd-2.0.45
./configure --prefix=/server/apache --enable-so
make
make install
#安装 httpd-2.0.45
cd /home/src/php-4.3.1
./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.1 ,以上某些模块可不使用,--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
#创建符号连接
----------------------------------------------------
三、修改配置文件
vi /server/apache/conf/httpd.conf
加入以下行(装载php4模块并指定.php 文件)
LimitRequestBody (指定php处理的请求数据大小,以下指定为 20M)
LoadModule php4_module modules/libphp4.so
1<files *.php="">
2
3SetOutputFilter PHP
4
5SetInputFilter PHP
6
7LimitRequestBody 20971520
8
9</files>
#注解以下行(在文本前加#),使apache显示中文,具体原因未知
ForceLanguagePriority Prefer Fallback
AddDefaultCharset ISO-8859-1 改为AddDefaultCharset gb2312
#加入默认的引导文件index.php(找到DirectoryIndex,修改如下:)
DirectoryIndex index.html index.html.var index.php
#指定网站目录(假设为 /apache 目录)
DocumentRoot "/apache"
vi /server/apache/conf/php.ini
#找到并修改以下参数
max_execution_time = 600 ;最大运行时间 600 秒
max_input_time = 600 ;最大输出时间 600秒
memory_limit = 20M ;最大内存限制 20M
file_uploads = On ;允许上载文件
upload_max_filesize = 20M ;最大文件大小 20M
post_max_size = 20M ;php可接受的 post 方法大小 20M
session.auto_start = 1 ;session自动启动
register_globals = Off 改为 register_globals = On
四、运行
#启动mysql
/server/mysql/bin/safe_mysqld --user=mysql &
#停止mysql
/server/mysql/bin/mysqladmin shutdown
#启动apache
apache start
#停止apache
apache stop
mkdir /apache
echo "
/apache/index.php echo "phpinfo();" >>/apache/index.php echo "?>" >>/apache/index.php #生成/apache/index.php 文件 在浏览器上输入 linux 机器网址,php 的配置信息将显示出来。 方法跟dsj版主是一样的。。。。 * * * _由 dsj 在 04-24-2003 20:48 发表:_ **** 呵呵,精采! __________________ 闲聊空间: http://www.wonyen.net/bbs/mboard.asp * * * _由 fawn 在 05-03-2003 00:49 发表:_ **** 多谢了,到时我申请得公网IP就开始设置服务器,在这里不得不谢谢兄弟们带我入门,一步步成长!到时再请教。。。。 __________________ 本人相片(最右边)http://www.sogefree.com/images/ours11.jpg * * * _由 风在吹 在 06-02-2003 17:02 发表:_ **** 使用 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/li