1
0
mirror of https://github.com/stefanocasazza/ULib.git synced 2025-09-28 19:05:55 +08:00

Updated Running PHP scripts in ULib (markdown)

stefano casazza 2017-09-04 11:57:49 +02:00
parent f473c5e8b4
commit 5febf13662

@ -17,7 +17,7 @@ The first time we run **./php.sh** inside */var/www/example* we must have as res
./out: *php?.out*
./www: **info.php**
./www: **index.php**
./www/cgi-bin: **index.php**
><?php phpinfo(); ?>
@ -52,7 +52,7 @@ stefano: /var/www/example # /etc/init.d/php-fpm start
Starting PHP FastCGI Process Manager ...
stefano: /var/www/example # ./php.sh 2a
PID = 26222
stefano: /var/www/example # curl http://localhost:8080/info.php
stefano: /var/www/example # curl http://localhost:8080/index.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<style type="text/css">
@ -73,7 +73,7 @@ stefano: /var/www/example # /etc/init.d/php-fpm start
Starting PHP FastCGI Process Manager ...
stefano: /var/www/example # ./php.sh 2b
PID = 26222
stefano: /var/www/example # curl http://localhost:8080/info.php
stefano: /var/www/example # curl http://localhost:8080/index.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<style type="text/css">
@ -96,7 +96,7 @@ Reinstall ULib and run **./php.sh** with argument 3: (we have as output somethin
~~~~
stefano: /var/www/example # ./php.sh 3
PID = 26222
stefano: /var/www/example # curl http://localhost:8080/info.php
stefano: /var/www/example # curl http://localhost:8080/
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<style type="text/css">