[www-doc] [Git][VideoLAN.org/websites][master] websites: actualize php-cgi version

Konstantin Pavlov gitlab at videolan.org
Mon Jan 20 19:29:08 CET 2020



Konstantin Pavlov pushed to branch master at VideoLAN organization / websites


Commits:
12333676 by Konstantin Pavlov at 2020-01-20T21:28:56+03:00
websites: actualize php-cgi version

- - - - -


1 changed file:

- www.videolan.org/bin/php-cgi.sh


Changes:

=====================================
www.videolan.org/bin/php-cgi.sh
=====================================
@@ -1,4 +1,5 @@
 #!/bin/sh
+set -x
 #
 # Script to call the PHP Hypertext Processor as a CGI script
 #  -- Courmisch 21/10/2004
@@ -6,8 +7,8 @@
 # $Id: phpcgi.sh 1960 2004-11-01 16:52:30Z dionoea $
 
 # It won't work if you call the PHP CLI usually in /usr/bin or /usr/local/bin
-if [ -x /usr/lib/cgi-bin/php5 ]; then
-    PHP=/usr/lib/cgi-bin/php5
+if [ -x /usr/lib/cgi-bin/php7 ]; then
+    PHP=/usr/lib/cgi-bin/php7
 else
     PHP=/usr/bin/php-cgi
 fi
@@ -24,7 +25,7 @@ export PATH_INFO=`echo "$1" | cut -d '?' -f1`
 
 export PATH_TRANSLATED="${2}${PATH_INFO}"
 
-export SCRIPT_FILENAME="/cgi-bin/php5"
+export SCRIPT_FILENAME="/cgi-bin/php7"
 export QUERY_STRING=`echo "$1" | cut -d '?' -f2`
 export REMOTE_HOST="localhost"
 export REMOTE_ADDR="127.0.0.1"



View it on GitLab: https://code.videolan.org/VideoLAN.org/websites/commit/123336761997a6dfbd1f386b12c112c711a90b6c

-- 
View it on GitLab: https://code.videolan.org/VideoLAN.org/websites/commit/123336761997a6dfbd1f386b12c112c711a90b6c
You're receiving this email because of your account on code.videolan.org.




More information about the www-doc mailing list