如何将JSP/PHP安装在特殊的LINUX环境中(100分)

  • 主题发起人 主题发起人 3h
  • 开始时间 开始时间
3

3h

Unregistered / Unconfirmed
GUEST, unregistred user!
这个LINUX(RED HAT)太特殊了,是正在服务的商业机器,并且安装了天网虚拟主机系统。
原则上是不允许重新编译的,因为天网修改了许多LINUX的设置,连阿帕奇的安装目录都变得
不象样了。:)
现在想安装一种解释型语言,象PHP/JSP甚至如果ASP可以的话也杀了。问题是PHP需要重新编
译阿帕奇,我与同事多方尝不编译而修改配置而告败。
现在想改装JSP,以前没装过,请教安装办法,也是以不要重新编译阿帕奇为前提。
如果非要的话,能否告诉我如果才能使它最大可能地不变化已安装的和已设置的。
小弟长于MS的不擅于LINUX,环境所迫,没办法。
//ASP有LINUX中如果能够不编译阿帕奇而支持,也是照杀不误的。
 
可以不用重新编译Apache,
可以在www.php.org下载php的rpm二进制版本
安装后修改apache的http.conf文件,
Installed PHP from an RPM, but Apache isn't processing the PHP pages! What's going on here?
Assuming you installed both Apache and PHP from RPM packages, you need to uncomment or add some or all of the
following lines in your http.conf file:
#Extra Modules
AddModule mod_php.c
AddModule mod_php3.c
AddModule mod_perl.c
# Extra Modules
LoadModule php_module modules/mod_php.so
LoadModule php3_module modules/libphp3.so
LoadModule perl_module modules/libperl.so
And add:
AddType application/x-httpd-php3 .php3
To the global properties, or to the properties of the VirtualDomain you want to have PHP support added to.
然后重新启动apache即可(不需要很长时间)
hehe,linux算啥?IBM AIX上的MYSQL+PHP+APACHE我都搞定了。
 
网址错了,是www.php.net
www.apache.org , www.mysql.com
 
到处都能下载到.tar.gz的家伙,就是没有.rpm的,老兄提供个地址吧。
另外如果是php4/4.01要将上面几个如何改。能不能将上面的东西说详细点(步骤),我的LINUX太菜了,只知道ls &
vi :)
 
这两天在论坛中进行一番搜索,浪费了不少论坛服务器CPU的时间:)
在问题:http://www.gislab.ecnu.edu.cn/delphibbs/DispQ.asp?LID=155352中,我觉得挺相似的。
我的阿帕奇安装在以下目录:/siss/web
其中/siss是硬链接,指向/home/david/src/dhome/dist/siss/。
PHP放在以下目录:/home/glowing/php-4.0.1pl2。
在PHP目录下执行:./configure --with-apxs=/home/david/src/dhome/dist/siss/web/bin/apxs
结果是:
......
Configuring SAPI modules
checking for AOLserver support... no
checking for Apache module support via DSO through APXS...
apxs:Error: Sorry, no shared object support for Apache
apxs:Error: available under your platform. Make sure
apxs:Error: the Apache module mod_so is compiled into
apxs:Error: your server binary `/siss/web/bin/httpd'.
configure: error: Sorry, I cannot run apxs. Either you need to install Perl or you need to pass the absolute path of apxs by using --with-apxs=/absolute/path/to/apxs
改成:./configure --with-apxs=/siss/web/bin/apxs也不行同样的错误。什么原因?
很明显,PERL是肯定安装好了的。
在另一个目录中有一个其它人安装的PHP,能够执行./configure --with-apxs=/siss/web/bin/apxs,
但是在make的时候出现以下错误:
Making all in libzend
make[1]: Entering directory `/home/david/src/dhome/import/php-4.0b2/libzend'
make[1]: Leaving directory `/home/david/src/dhome/import/php-4.0b2/libzend'
Making all in ext
make[1]: Entering directory `/home/david/src/dhome/import/php-4.0b2/ext'
Making all in apache
make[2]: Entering directory `/home/david/src/dhome/import/php-4.0b2/ext/apache'
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../libzend -I../../TSRM -I -I../.. -I../../libzend -g -O2 -g -O2 -c apache.c
In file included from apache.c:22:
../../php.h:166: ap_config_auto.h: No such file or directory
../../php.h:170: ap_config.h: No such file or directory
../../php.h:180: ap_compat.h: No such file or directory
../../php.h:182: httpd.h: No such file or directory
../../php.h:183: http_main.h: No such file or directory
../../php.h:184: http_core.h: No such file or directory
../../php.h:185: http_request.h: No such file or directory
../../php.h:186: http_protocol.h: No such file or directory
../../php.h:187: http_config.h: No such file or directory
../../php.h:188: http_log.h: No such file or directory
apache.c:39: http_request.h: No such file or directory
make[2]: *** [apache.o] Error 1
make[2]: Leaving directory `/home/david/src/dhome/import/php-4.0b2/ext/apache'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/david/src/dhome/import/php-4.0b2/ext'
make: *** [all-recursive] Error 1
求救!
 
装 jsp 吧, 改两三个文件就可以了.
 
hehe, there has a very good cosulting:
justdo
wnload a new apache server, and install it to any port besides 80, and
download the php and tomcat and compile it freely, then
it's ok:-)
p.s. if u install tomcat, it need not to be recompiled so just install is ok:-)
the good thing is, it can run as a web server alone!
 

Similar threads

D
回复
0
查看
877
DelphiTeacher的专栏
D
D
回复
0
查看
845
DelphiTeacher的专栏
D
D
回复
0
查看
795
DelphiTeacher的专栏
D
D
回复
0
查看
1K
DelphiTeacher的专栏
D
后退
顶部