install.unix.sun.html
来自「php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容」· HTML 代码 · 共 351 行 · 第 1/2 页
HTML
351 行
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>Sun, iPlanet and Netscape servers on Sun Solaris</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="install.unix.fhttpd.html">fhttpd related notes</a></div> <div class="next" style="text-align: right; float: right;"><a href="install.unix.commandline.html">CGI and command line setups</a></div> <div class="up"><a href="install.unix.html">Installation on Unix systems</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="install.unix.sun" class="sect1"> <h2 class="title">Sun, iPlanet and Netscape servers on Sun Solaris</h2> <p class="para"> This section contains notes and hints specific to Sun Java System Web Server, Sun ONE Web Server, iPlanet and Netscape server installs of PHP on Sun Solaris. </p> <p class="para"> From PHP 4.3.3 on you can use PHP scripts with the <a href="ref.nsapi.html" class="link">NSAPI module</a> to <a href="install.unix.sun.html#install.unix.sun.specialpages" class="link">generate custom directory listings and error pages</a>. Additional functions for Apache compatibility are also available. For support in current web servers read the <a href="install.unix.sun.html#install.unix.sun.notes" class="link">note about subrequests</a>. </p> <p class="para"> You can find more information about setting up PHP for the Netscape Enterprise Server (NES) here: <a href="http://benoit.noss.free.fr/php/install-php4.html" class="link external">» http://benoit.noss.free.fr/php/install-php4.html</a> </p> <p class="para"> To build PHP with Sun JSWS/Sun ONE WS/iPlanet/Netscape web servers, enter the proper install directory for the <a href="configure.html#configure.with-nsapi" class="link">--with-nsapi=[DIR]</a> option. The default directory is usually <var class="filename">/opt/netscape/suitespot/</var>. Please also read <var class="filename">/php-xxx-version/sapi/nsapi/nsapi-readme.txt</var>. </p> <p class="para"> <ol class="orderedlist"> <li class="listitem"> <p class="para"> Install the following packages from <a href="http://www.sunfreeware.com/" class="link external">» http://www.sunfreeware.com/</a> or another download site: <ul class="simplelist"> <li class="member"><var class="filename">autoconf-2.13</var></li> <li class="member"><var class="filename">automake-1.4</var></li> <li class="member"><var class="filename">bison-1_25-sol26-sparc-local</var></li> <li class="member"><var class="filename">flex-2_5_4a-sol26-sparc-local</var></li> <li class="member"><var class="filename">gcc-2_95_2-sol26-sparc-local</var></li> <li class="member"><var class="filename">gzip-1.2.4-sol26-sparc-local</var></li> <li class="member"><var class="filename">m4-1_4-sol26-sparc-local</var></li> <li class="member"><var class="filename">make-3_76_1-sol26-sparc-local</var></li> <li class="member"> <var class="filename">mysql-3.23.24-beta</var> (if you want mysql support) </li> <li class="member"><var class="filename">perl-5_005_03-sol26-sparc-local</var></li> <li class="member"><var class="filename">tar-1.13</var> (GNU tar)</li> </ul> </p> </li> <li class="listitem"> <span class="simpara"> Make sure your path includes the proper directories <i>PATH=.:/usr/local/bin:/usr/sbin:/usr/bin:/usr/ccs/bin</i> and make it available to your system <strong class="userinput"><code>export PATH</code></strong>. </span> </li> <li class="listitem"> <span class="simpara"> <strong class="userinput"><code>gunzip php-x.x.x.tar.gz</code></strong> (if you have a .gz dist, otherwise go to 4). </span> </li> <li class="listitem"> <span class="simpara"> <strong class="userinput"><code>tar xvf php-x.x.x.tar</code></strong> </span> </li> <li class="listitem"> <span class="simpara"> Change to your extracted PHP directory: <strong class="userinput"><code>cd ../php-x.x.x</code></strong> </span> </li> <li class="listitem"> <p class="para"> For the following step, make sure <var class="filename">/opt/netscape/suitespot/</var> is where your netscape server is installed. Otherwise, change to the correct path and run: <div class="example-contents"><div class="cdata"><pre>./configure --with-mysql=/usr/local/mysql \--with-nsapi=/opt/netscape/suitespot/ \--enable-libgcc</pre></div> </div> </p> </li> <li class="listitem"> <span class="simpara"> Run <strong class="command">make</strong> followed by <strong class="command">make install</strong>. </span> </li> </ol> </p> <p class="para"> After performing the base install and reading the appropriate readme file, you may need to perform some additional configuration steps. </p> <p class="formalpara"> <h5 class="title">Configuration Instructions for Sun/iPlanet/Netscape</h5> <p class="para"> Firstly you may need to add some paths to the <var class="varname">LD_LIBRARY_PATH</var> environment for the server to find all the shared libs. This can best done in the start script for your web server. The start script is often located in: <var class="filename">/path/to/server/https-servername/start</var>. You may also need to edit the configuration files that are located in: <var class="filename">/path/to/server/https-servername/config/</var>. <ol class="orderedlist"> <li class="listitem"> <p class="para"> Add the following line to <var class="filename">mime.types</var> (you can do that by the administration server): <div class="example-contents"><pre><div class="cdata"><pre>type=magnus-internal/x-httpd-php exts=php</pre></div> </pre></div> </p> </li> <li class="listitem"> <p class="para"> Edit <var class="filename">magnus.conf</var> (for servers >= 6) or <var class="filename">obj.conf</var> (for servers < 6) and add the following, shlib will vary depending on your system, it will be something like <var class="filename">/opt/netscape/suitespot/bin/libphp4.so</var>. You should place the following lines after <i>mime types init</i>. <div class="example-contents"><div class="cdata"><pre>Init fn="load-modules" funcs="php4_init,php4_execute,php4_auth_trans" shlib="/opt/netscape/suitespot/bin/libphp4.so"Init fn="php4_init" LateInit="yes" errorString="Failed to initialize PHP!" [php_ini="/path/to/php.ini"]</pre></div> </div> (PHP >= 4.3.3) The <i>php_ini</i> parameter is optional but with it you can place your <var class="filename">php.ini</var> in your web server config directory. </p> </li> <li class="listitem"> <p class="para"> Configure the default object in <var class="filename">obj.conf</var> (for virtual server classes [version 6.0+] in their <var class="filename">vserver.obj.conf</var>): <div class="example-contents"><div class="cdata"><pre><Object name="default">....#NOTE this next line should happen after all 'ObjectType' and before all 'AddLog' linesService fn="php4_execute" type="magnus-internal/x-httpd-php" [inikey=value inikey=value ...]..</Object></pre></div> </div>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?