Hello all, those are instructions to install and run PHP 4 on HP Nonstop Servers. I have included a .doc and .rtf files, i'm not sure which format is the best.
I think this should be put as an INSTALL.HPNONSTOP file in the main distribution, as installing on those systems is very different from the normal installation. It could also be added in the PHP documentation as an Install note for this particular system. I have also sent the same note inside HP. If you need another format, just let me know. Fab. _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.{\rtf1\ansi\ansicpg1252\uc1\deff0\stshfdbch0\stshfloch0\stshfhich0\stshfbi0\deflang1033\deflangfe1033{\fonttbl{\f0\froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman;}{\f1\fswiss\fcharset0\fprq2{\*\panose 020b0604020202020204}Arial;} {\f2\fmodern\fcharset0\fprq1{\*\panose 02070309020205020404}Courier New;}{\f85\froman\fcharset238\fprq2 Times New Roman CE;}{\f86\froman\fcharset204\fprq2 Times New Roman Cyr;}{\f88\froman\fcharset161\fprq2 Times New Roman Greek;} {\f89\froman\fcharset162\fprq2 Times New Roman Tur;}{\f90\froman\fcharset177\fprq2 Times New Roman (Hebrew);}{\f91\froman\fcharset178\fprq2 Times New Roman (Arabic);}{\f92\froman\fcharset186\fprq2 Times New Roman Baltic;} {\f93\froman\fcharset163\fprq2 Times New Roman (Vietnamese);}{\f95\fswiss\fcharset238\fprq2 Arial CE;}{\f96\fswiss\fcharset204\fprq2 Arial Cyr;}{\f98\fswiss\fcharset161\fprq2 Arial Greek;}{\f99\fswiss\fcharset162\fprq2 Arial Tur;} {\f100\fswiss\fcharset177\fprq2 Arial (Hebrew);}{\f101\fswiss\fcharset178\fprq2 Arial (Arabic);}{\f102\fswiss\fcharset186\fprq2 Arial Baltic;}{\f103\fswiss\fcharset163\fprq2 Arial (Vietnamese);}{\f105\fmodern\fcharset238\fprq1 Courier New CE;} {\f106\fmodern\fcharset204\fprq1 Courier New Cyr;}{\f108\fmodern\fcharset161\fprq1 Courier New Greek;}{\f109\fmodern\fcharset162\fprq1 Courier New Tur;}{\f110\fmodern\fcharset177\fprq1 Courier New (Hebrew);} {\f111\fmodern\fcharset178\fprq1 Courier New (Arabic);}{\f112\fmodern\fcharset186\fprq1 Courier New Baltic;}{\f113\fmodern\fcharset163\fprq1 Courier New (Vietnamese);}}{\colortbl;\red0\green0\blue0;\red0\green0\blue255;\red0\green255\blue255; \red0\green255\blue0;\red255\green0\blue255;\red255\green0\blue0;\red255\green255\blue0;\red255\green255\blue255;\red0\green0\blue128;\red0\green128\blue128;\red0\green128\blue0;\red128\green0\blue128;\red128\green0\blue0;\red128\green128\blue0; \red128\green128\blue128;\red192\green192\blue192;}{\stylesheet{\ql \li0\ri0\widctlpar\aspalpha\aspnum\faauto\adjustright\rin0\lin0\itap0 \fs24\lang1033\langfe1033\cgrid\langnp1033\langfenp1033 \snext0 Normal;}{\*\cs10 \additive \ssemihidden Default Paragraph Font;}{\*\ts11\tsrowd\trftsWidthB3\trpaddl108\trpaddr108\trpaddfl3\trpaddft3\trpaddfb3\trpaddfr3\trcbpat1\trcfpat1\tscellwidthfts0\tsvertalt\tsbrdrt\tsbrdrl\tsbrdrb\tsbrdrr\tsbrdrdgl\tsbrdrdgr\tsbrdrh\tsbrdrv \ql \li0\ri0\widctlpar\aspalpha\aspnum\faauto\adjustright\rin0\lin0\itap0 \fs20\lang1024\langfe1024\cgrid\langnp1024\langfenp1024 \snext11 \ssemihidden Normal Table;}{\*\cs15 \additive \ul\cf2 \sbasedon10 \styrsid12781656 Hyperlink;}}{\*\listtable {\list\listtemplateid1328947662{\listlevel\levelnfc0\levelnfcn0\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace0\levelindent0{\leveltext\'02\'00.;}{\levelnumbers\'01;}\fbias0 \fi-360\li720\jclisttab\tx720\lin720 }{\listlevel\levelnfc4\levelnfcn4 \leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace0\levelindent0{\leveltext\'02\'01.;}{\levelnumbers\'01;}\fi-360\li1440\jclisttab\tx1440\lin1440 }{\listlevel\levelnfc2\levelnfcn2\leveljc2\leveljcn2\levelfollow0\levelstartat1\levelspace0 \levelindent0{\leveltext\'02\'02.;}{\levelnumbers\'01;}\fi-180\li2160\jclisttab\tx2160\lin2160 }{\listlevel\levelnfc0\levelnfcn0\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace0\levelindent0{\leveltext\'02\'03.;}{\levelnumbers\'01;}\fi-360\li2880 \jclisttab\tx2880\lin2880 }{\listlevel\levelnfc4\levelnfcn4\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace0\levelindent0{\leveltext\'02\'04.;}{\levelnumbers\'01;}\fi-360\li3600\jclisttab\tx3600\lin3600 }{\listlevel\levelnfc2\levelnfcn2\leveljc2 \leveljcn2\levelfollow0\levelstartat1\levelspace0\levelindent0{\leveltext\'02\'05.;}{\levelnumbers\'01;}\fi-180\li4320\jclisttab\tx4320\lin4320 }{\listlevel\levelnfc0\levelnfcn0\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace0\levelindent0 {\leveltext\'02\'06.;}{\levelnumbers\'01;}\fi-360\li5040\jclisttab\tx5040\lin5040 }{\listlevel\levelnfc4\levelnfcn4\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace0\levelindent0{\leveltext\'02\'07.;}{\levelnumbers\'01;}\fi-360\li5760 \jclisttab\tx5760\lin5760 }{\listlevel\levelnfc2\levelnfcn2\leveljc2\leveljcn2\levelfollow0\levelstartat1\levelspace0\levelindent0{\leveltext\'02\'08.;}{\levelnumbers\'01;}\fi-180\li6480\jclisttab\tx6480\lin6480 }{\listname ;}\listid145902279} {\list\listtemplateid763034750\listhybrid{\listlevel\levelnfc0\levelnfcn0\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace360\levelindent0{\leveltext\leveltemplateid67698703\'02\'00.;}{\levelnumbers\'01;}\fi-360\li360\jclisttab\tx360\lin360 } {\listlevel\levelnfc4\levelnfcn4\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace360\levelindent0{\leveltext\leveltemplateid67698713\'02\'01.;}{\levelnumbers\'01;}\fi-360\li1080\jclisttab\tx1080\lin1080 }{\listlevel\levelnfc2\levelnfcn2\leveljc2 \leveljcn2\levelfollow0\levelstartat1\levelspace360\levelindent0{\leveltext\leveltemplateid67698715\'02\'02.;}{\levelnumbers\'01;}\fi-180\li1800\jclisttab\tx1800\lin1800 }{\listlevel\levelnfc0\levelnfcn0\leveljc0\leveljcn0\levelfollow0\levelstartat1 \levelspace360\levelindent0{\leveltext\leveltemplateid67698703\'02\'03.;}{\levelnumbers\'01;}\fi-360\li2520\jclisttab\tx2520\lin2520 }{\listlevel\levelnfc4\levelnfcn4\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace360\levelindent0{\leveltext \leveltemplateid67698713\'02\'04.;}{\levelnumbers\'01;}\fi-360\li3240\jclisttab\tx3240\lin3240 }{\listlevel\levelnfc2\levelnfcn2\leveljc2\leveljcn2\levelfollow0\levelstartat1\levelspace360\levelindent0{\leveltext\leveltemplateid67698715 \'02\'05.;}{\levelnumbers\'01;}\fi-180\li3960\jclisttab\tx3960\lin3960 }{\listlevel\levelnfc0\levelnfcn0\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace360\levelindent0{\leveltext\leveltemplateid67698703\'02\'06.;}{\levelnumbers\'01;} \fi-360\li4680\jclisttab\tx4680\lin4680 }{\listlevel\levelnfc4\levelnfcn4\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace360\levelindent0{\leveltext\leveltemplateid67698713\'02\'07.;}{\levelnumbers\'01;}\fi-360\li5400\jclisttab\tx5400\lin5400 } {\listlevel\levelnfc2\levelnfcn2\leveljc2\leveljcn2\levelfollow0\levelstartat1\levelspace360\levelindent0{\leveltext\leveltemplateid67698715\'02\'08.;}{\levelnumbers\'01;}\fi-180\li6120\jclisttab\tx6120\lin6120 }{\listname ;}\listid1803426597} {\list\listtemplateid1894697506\listhybrid{\listlevel\levelnfc0\levelnfcn0\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace360\levelindent0{\leveltext\leveltemplateid67698703\'02\'00.;}{\levelnumbers\'01;}\fbias0 \fi-360\li720 \jclisttab\tx720\lin720 }{\listlevel\levelnfc4\levelnfcn4\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace0\levelindent0{\leveltext\leveltemplateid67698713\'02\'01.;}{\levelnumbers\'01;}\fi-360\li1440\jclisttab\tx1440\lin1440 }{\listlevel \levelnfc2\levelnfcn2\leveljc2\leveljcn2\levelfollow0\levelstartat1\levelspace0\levelindent0{\leveltext\leveltemplateid67698715\'02\'02.;}{\levelnumbers\'01;}\fi-180\li2160\jclisttab\tx2160\lin2160 }{\listlevel\levelnfc0\levelnfcn0\leveljc0\leveljcn0 \levelfollow0\levelstartat1\levelspace0\levelindent0{\leveltext\leveltemplateid67698703\'02\'03.;}{\levelnumbers\'01;}\fi-360\li2880\jclisttab\tx2880\lin2880 }{\listlevel\levelnfc4\levelnfcn4\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace0 \levelindent0{\leveltext\leveltemplateid67698713\'02\'04.;}{\levelnumbers\'01;}\fi-360\li3600\jclisttab\tx3600\lin3600 }{\listlevel\levelnfc2\levelnfcn2\leveljc2\leveljcn2\levelfollow0\levelstartat1\levelspace0\levelindent0{\leveltext \leveltemplateid67698715\'02\'05.;}{\levelnumbers\'01;}\fi-180\li4320\jclisttab\tx4320\lin4320 }{\listlevel\levelnfc0\levelnfcn0\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace0\levelindent0{\leveltext\leveltemplateid67698703 \'02\'06.;}{\levelnumbers\'01;}\fi-360\li5040\jclisttab\tx5040\lin5040 }{\listlevel\levelnfc4\levelnfcn4\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace0\levelindent0{\leveltext\leveltemplateid67698713\'02\'07.;}{\levelnumbers\'01;}\fi-360\li5760 \jclisttab\tx5760\lin5760 }{\listlevel\levelnfc2\levelnfcn2\leveljc2\leveljcn2\levelfollow0\levelstartat1\levelspace0\levelindent0{\leveltext\leveltemplateid67698715\'02\'08.;}{\levelnumbers\'01;}\fi-180\li6480\jclisttab\tx6480\lin6480 }{\listname ;}\listid2030645637}}{\*\listoverridetable{\listoverride\listid2030645637\listoverridecount0\ls1}{\listoverride\listid145902279\listoverridecount0\ls2}{\listoverride\listid1803426597\listoverridecount0\ls3}}{\*\rsidtbl \rsid734578\rsid794721\rsid1451435 \rsid2178935\rsid2315987\rsid3410928\rsid4194765\rsid4539988\rsid6185165\rsid9311908\rsid12144492\rsid12207418\rsid12781656\rsid12921242\rsid14381222\rsid15234860\rsid15431022}{\*\generator Microsoft Word 10.0.2627;}{\info {\title Installation instructions for PHP 4 on an HP Nonstop Server}{\author Moi}{\operator Moi}{\creatim\yr2002\mo6\dy27\hr11\min33}{\revtim\yr2002\mo6\dy27\hr11\min33}{\version2}{\edmins0}{\nofpages9}{\nofwords1827}{\nofchars10418} {\*\company Compaq Computer Corporation}{\nofcharsws12221}{\vern16437}}\widowctrl\ftnbj\aenddoc\noxlattoyen\expshrtn\noultrlspc\dntblnsbdb\nospaceforul\formshade\horzdoc\dgmargin\dghspace180\dgvspace180\dghorigin1800\dgvorigin1440\dghshow1\dgvshow1 \jexpand\viewkind1\viewscale75\pgbrdrhead\pgbrdrfoot\splytwnine\ftnlytwnine\htmautsp\nolnhtadjtbl\useltbaln\alntblind\lytcalctblwd\lyttblrtgr\lnbrkrule\nobrkwrptbl\snaptogridincell\allowfieldendsel\wrppunct\asianbrkrule\rsidroot12781656 \fet0\sectd \linex0\endnhere\sectlinegrid360\sectdefaultcl\sftnbj {\*\pnseclvl1\pnucrm\pnstart1\pnindent720\pnhang {\pntxta .}}{\*\pnseclvl2\pnucltr\pnstart1\pnindent720\pnhang {\pntxta .}}{\*\pnseclvl3\pndec\pnstart1\pnindent720\pnhang {\pntxta .}}{\*\pnseclvl4 \pnlcltr\pnstart1\pnindent720\pnhang {\pntxta )}}{\*\pnseclvl5\pndec\pnstart1\pnindent720\pnhang {\pntxtb (}{\pntxta )}}{\*\pnseclvl6\pnlcltr\pnstart1\pnindent720\pnhang {\pntxtb (}{\pntxta )}}{\*\pnseclvl7\pnlcrm\pnstart1\pnindent720\pnhang {\pntxtb (} {\pntxta )}}{\*\pnseclvl8\pnlcltr\pnstart1\pnindent720\pnhang {\pntxtb (}{\pntxta )}}{\*\pnseclvl9\pnlcrm\pnstart1\pnindent720\pnhang {\pntxtb (}{\pntxta )}}\pard\plain \ql \li0\ri0\widctlpar\aspalpha\aspnum\faauto\adjustright\rin0\lin0\itap0 \fs24\lang1033\langfe1033\cgrid\langnp1033\langfenp1033 {\b\f1\insrsid12781656\charrsid794721 Installation instructions for PHP 4 on an HP Nonstop Server \par }{\f1\insrsid12781656\charrsid4539988 \par Those instructions are for installing PHP 4 on an HP Nonstop Server only. They are not valid for any other operating system. \par \par This note also replaces the standard PHP 4 installation file for HP Nonstop Servers. \par \par }{\b\f1\insrsid12781656\charrsid794721 Considerations \par }{\f1\insrsid12781656\charrsid4539988 \par PHP 4 can be run on an HP NonStop Servers as a CGI program, launched by the iTP Webserver. This installation note does not allow PHP to run as a module or as a specific Pathway server. Although this installation has been tested by HP employees}{ \b\f1\insrsid12781656\charrsid794721 , it is not supported by HP}{\f1\insrsid12781656\charrsid4539988 and the GCSC }{\f1\insrsid794721 (NonStop Servers support center) }{\f1\insrsid12781656\charrsid4539988 will not }{\f1\insrsid794721 enter}{ \f1\insrsid12781656\charrsid4539988 cases for PHP issues. \par \par If you would like support for PHP running on an HP Nonstop server, please enter a bug report in }{\field\flddirty{\*\fldinst {\f1\insrsid12781656\charrsid4539988 HYPERLINK "http://bugs.php.net" }{\f1\insrsid12781656\charrsid4539988 {\*\datafield 00d0c9ea79f9bace118c8200aa004ba90b02000000170000001400000068007400740070003a002f002f0062007500670073002e007000680070002e006e00650074000000e0c9ea79f9bace118c8200aa004ba90b2a00000068007400740070003a002f002f0062007500670073002e007000680070002e006e0065007400 2f000000}}}{\fldrslt {\cs15\f1\ul\cf2\insrsid12781656\charrsid4539988 http://bugs.php.net}}}{\f1\insrsid12781656\charrsid4539988 , and specify the operating system version (e.g. HP Nonstop Server G06.13) \par }{\f1\insrsid2315987\charrsid4539988 \par }{\b\f1\insrsid2315987\charrsid794721 Versions \par }{\f1\insrsid2315987\charrsid4539988 \par This installation procedure has been tested successfully on G06 and D48 systems. \par }{\f1\insrsid12781656\charrsid4539988 \par }{\b\f1\insrsid12781656\charrsid794721 Installation \par }{\f1\insrsid12781656\charrsid4539988 \par {\listtext\pard\plain\f1\insrsid12781656\charrsid4539988 \hich\af1\dbch\af0\loch\f1 1.\tab}}\pard \ql \fi-360\li720\ri0\widctlpar\jclisttab\tx720\aspalpha\aspnum\faauto\ls1\adjustright\rin0\lin720\itap0\pararsid15234860 { \f1\insrsid12781656\charrsid4539988 Unpack the distribution file.\line \line You will have downloaded a tar.gz file (not the bz2 file). For example php-4.2.1.tar.gz. }{\f1\insrsid15234860\charrsid4539988 Place the file in the top directory where you want to install php. For example: /home/dev/php\line \line }{\f1\insrsid12781656\charrsid4539988 Unzip this file like this:\line \line gunzip php-4.2.1.tar.gz\line \line This will create a file called php -4.2.1.tar. Untar the file:\line \line tar \endash xvf php-4.2.1.tar}{\f1\insrsid15234860\charrsid4539988 \line \line This will create a php-4.2.1 directory. Change directory to php-4.2.1:\line \line cd php-4.2.1\line \par {\listtext\pard\plain\f1\insrsid15234860\charrsid4539988 \hich\af1\dbch\af0\loch\f1 2.\tab}}\pard \ql \fi-360\li720\ri0\widctlpar\jclisttab\tx720\aspalpha\aspnum\faauto\ls1\adjustright\rin0\lin720\itap0\pararsid2315987 { \f1\insrsid15234860\charrsid4539988 Create a directory called nsk and go in the directory:\line \line mkdir nsk\line cd nsk}{\f1\insrsid2315987\charrsid4539988 \line \par {\listtext\pard\plain\f1\insrsid2315987\charrsid4539988 \hich\af1\dbch\af0\loch\f1 3.\tab}The c89 compiler on HP Nonstop Servers do n ot automatically search for procedures in the system libraries when a file is being compiled. This causes a problem with the standard ./configure script, which will behave incorrectly, thinking that every procedure it is looking for exists on the system. T his behavior is due to the fact that the linking of system procedures is made the first time the program is ran (called fixup time). If you do not use the script below, you will get undefined externals and illegal instructions when you run PHP, even thoug h the compilation may have completed without errors. \line \line The script below gathers procedure names from the system SRLs, and creates a wrapper for the C compiler that will get around the problem described above.\line \line Note that although this script can be used to install other open source software that is built via Autoconf, it has been specifically tested for PHP, and there is no guarantee that it will work for other programs.\line \line C}{ \f1\insrsid15234860\charrsid4539988 reate a file called }{\b\f1\insrsid15234860\charrsid4539988 makeprocs}{\f1\insrsid15234860\charrsid4539988 which will contain the following script:}{\f1\insrsid2315987\charrsid4539988 \line \line }{\insrsid2315987 \line }{\f2\insrsid2315987\charrsid2315987 #!/bin/sh}{\insrsid2315987\charrsid2315987 \par }\pard \ql \li720\ri0\widctlpar\aspalpha\aspnum\faauto\adjustright\rin0\lin720\itap0\pararsid2315987 {\f2\insrsid2315987\charrsid2315987 \par echo "\\nStarting to build the procedure list from your system..\\n" \par \par # First get the current sysnn \par \par sysnn=$(gtacl -p 'sysinfo' | grep SYSnn | awk '\{print $3\}') \par \par echo "You are running on $sysnn." \par \par # Get the list of SRLs to look for. This is libc.obey \par \par srllist=$(sed 's/-l//' &2 \par nm $fullname | egrep '(^_EXP#)|(^_ORG#)|(^\\$m_)' | sed 's/\\([^ ]*\\).*/\\1/p' \\ \par | sed 's/^_EXP#//' | sed 's/^_ORG#//' | sed 's/^OSS_\\([a-z]*\\)[_]/\\1/' \par done >procs \par \par echo "Done.. Now creating nskcc.." \par \par # Now make a fake cc so that the Configure script will work properly. I call \par # it 'nskcc', then set the following environment variables. After this is \par # done, ./Configure and the subsequent make will run properly. \par # \par # CC=nskcc \par # CPP="c89 -E" Note that this means C preprocessor, not the Cplusplus compiler. \par # CPPFLAGS="-D_XOPEN_SOURCE_EXTENDED=1 -Wextensions -Wnowarn=1506,262,707,304" \par \par # Remove our previous test file if any. \par # launch the c compiler with the options given by the caller. \par \par cat >nskcc <EOM \par #!/bin/sh \par \par # first check if this is a test run \par if [ "\\$1" = "-test" ] \par then \par test=true \par shift \par fi \par \par # See if we're called from configure. If not, just run the c compiler \par # otherwise do the procedure check \par \par PARENT=\\$(ps -p\\$(ps -p\\$\\$ -oppid="") -oargs|tail -1) \par if test "\\$test" = "true" || echo \\$PARENT|grep -q '[cC]onfigure' \par then \par rm -f nskt \par \par # Look for the name of the object file. \par \par obj=\\`echo \\$* | sed 's/.*-o \\([A-Za-z0-9.]*\\) .*/\\1/'\\` \par \par # Try the compilation. Return immediately if failed. \par \par c89 \\$* || exit \\$? \par \par # if a procedure is undefined, it will appear like this: \par # (none) : gethostbyname \par # \par # use grep/sed to extract the procedure names that are undefined. \par # we FAIL if there is one procedure undefined, even if the other is \par # good. ./configure will rarely check more than one proc at a time \par # so that should work 99%. \par \par noft "file \\$obj;llf" 2>/dev/null | grep "^(none)" | sed 's/^(none)[ ]*: //' >nskt \par \par # if nskt is not empty, then there is a procedure that was not found in \par # the srl, either because it was not declared properly, or because it's \par # in the tsysclr. In that case, try to find our procedure in the procs file. \par # \par # If the procedure is not found, exit with status 1. That way, ./configure will \par # think cc failed and consider the procedure to not work. \par \par if test -s nskt; then \par proclist=\\`cat nskt\\` \par for proc in \\$proclist; do \par grep -q "^\\$proc\\\\\\$" \\$PROCSFILE || exit 1 \par done \par fi \par else \par # script called from something else than configure, so just run c89. \par c89 \\$* \par fi \par exit \par EOM \par chmod +x nskcc \par \par # Now tell user to set the env variables so ./configure uses our nskcc program. \par \par echo "Now set the following environment variables and run ./configure." \par \par echo "export PATH=\\$PATH:./nsk (or the full path of nsk)" \par echo "export CPP=\\"c89 -E\\"" \par echo "export CC=nskcc"}{\f2\insrsid2315987 \par }{\f2\insrsid6185165 echo \'93export PROCSFILE=\'94}{\f2\insrsid6185165\charrsid2315987 \par }{\f2\insrsid2315987\charrsid2315987 echo "export CPPFLAGS=\\"-D_XOPEN_SOURCE_EXTENDED=1 -Wextensions -Wnowarn=1506,262,707,304\\"" \par echo "export LD=nld" \par \par echo "Now run ./configure" \par exit}{\f2\insrsid2315987 \par \par {\listtext\pard\plain\insrsid6185165 \hich\af0\dbch\af0\loch\f0 4.\tab}}\pard \ql \fi-360\li720\ri0\widctlpar\jclisttab\tx720\aspalpha\aspnum\faauto\ls1\adjustright\rin0\lin720\itap0\pararsid6185165 {\insrsid6185165 Execute the script. This will load the SRL information, and create two new files in the nsk directory:\line \line chmod +x makeprocs\line ./makeprocs\line \line You should see an equivalent to the following output:\line \line }{ \f2\insrsid6185165\charrsid6185165 Starting to build the procedure list from your system.. \par }\pard \ql \li360\ri0\widctlpar\aspalpha\aspnum\faauto\adjustright\rin0\lin360\itap0\pararsid6185165 {\f2\insrsid6185165\charrsid6185165 \par }\pard \ql \li720\ri0\widctlpar\aspalpha\aspnum\faauto\adjustright\rin0\lin720\itap0\pararsid6185165 {\f2\insrsid6185165\charrsid6185165 You are running on SYS00. \par Extracting info from /G/SYSTEM/SYS00/zcresrl... \par Extracting info from /G/SYSTEM/SYS00/zcrtlsrl... \par Extracting info from /G/SYSTEM/SYS00/zossksrl... \par Extracting info from /G/SYSTEM/SYS00/zossfsrl... \par Extracting info from /G/SYSTEM/SYS00/zsecsrl... \par Extracting info from /G/SYSTEM/SYS00/zi18nsrl... \par Extracting info from /G/SYSTEM/SYS00/zicnvsrl... \par Extracting info from /G/SYSTEM/SYS00/zossesrl... \par Extracting info from /G/SYSTEM/SYS00/zinetsrl... \par Extracting info from /G/SYSTEM/SYS00/zstfnsrl... \par Extracting info from /G/SYSTEM/SYS00/zosshsrl... \par Extracting info from /G/SYSTEM/SYS00/TSYSCLR... \par Done.. Now creating nskcc.. \par Now set the following environment variables and run ./configure. \par export PATH=$PATH:./nsk (or the full path of nsk) \par export CPP="c89 -E" \par export CC=nskcc}{\f2\insrsid6185165 \par export PROCSFILE=}{\f2\insrsid6185165\charrsid6185165 \par export CPPFLAGS="-D_XOPEN_SOURCE_EXTENDED=1 -Wextensions -Wnowarn=1506,262,707,}{\f2\insrsid3410928 30}{\f2\insrsid6185165 4}{\f2\insrsid6185165\charrsid6185165 " \par export LD=nld \par Now run ./configure}{\f2\insrsid6185165 \par \par {\listtext\pard\plain\f1\insrsid6185165\charrsid6185165 \hich\af1\dbch\af0\loch\f1 5.\tab}}\pard \ql \fi-360\li720\ri0\widctlpar\jclisttab\tx720\aspalpha\aspnum\faauto\ls1\adjustright\rin0\lin720\itap0\pararsid6185165 {\f1\insrsid6185165\charrsid6185165 You should then have the following files in the nsk directory:}{\f1\insrsid6185165 \line \line }{\f1\insrsid6185165\charrsid6185165 makeprocs nskcc }{\f1\insrsid6185165 procs\line \line }{\f1\insrsid6185165\charrsid6185165 The }{ \b\f1\insrsid6185165\charrsid6185165 makeprocs}{\f1\insrsid6185165\charrsid6185165 file is the script you just ran.\line }{\b\f1\insrsid6185165\charrsid6185165 nskcc}{\f1\insrsid6185165\charrsid6185165 is the c89 wrapper.\line }{ \b\f1\insrsid6185165\charrsid6185165 procs}{\f1\insrsid6185165\charrsid6185165 is a list of system procedures.}{\f1\insrsid6185165 \line }{\f1\insrsid6185165\charrsid6185165 \par {\listtext\pard\plain\f1\insrsid6185165\charrsid6185165 \hich\af1\dbch\af0\loch\f1 6.\tab}Set the following environment variables:}{\f1\insrsid6185165 \line \line export PATH=$PATH:/home/dev/php-4.2.1/nsk (assuming that you installed php in /home/dev/php-4.2.1)\line export CPP=\'94c89 \endash E\'94\line export CC=nskcc\line export PROCSFILE=/home/dev/ph-4.2.1/nsk/procs (assuming that you installed php in /home/dev/php-4.2.1)\line export CPPFLAGS=\'94 -D _XOPEN_SOURCE_EXTENDED=1}{\f1\insrsid3410928 \line }{\f1\insrsid6185165 \endash Wext}{\f1\insrsid3410928 ensions \endash Wnowarn=1506,262,707,30}{\f1\insrsid6185165 4\'94\line export LD=nld\line \line The PATH variable will tell }{ \b\f1\insrsid1451435 make}{\f1\insrsid1451435 where to find the c89 wrapper (nskcc).\line The CPP variable stands for C PreProcessor. Those are the flags needed to run the preprocessor.\line CC is set to }{\b\f1\insrsid1451435 nskcc}{\f1\insrsid1451435 , which is our c89 wrapper.\line PROCSFILE should point to the file \'93procs\'94 that was created after you ran }{\b\f1\insrsid1451435 makeprocs.}{\f1\insrsid1451435 \line CPPFLAGS are the c89 compiler flags. They specify that part of the source is XOPEN compliant, and some XOPEN header files should be included, Wextensions is necessary for TAL headers, and some warnings have been suppressed from the output as they should not cause any problem with this installation.\line \par {\listtext\pard\plain\f1\insrsid1451435 \hich\af1\dbch\af0\loch\f1 7.\tab}}\pard \ql \fi-360\li720\ri0\widctlpar\jclisttab\tx720\aspalpha\aspnum\faauto\ls1\adjustright\rin0\lin720\itap0\pararsid1451435 {\f1\insrsid1451435 Run the ./configure script. \line cd ..\line ./configure \endash without-mysql \endash host=nsr-tandem-nsk\line mysql is built by default on other PHP platform. Since mysql is not available on HP Nonstop Servers, it has to be disabled. \line \line This installation does not include }{\f1\insrsid9311908 non standard, }{\f1\insrsid1451435 experimental or platform specific extensions. If you wish to include specific extensions, they may not compile correctly on HP Nonstop Servers.}{\f1\insrsid9311908 Look for future revisions of this note as extensions are tested on HP Nonstop Servers.}{\f1\insrsid3410928 \line \line You may want to install PHP in a different directory that the default one, or enable/disable configuration options like short tags, safe mode, etc.. Look at }{\field{\*\fldinst {\f1\insrsid3410928 HYPER LINK "http://www.php.net/manual/en/install.configure.php" }{\f1\insrsid3410928\charrsid12467616 {\*\datafield 00d0c9ea79f9bace118c8200aa004ba90b02000000170000003300000068007400740070003a002f002f007700770077002e007000680070002e006e00650074002f006d0061006e00750061006c002f0065006e002f0069006e007300740061006c006c002e0063006f006e006600690067007500720065002e0070006800 70000000e0c9ea79f9bace118c8200aa004ba90b6600000068007400740070003a002f002f007700770077002e007000680070002e006e00650074002f006d0061006e00750061006c002f0065006e002f0069006e007300740061006c006c002e0063006f006e006600690067007500720065002e007000680070000000}} }{\fldrslt {\cs15\f1\ul\cf2\insrsid3410928\charrsid12467616 http://www.php.net/manual/en/install.configure.php}}}{\f1\insrsid3410928 for a list of configuration options that you can change.}{\f1\insrsid1451435 \line \line When you run ./configure you should see the following after the first 10 lines or so:\line \line }{\f1\insrsid1451435\charrsid1451435 checking how to run the C preprocessor... c89 }{\f1\insrsid1451435 \endash }{\f1\insrsid1451435\charrsid1451435 E}{ \f1\insrsid1451435 \line }{\f1\insrsid1451435\charrsid1451435 checking for gcc... nskcc}{\f1\insrsid1451435 \line \line If ./configure fails and doesn\rquote t show that it is using nskcc or c89, check that your environment variables are set correctly. \line \line Continue reading the output of configure until it says \'93Running system checks\'94.}{\f1\insrsid12921242 }{\f1\insrsid14381222 Few lines later, you may notice that it says that it didn\rquote t find ieeefp.h. This is normal and should not be changed.\line \line Verify that asctime_r returns no. If you fall into INSPECT, you didn\rquote t set the environment variables correctly, and the wrapper is not used, or it\rquote s not working properly. \line \line Verify that gethostbyaddr returns yes. If it does, then everything is fine. If it returns no, then you have not installed the wrapper correctly.\line }{\f1\insrsid15234860 \par {\listtext\pard\plain\f1\insrsid14381222 \hich\af1\dbch\af0\loch\f1 8.\tab}}{\f1\insrsid14381222 Once the configuration is over, you can now compile php. Just type }{\i\f1\insrsid14381222 make.}{\i\f1\insrsid3410928 \line }{\f1\insrsid3410928 You will see some warnings (mostly warning # 770). Those are okay, and won\rquote t prevent PHP from compiling successfully.}{\i\f1\insrsid14381222 \line }{\f1\insrsid14381222\charrsid14381222 \par {\listtext\pard\plain\f1\insrsid14381222 \hich\af1\dbch\af0\loch\f1 9.\tab}}{\f1\insrsid14381222 At the end of the compilation process, you should have a php object in the main php-4.2.1 directory. Check that it compiled okay without undefined externals: \line \line ./php \endash v\line \line This should return}{\f1\insrsid3410928 :}{\f1\insrsid14381222 \line \line 4.2.1 (or the version that you installed).}{\f1\insrsid3410928 \line }{\f1\insrsid14381222 \par {\listtext\pard\plain\f1\insrsid734578 \hich\af1\dbch\af0\loch\f1 10.\tab}}{\f1\insrsid734578 Install PHP\line }{\i\f1\insrsid734578 make install\line }{\f1\insrsid3410928\charrsid734578 \par {\listtext\pard\plain\f1\insrsid734578 \hich\af1\dbch\af0\loch\f1 11.\tab}}\pard \ql \fi-360\li720\ri0\widctlpar\jclisttab\tx720\aspalpha\aspnum\faauto\ls1\adjustright\rin0\lin720\itap0\pararsid12144492 {\f1\insrsid734578 Configure iTP Webserver to run php\line cd to /usr/tandem/webserver/conf\line edit the mime-types.config file\line add the following entries:\line \line }{\f2\insrsid12144492\charrsid12144492 MimeType application/x-httpd-guardian php\line PathwayMimeMap php generic-cgi}{\f2\insrsid12144492 \line }{\f1\insrsid12144492\charrsid12144492 \par {\listtext\pard\plain\f1\insrsid12144492\charrsid12144492 \hich\af1\dbch\af0\loch\f1 12.\tab}Restart the iTPWebserver}{\f1\insrsid12144492 \line You can now test a simple php script:\line \line #/usr/local/bin/php\line \line } {\f1\insrsid12144492\charrsid12144492 \par }\pard \ql \li0\ri0\widctlpar\aspalpha\aspnum\faauto\adjustright\rin0\lin0\itap0\pararsid3410928 {\f1\insrsid3410928 \line }{\b\f1\insrsid3410928\charrsid794721 Building with extensions:\line }{\b\f1\insrsid794721\charrsid794721 \par }{\f1\insrsid794721 This installation note has not been tested with additional extensions. Some extensions are known to be working well on HP NonStop Servers, some need some tweaking before a full compilation can be achieved. Future versions of this note may include information on extensions that have been compiled successfully and run well on NonStop Servers. \par \par }{\b\f1\insrsid794721\charrsid794721 Pathway, NSK architecture, Enscribe, SQLMP/MX and other HP NonStop Server specifics with PHP:}{\b\f1\insrsid3410928\charrsid794721 \par }{\f1\insrsid794721 \line This installation note explains how to install and run PHP under Pathway as a CGI server. PHP does n ot take advantage of the NSK architecture, and will not be able to access SQLMP, Enscribe or other HP Nonstop Servers proprietary code. However, an Enscribe extension is being developed that will allow you to open, read, write and create enscribe files. S QL/MX access via the unified ODBC interface should also be available in the end of 2002 or beginning of 2003.\line \line PHP Performance on HP Nonstop Servers is being evaluated. Watch out for performance information in an update of this installation note. \par \par }{\b\f1\insrsid794721 Getting a PHP binary }{\b\f1\insrsid4194765 for HP Nonstop Servers.}{\f1\insrsid794721 \par \par This }{\f1\insrsid2178935 is not offered yet, but it should be available in the near future.}{\f1\insrsid794721 \par }{\f1\insrsid12207418 \par }{\b\f1\insrsid12207418 Running PHP under Apache on HP Nonstop Servers, or running PHP under Guardian \par \par }{\f1\insrsid12207418 Apache has not been officially ported by HP on HP Nonstop Servers. The official webserver is iTPWebserver, which takes full advantage of the HP Nonstop technologies, including multiple cpus, load balancing, fault tolerance to name a few. iTPWebserver does not run under Guardian.}{\f1\insrsid12207418\charrsid12207418
\par }}
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php