From ff5a3abafdb15fb09ab3e9d4c081c106f5d93f4b Mon Sep 17 00:00:00 2001 From: stefanocasazza Date: Tue, 4 Aug 2015 19:44:33 +0200 Subject: [PATCH] running PHP scripts in ULib --- Home.md | 106 +++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 105 insertions(+), 1 deletion(-) diff --git a/Home.md b/Home.md index 0781a86..98e4c1a 100644 --- a/Home.md +++ b/Home.md @@ -1 +1,105 @@ -Welcome to the ULib wiki! +#Running PHP scripts in ULib +*** +Download and install the last release of ULib. +I suggest for to have many info to configure ULib with debug (*./configure --enable-debug ...*). +From the downloaded source copy the shell script **php.sh**, that you can found in *ULib-1.4.2/tests/examples*, to some workng directory, say */var/www/example*. + +*** +The firt time we run **./php.sh** inside */var/www/example* we must have the following directory structure: + +**./php.sh** +./userver.cfg +./err: *php?.err* +./log: *php?.log* +./out: *php?.out* +./www: **info.php** +./www/cgi-bin: **index.php** +> +*** +####1) You can safely run PHP scripts using ULib’s CGI support. + +Run **./php.sh** with argument 1: (we have as output something like that) +~~~~ +stefano: /var/www/example # ./php.sh 1 +PID = 26222 +stefano: /var/www/example # curl http://localhost:8080/cgi-bin/index.php + + +