[www-doc] [Git][VideoLAN.org/websites][master] Do not hardcode php-cgi path
Jean-Baptiste Kempf (@jbk)
gitlab at videolan.org
Tue Dec 2 12:45:21 UTC 2025
Jean-Baptiste Kempf pushed to branch master at VideoLAN organization / websites
Commits:
a038e9de by Marvin Scholz at 2025-12-02T13:45:10+01:00
Do not hardcode php-cgi path
It is not necessarily at /usr/bin, so allow a fallback to
just php-cgi to search in PATH.
- - - - -
1 changed file:
- www.videolan.org/bin/php-cgi.sh
Changes:
=====================================
www.videolan.org/bin/php-cgi.sh
=====================================
@@ -8,8 +8,10 @@
# It won't work if you call the PHP CLI usually in /usr/bin or /usr/local/bin
if [ -x /usr/lib/cgi-bin/php7 ]; then
PHP=/usr/lib/cgi-bin/php7
-else
+elif [ -x /usr/bin/php-cgi ]; then
PHP=/usr/bin/php-cgi
+else
+ PHP=php-cgi
fi
# CGI/1.1 interface variables
View it on GitLab: https://code.videolan.org/VideoLAN.org/websites/-/commit/a038e9de6d614656dd1aa4b3687df722ea17c2ec
--
View it on GitLab: https://code.videolan.org/VideoLAN.org/websites/-/commit/a038e9de6d614656dd1aa4b3687df722ea17c2ec
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the www-doc
mailing list