Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
websites
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Samuel Maybe
websites
Commits
12333676
Commit
12333676
authored
5 years ago
by
Konstantin Pavlov
Browse files
Options
Downloads
Patches
Plain Diff
websites: actualize php-cgi version
parent
0a50b807
Branches
master
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
www.videolan.org/bin/php-cgi.sh
+4
-3
4 additions, 3 deletions
www.videolan.org/bin/php-cgi.sh
with
4 additions
and
3 deletions
www.videolan.org/bin/php-cgi.sh
+
4
−
3
View file @
12333676
#!/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/php
5
]
;
then
PHP
=
/usr/lib/cgi-bin/php
5
if
[
-x
/usr/lib/cgi-bin/php
7
]
;
then
PHP
=
/usr/lib/cgi-bin/php
7
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/php
5
"
export
SCRIPT_FILENAME
=
"/cgi-bin/php
7
"
export
QUERY_STRING
=
`
echo
"
$1
"
|
cut
-d
'?'
-f2
`
export
REMOTE_HOST
=
"localhost"
export
REMOTE_ADDR
=
"127.0.0.1"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment