国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁(yè) > 開(kāi)發(fā) > PHP > 正文

在 HP_UX 上安裝 php

2024-05-04 23:02:37
字體:
來(lái)源:轉(zhuǎn)載
供稿:網(wǎng)友


收集最實(shí)用的網(wǎng)頁(yè)特效代碼!

 

hp-ux installs
this section contains notes and hints specific to installing php on hp-ux systems.

example 2-2. installation instructions for hp-ux 10

from: [email protected]
04-jan-2001 09:49
(these tips are for php v4.0.4 and apache v1.3.9)

so you want to install php and apache on a hp-ux 10.20 box?

1. you need gzip, download a binary distribution from
http://hpux.connect.org.uk/ftp/hpux/gnu/gzip-1.2.4a/gzip-1.2.4a-sd-10.20.depot.z
uncompress the file and install using swinstall

2. you need gcc, download a binary distribution from
http://gatekeep.cs.utah.edu/ftp/hpux/gnu/gcc-2.95.2/gcc-2.95.2-sd-10.20.depot.gz
gunzip this file and install gcc using swinstall.

3. you need the gnu binutils, you can download a binary distribution from
http://hpux.connect.org.uk/ftp/hpux/gnu/binutils-2.9.1/binutils-2.9.1-sd-10.20.depot.gz
gunzip and install using swinstall.


4. you now need bison, you can download a binary distribution from
http://hpux.connect.org.uk/ftp/hpux/gnu/bison-1.28/bison-1.28-sd-10.20.depot.gz
install as above.

5. you now need flex, you need to download the source from one of the
http://www.gnu.org mirrors. it is in the non-gnu directory of the ftp site.
download the file, gunzip, then tar -xvf it. go into the newly created flex
directory and do a ./configure, then a make, and then a make install

if you have errors here, it's probably because gcc etc. are not in your
path so add them to your path.

right, now into the hard stuff.

6.download the php and apache sources.

7.gunzip and tar -xvf them.

we need to hack a couple of files so that they can compile ok.

8. firstly the configure file needs to be hacked because it seems to lose
track of the fact that you are a hpux machine, there will be a
better way of doing this but a cheap and cheerful hack is to put
lt_target=hpux10.20
on line 47286 of the configure script.

9. next, the apache guessos file needs to be hacked. under
apache_1.3.9/src/helpers change line 89 from
"echo "hp${hpuxmach}-hpux${hpuxver}"; exit 0"
to:
"echo "hp${hpuxmach}-hp-hpux${hpuxver}"; exit 0"

10. you cannot install php as a shared object under hp-ux so you must compile
it as a static, just follow the instructions at the apache page.

11. php and apache should have compiled ok, but apache won't start. you need
to create a new user for apache, eg www, or apache. you then change lines 252
and 253 of the conf/httpd.conf in apache so that instead of
user nobody
group nogroup
you have something like
user www
group sys

this is because you can't run apache as nobody under hp-ux.
apache and php should then work.

hope this helps somebody,
paul mckay.

發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 肃南| 桂东县| 米泉市| 东丽区| 神农架林区| 永平县| 霸州市| 康马县| 连城县| 通榆县| 泰兴市| 五华县| 盐山县| 青阳县| 博白县| 贵德县| 三穗县| 日土县| 区。| 历史| 贺州市| 奉贤区| 通榆县| 娱乐| 汉川市| 庆云县| 宝山区| 历史| 阳信县| 临泽县| 柘荣县| 马关县| 开原市| 双江| 惠东县| 车险| 商洛市| 五大连池市| 芦山县| 高要市| 海门市|