4646 Obtener y desempaquetar el código fuente de PHP:
4747 </para >
4848
49- <example xml : id =" install.unix.nginx.extract.php" >
49+ <informalexample xml : id =" install.unix.nginx.extract.php" >
5050 <screen >
5151<![CDATA[
5252tar zxf php-x.x.x
5353]]>
5454 </screen >
55- </example >
55+ </informalexample >
5656 </listitem >
5757
5858 <listitem >
@@ -63,7 +63,7 @@ tar zxf php-x.x.x
6363 se realiza una configuración sencilla con soporte para PHP-FPM y MySQL.
6464 </para >
6565
66- <example xml : id =" install.unix.nginx.build.php" >
66+ <informalexample xml : id =" install.unix.nginx.build.php" >
6767 <screen >
6868<![CDATA[
6969cd ../php-x.x.x
7272sudo make install
7373]]>
7474 </screen >
75- </example >
75+ </informalexample >
7676 </listitem >
7777
7878 <listitem >
7979 <para >
8080 Obtener y mover los ficheros de configuración a sus ubicaciones correctas
8181 </para >
8282
83- <example xml : id =" install.unix.nginx.configure.php" >
83+ <informalexample xml : id =" install.unix.nginx.configure.php" >
8484 <screen >
8585<![CDATA[
8686cp php.ini-development /usr/local/php/php.ini
8787cp /usr/local/etc/php-fpm.conf.default /usr/local/etc/php-fpm.conf
8888cp sapi/fpm/php-fpm /usr/local/bin
8989]]>
9090 </screen >
91- </example >
91+ </informalexample >
9292 </listitem >
9393
9494 <listitem >
@@ -106,25 +106,25 @@ cp sapi/fpm/php-fpm /usr/local/bin
106106 Cargar el php.ini:
107107 </para >
108108
109- <example xml : id =" install.unix.nginx.configure.ini" >
109+ <informalexample xml : id =" install.unix.nginx.configure.ini" >
110110 <screen >
111111<![CDATA[
112112vim /usr/local/php/php.ini
113113]]>
114114 </screen >
115- </example >
115+ </informalexample >
116116
117117 <para >
118118 Localizar <literal >cgi.fix_pathinfo=</literal > y modificarla como sigue:
119119 </para >
120120
121- <example xml : id =" install.unix.nginx.configure.pathinfo" >
121+ <informalexample xml : id =" install.unix.nginx.configure.pathinfo" >
122122 <screen >
123123<![CDATA[
124124cgi.fix_pathinfo=0
125125]]>
126126 </screen >
127- </example >
127+ </informalexample >
128128 </listitem >
129129
130130 <listitem >
@@ -133,19 +133,19 @@ cgi.fix_pathinfo=0
133133 www-data y el grupo www-data antes de poder iniciar el servicio:
134134 </para >
135135
136- <example xml : id =" install.unix.nginx.modify.phpfpm" >
136+ <informalexample xml : id =" install.unix.nginx.modify.phpfpm" >
137137 <screen >
138138<![CDATA[
139139vim /usr/local/etc/php-fpm.conf
140140]]>
141141 </screen >
142- </example >
142+ </informalexample >
143143
144144 <para >
145145 Buscar y modificar lo siguiente:
146146 </para >
147147
148- <example xml : id =" install.unix.nginx.modify.phpfpm.usergroup" >
148+ <informalexample xml : id =" install.unix.nginx.modify.phpfpm.usergroup" >
149149 <screen >
150150<![CDATA[
151151; Usuario/grupo de procesos de Unix
@@ -155,19 +155,19 @@ user = www-data
155155group = www-data
156156]]>
157157 </screen >
158- </example >
158+ </informalexample >
159159
160160 <para >
161161 Ahora se puede iniciar el servicio de php-fpm:
162162 </para >
163163
164- <example xml : id =" install.unix.nginx.start.phpfpm" >
164+ <informalexample xml : id =" install.unix.nginx.start.phpfpm" >
165165 <screen >
166166<![CDATA[
167167/usr/local/bin/php-fpm
168168]]>
169169 </screen >
170- </example >
170+ </informalexample >
171171
172172 <para >
173173 Esta guía no continua configurando php-fpm; si se tiene interés en
@@ -180,20 +180,20 @@ group = www-data
180180 Ahora Nginx debe configurarse para que pueda procesar aplicaciones de PHP:
181181 </para >
182182
183- <example xml : id =" install.unix.nginx.configure.nginx" >
183+ <informalexample xml : id =" install.unix.nginx.configure.nginx" >
184184 <programlisting >
185185<![CDATA[
186186vim /usr/local/nginx/conf/nginx.conf
187187]]>
188188 </programlisting >
189- </example >
189+ </informalexample >
190190
191191 <para >
192192 Modificar el bloque de ubicaciones predeterminado para que intente
193193 servir ficheros .php:
194194 </para >
195195
196- <example xml : id =" install.unix.nginx.configure.nginx.location" >
196+ <informalexample xml : id =" install.unix.nginx.configure.nginx.location" >
197197 <programlisting role =" nginx-conf" >
198198<![CDATA[
199199location / {
@@ -202,15 +202,15 @@ location / {
202202}
203203]]>
204204 </programlisting >
205- </example >
205+ </informalexample >
206206
207207 <para >
208208 El siguiente paso es asegurarse de que los ficheros .php se pasan al
209209 «backend» de PHP-FPM. Bajo el bloque de ubicaciones predeterminado de PHP
210210 comentado, añadir lo siguiente:
211211 </para >
212212
213- <example xml : id =" install.unix.nginx.configure.nginx.php" >
213+ <informalexample xml : id =" install.unix.nginx.configure.nginx.php" >
214214 <programlisting role =" nginx-conf" >
215215<![CDATA[
216216location ~* \.php$ {
@@ -222,35 +222,35 @@ location ~* \.php$ {
222222}
223223]]>
224224 </programlisting >
225- </example >
225+ </informalexample >
226226
227227 <para >
228228 Reiniciar Nginx.
229229 </para >
230230
231- <example xml : id =" install.unix.nginx.restart.nginx" >
231+ <informalexample xml : id =" install.unix.nginx.restart.nginx" >
232232 <screen >
233233<![CDATA[
234234sudo /usr/local/nginx/sbin/nginx -s stop
235235sudo /usr/local/nginx/sbin/nginx
236236]]>
237237 </screen >
238- </example >
238+ </informalexample >
239239 </listitem >
240240
241241 <listitem >
242242 <para >
243243 Crear un fichero de prueba
244244 </para >
245245
246- <example xml : id =" install.unix.nginx.test.nginx.php" >
246+ <informalexample xml : id =" install.unix.nginx.test.nginx.php" >
247247 <screen >
248248<![CDATA[
249249rm /usr/local/nginx/html/index.html
250250echo "<?php phpinfo(); ?>" >> /usr/local/nginx/html/index.php
251251]]>
252252 </screen >
253- </example >
253+ </informalexample >
254254
255255 <para >
256256 Ahora, navegar a http://localhost. phpinfo() debería mostrarse.
0 commit comments