-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.macos.patch
383 lines (381 loc) · 12.9 KB
/
install.macos.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
Index: install/macos/server.xml
===================================================================
--- install/macos/server.xml (revision 335221)
+++ install/macos/server.xml (working copy)
@@ -1,144 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 297028 Maintainer: narigone Status: ready --><!-- Credits: avelino -->
- <sect1 xml:id="install.macosx.server" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
- <title>Compilando para o Mac OS X - Versão Servidor</title>
-
- <formalpara xml:id="install.macosx.server.compile">
- <title>Instalação para o Servidor Mac OS X</title>
- <para>
- <orderedlist>
- <listitem>
- <simpara>Pegue a última distribuição do Apache e PHP.</simpara>
- </listitem>
- <listitem>
- <para>
- Expanda o arquivo tar, e execute o programa <command>configure</command> do Apache
- dessa maneira (modifique para conformar com suas necessidades).
- <programlisting role="shell">
-<![CDATA[
-./configure --exec-prefix=/usr \
---localstatedir=/var \
---mandir=/usr/share/man \
---libexecdir=/System/Library/Apache/Modules \
---iconsdir=/System/Library/Apache/Icons \
---includedir=/System/Library/Frameworks/Apache.framework/Versions/1.3/Headers \
---enable-shared=max \
---enable-module=most \
---target=apache
-]]>
- </programlisting>
- </para>
- </listitem>
- <listitem>
- <para>
- Se você quiser que o compilador faça alguma otimização, você pode também querer
- adicionar essa linha:
- <programlisting role="shell">
-<![CDATA[
-setenv OPTIM=-O2
-]]>
- </programlisting>
- </para>
- </listitem>
- <listitem>
- <para>
- Depois, vá para o diretório onde os fontes do PHP 4 estão e configure ele.
- <programlisting role="shell">
-<![CDATA[
-./configure --prefix=/usr \
- --sysconfdir=/etc \
- --localstatedir=/var \
- --mandir=/usr/share/man \
- --with-xml \
- --with-apache=/src/apache_1.3.12
-]]>
- </programlisting>
- Se você quiser qualquer outra extensão (MySQL, GD, etc.), adicione a opção
- a esse comando. Para a opção <option role="configure">--with-apache</option>, coloque
- o caminho do diretório dos fontes do Apache, por exemplo
- <filename class="directory">/src/apache_1.3.12</filename>.
- </para>
- </listitem>
- <listitem>
- <simpara>
- Digite <command>make</command> e <command>make install</command>. Isso
- irá adicionar um diretório para nos fontes do Apache em
- <filename class="directory">src/modules/php4</filename>.
- </simpara>
- </listitem>
- <listitem>
- <para>
- Agora, reconfigure o Apache para montar junto com o PHP 4.
- <programlisting role="shell">
-<![CDATA[
-./configure --exec-prefix=/usr \
---localstatedir=/var \
---mandir=/usr/share/man \
---libexecdir=/System/Library/Apache/Modules \
---iconsdir=/System/Library/Apache/Icons \
---includedir=/System/Library/Frameworks/Apache.framework/Versions/1.3/Headers \
---enable-shared=max \
---enable-module=most \
---target=apache \
---activate-module=src/modules/php4/libphp4.a
-]]>
- </programlisting>
- Você pode receber uma mensagem dizendo que <filename>libmodphp4.a</filename> está
- desatualizado. Se isso acontecer, vá para do diretório <filename class="directory">src/modules/php4</filename>
- dentro do diretório dos fontes do Apache e execute o comando:
- <command>ranlib libmodphp4.a</command>. Depois volte para o diretório raiz dos
- fontes do Apache e execute o comando <command>configure</command>
- acima novamente. Isso fará a tabela de links ser atualizada. Execute
- <command>make</command> e <command>make install</command> novamente.
- </para>
- </listitem>
- <listitem>
- <simpara>
- Copie e renomei o arquivo <filename>php.ini-development</filename> que
- está no diretório dos fontes do PHP para o
- seu diretório <filename class="directory">bin</filename>:
- <userinput>cp php.ini-development /usr/local/bin/php.ini</userinput>
- ou (se você não tiver um diretório local)
- <userinput>cp php.ini-development /usr/bin/php.ini</userinput>.
- </simpara>
- </listitem>
- </orderedlist>
- </para>
- </formalpara>
- <!--
- <simpara>
- TODO: Someone with Mac OS X skills needs to improve this DOC
- Also, these links are 404 and outdated anyways and
- stepwise doesn't support PHP anymore.
-
- See also bug #14732
-
- Other examples for
- <link xlink:href="&url.stepwise.macosx-client;">Mac OS X client</link>
- and
- <link xlink:href="&url.stepwise.macosx-client;">Mac OS X server</link>
- are available at <link xlink:href="&url.stepwise;">Stepwise</link>.
- </simpara>
- -->
- </sect1>
-
-<!-- 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:"~/.phpdoc/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
--->
Index: install/macos/index.xml
===================================================================
--- install/macos/index.xml (revision 335221)
+++ install/macos/index.xml (working copy)
@@ -1,18 +1,15 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!-- EN-Revision: 297028 Maintainer: narigone Status: ready -->
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Revision$ -->
<chapter xml:id="install.macosx" xmlns="http://docbook.org/ns/docbook">
<title>Instalação no Mac OS X</title>
<para>
Essa seção contem notas e dicas específicas para instalação
- do PHP no Mac OS X. Existem duas versões do Mac OS X um pouquinho
- diferentes entre si, Cliente e Servidor, nosso manual trata da instalação
- do PHP em ambos os sistemas. Note que o PHP não está disponível para MacOS 9
- e versões anteriores.
+ do PHP no Mac OS X. O PHP já vem incluído nos Macs e a compilação é
+ semelhante à <link linkend="install.unix">Instalação em sistemas Unix</link>.
</para>
&install.macos.packages;
&install.macos.bundled;
- &install.macos.server;
- &install.macos.client;
+ &install.macos.compile;
</chapter>
<!-- Keep this comment at the end of the file
Index: install/macos/compile.xml
===================================================================
--- install/macos/compile.xml (revision 0)
+++ install/macos/compile.xml (revision 0)
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Revision: 304566 $ -->
+ <sect1 xml:id="install.macosx.compile" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
+ <title>Compilando o PHP no Mac OS X</title>
+ <simpara>
+ Use o <link linkend="install.unix">Instalação em sistemas Unix</link> para
+ compilar o PHP no Mac OS X.
+ </simpara>
+ </sect1>
+
+<!-- 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:"~/.phpdoc/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
+-->
Index: install/macos/bundled.xml
===================================================================
--- install/macos/bundled.xml (revision 335221)
+++ install/macos/bundled.xml (working copy)
@@ -1,5 +1,5 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!-- EN-Revision: n/a Maintainer: narigone Status: ready -->
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Revision$ -->
<sect1 xml:id="install.macosx.bundled" xmlns="http://docbook.org/ns/docbook">
<title>Usando o pacote do PHP para Mac</title>
<simpara>
@@ -172,7 +172,7 @@
do PHP, e execute <literal>php -v</literal> para verificar a versão do PHP
essa informação.
</simpara>
-</sect1>
+</sect1>
<!-- Keep this comment at the end of the file
Local variables:
Index: install/macos/client.xml
===================================================================
--- install/macos/client.xml (revision 335221)
+++ install/macos/client.xml (working copy)
@@ -1,100 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!-- EN-Revision: n/a Maintainer: narigone Status: ready -->
-
- <sect1 xml:id="install.macosx.client" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
- <title>Compilando para o MacOS X - Versão Cliente</title>
-
- <!-- TODO: verify these instructions (the wget URL below does not seem to work for me)
- Goba - June 04. 2004. -->
-
- <simpara>
- As instruções seguintes ajudarão você a instalar o módulo PHP para o servidor
- web Apache incluso no MacOS X. Essa versão inclui suporte para os bancos de dados
- MySQL e PostgreSQL. Essas instruções foram providas por
- <link xlink:href="&url.macosx;">Marc Liyanage</link>.
- </simpara>
- <warning>
- <para>
- Tenha cuidado quando for fazer isso, vocêo pode estragar seu servidor Apache!
- </para>
- </warning>
- <para>
- Faça isso para instalar:
- <orderedlist>
- <listitem>
- <simpara>
- Abra uma janela de terminal.
- </simpara>
- </listitem>
- <listitem>
- <simpara>
- Digite
- <userinput>wget http://www.diax.ch/users/liyanage/software/macosx/libphp4.so.gz</userinput>,
- e espere o download terminar.
- </simpara>
- </listitem>
- <listitem>
- <simpara>
- Digite <userinput>gunzip libphp4.so.gz</userinput>.
- </simpara>
- </listitem>
- <listitem>
- <simpara>
- Digite <userinput>sudo apxs -i -a -n php4 libphp4.so</userinput>
- </simpara>
- </listitem>
- <listitem>
- <para>
- Agora digite <userinput>sudo open -a TextEdit /etc/httpd/httpd.conf</userinput>.
- TextEdit abrirá o arquivo de configuração do servidor web. Localize Locate essas
- duas linhas perto do final do arquivo: (Use o comando Localizar (Find))
- <programlisting role="apache">
-<![CDATA[
-#AddType application/x-httpd-php .php
-#AddType application/x-httpd-php-source .phps
-]]>
- </programlisting>
- Remove os caracteres de comentários (<literal>#</literal>), e depois salve o arquivo e
- saia do TextEdit.
- </para>
- </listitem>
- <listitem>
- <simpara>
- Finalmente, digite <userinput>sudo apachectl graceful</userinput> e reinicie
- o servidor web.
- </simpara>
- </listitem>
- </orderedlist>
- </para>
- <para>
- PHP deve estar funcionando. Você pode testar colocando um arquivo no
- seu diretório <filename class="directory">Sites</filename> chamado
- <filename>test.php</filename>. No arquivo, escreva essa linha:
- <literal><?php phpinfo() ?></literal>.
- </para>
- <para>
- Agora abra <literal>127.0.0.1/~your_username/test.php</literal> no seu
- navegador. Você deve ver uma tabela de status com informação sobre o módulo PHP.
- </para>
- </sect1>
-
-<!-- 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:"~/.phpdoc/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
--->
Index: install/macos/packages.xml
===================================================================
--- install/macos/packages.xml (revision 335221)
+++ install/macos/packages.xml (working copy)
@@ -1,5 +1,5 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!-- EN-Revision: 288721 Maintainer: narigone Status: ready -->
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Revision$ -->
<sect1 xml:id="install.macosx.packages" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>Usando Pacotes</title>
<simpara>
@@ -20,22 +20,28 @@
<itemizedlist>
<listitem>
<simpara>
- MacPorts:
+ MacPorts:
<link xlink:href="&url.mac.macports;">&url.mac.macports;</link>
</simpara>
</listitem>
<listitem>
<simpara>
- Entropy:
- <link xlink:href="&url.mac.entropy;">&url.mac.entropy;</link>
+ Liip:
+ <link xlink:href="&url.mac.liip;">&url.mac.liip;</link>
</simpara>
</listitem>
<listitem>
<simpara>
- Fink:
+ Fink:
<link xlink:href="&url.mac.fink;">&url.mac.fink;</link>
</simpara>
</listitem>
+ <listitem>
+ <simpara>
+ Homebrew:
+ <link xlink:href="&url.mac.homebrew;">&url.mac.homebrew;</link>
+ </simpara>
+ </listitem>
</itemizedlist>
</para>
</sect1>