spooky Wed Mar 27 11:47:28 2002 EDT
Added files:
/phpdoc/ro/chapters install.xml
Log:
first entry; install.general and install.hpux included for the moment. single file
translation used (like others do).
Index: phpdoc/ro/chapters/install.xml
+++ phpdoc/ro/chapters/install.xml
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.1 $ -->
<!-- EN-Revision: install.general.xml 1.1 Maintainer: spooky Status: ready -->
<chapter id="installation">
<title>Instalare</title>
<sect1 id="install.general">
<title>Aspecte generale privind instalarea</title>
<para>
�nainte de �nceperea instal�rii, trebuie s� �tii pentru ce vrei s�
folose�ti
PHP-ul. Sunt trei domenii principale �n care po�i folosi PHP-ul descrise �n
sec�iunea <link linkend="intro-whatcando">Ce poate face PHP?</link>
<itemizedlist>
<listitem><simpara>Scripting ce ruleaz�a de partea
serverului</simpara></listitem>
<listitem><simpara>Scripting la linia de comand�</simpara></listitem>
<listitem><simpara>Aplica�ii GUI ce ruleaz� de partea
clientului</simpara></listitem>
</itemizedlist>
</para>
<para>
Pentru prima �i cea mai utilizat� formp, ai nevoie de trei lucruri: �nsu�i
PHP-ul, un server de web �i un navigator web. Probabil ai deja un navigator
web, �i, depindinz�nd de instalarea sistemului t�u de operare, s-ar putea s�
ai �i un server de web (ex. Apache pe Linux sau IIS pe Windows).
Ai putea deasemenea s� inchiriezi spa�iu pe web de la o companie. �n acest
fel, nu trebuiasc� s� seteti tu personal, doar s� scrii scripturile PHP, le
transferi pe server pe care ai �nchiriat spa�iul �i vezi rezultatul ob�inut
�n browser. Po�i g�si o list� cu companii care ofer� hosting la <ulink
url="&url.php.hosts;">&url.php.hosts;</ulink>.
</para>
<para>
Dac� instalezi serverul �i PHP de unul singur, ai la dispozi�ie dou�
metode
de a conecta PHP de server. Pentru majoritatea serverelor PHP are un modul
direct de interfa�� (numit �i SAPI). Aceste server includ Apache, Microsoft
Internet Information Server, Netscape �i iPlanet. Multe alte server au
suport pentru ISAPI, modulul de interfata Microsoft (OmniHTTPd spre
exemplu). Dac� PHP nu are suport de modul pentru serverul t�u de web, �l
po�i folosi �ntotdeauna ca un procesor CGI. Aceasta �nseamn� c� trebuie sa
configurezi serverul t�u de web s� foloseasc� executabilul �n linie de
comand� a PHP-ului (<filename>php.exe</filename> �n Windows) s� proceseze
toate fi�ierele PHP cerute pe server.
</para>
<para>
Dac� e�ti deasemenea interesat s� folose�ti php �n scripting linie de
comand� (ex. scriearea de scripturi care s� autogenereze imagini pentru tine
offline, sau procesarea de fi�iere text depinz�nd de argumentele care le
trimi�i), �ntotdeauna ai nevoie de executabilul �n linia de comand�. Pentru
mai multe informa�ii, cite�te sec�iunea despre <link
linkend="commandline">scrierea de aplica�ii PHP �n linia de comand�</link>.
�n acest caz nu ai nevoie de serveru �i nici de navigator.
</para>
<para>
Cu PHP po�i deasemenea s� scrii aplica�ii GUI ce ruleaz� de partea
clientului folosind extensia PHP-GTK. Aceasta este o abordare total diferit�
dec�t cea a scrierii paginilor web, deoarece tu nu sco�i nici un rezultat
HTML, dar manevrezi ferestre �i obiecte din interiorul lor. Pentru mai multe
detalii despre PHP-GTK, te rog <ulink url="&url.php.gtk;">viziteaz� site-ul
dedicat acestei extensii</ulink>. PHP-GTK nu este inclus �n distribu�ia
oficial� a PHP-ului.
</para>
<para>
De acum �n colo, aceast� sec�iune se preocup� de instalarea �i
configurarea PHP-ului pentru serverul de web sub Unix �i Windows ca modul
de server �i executabil CGI.
</para>
<para>
Desc�rca�i PHP, codul surs�, �i distribu�iile binare pentru Windows care
pot fi g�site la <ulink url="&url.php;">&url.php;</ulink>.
��i recomand�m s� alegi un <ulink url="&url.mirrors;">server</ulink> care
se afl� mai aproape de tine pentru a desc�rca mai repede distribu�iile.
</para>
</sect1>
<!-- EN-Revision: install.hpux.xml 1.1 Maintainer: spooky Status: ready -->
<sect1 id="install.hpux">
<title>Instalarea pe Unix/HP-UX</title>
<para>
Aceast� sec�iune con�ine noti�e �i ajutoare pentru a instala PHP pe
sistemele HP-UX.
</para>
<example id="install.hpux.example">
<title>
Instruc�iuni instalare pentru HP-UX 10
</title>
<screen>
<![CDATA[
From: [EMAIL PROTECTED]
04-Jan-2001 09:49
(These tips are for PHP 4.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.g
z
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 <filename>non-gnu</filename>
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.
]]>
</screen>
</example>
</sect1>
</chapter>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->