Private GIT
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
phpipam
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vlbox
phpipam
Commits
85a87db8
Commit
85a87db8
authored
Nov 26, 2015
by
phpipam.net
Browse files
Options
Downloads
Patches
Plain Diff
Added check for SSL MySQL - issue ##207
parent
4d7b887e
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
config.dist.php
+7
-5
7 additions, 5 deletions
config.dist.php
functions/checks/check_php_build.php
+7
-0
7 additions, 0 deletions
functions/checks/check_php_build.php
with
14 additions
and
5 deletions
config.dist.php
+
7
−
5
View file @
85a87db8
...
@@ -9,13 +9,15 @@ $db['name'] = "phpipam";
...
@@ -9,13 +9,15 @@ $db['name'] = "phpipam";
$db
[
'port'
]
=
3306
;
$db
[
'port'
]
=
3306
;
/* SSL options
/* SSL options
******************************
/
******************************
//
See http://php.net/manual/en/ref.pdo-mysql.php
See http://php.net/manual/en/ref.pdo-mysql.php
//
https://dev.mysql.com/doc/refman/5.7/en/ssl-options.html
https://dev.mysql.com/doc/refman/5.7/en/ssl-options.html
//
Please update these settings before setting 'ssl' to true.
Please update these settings before setting 'ssl' to true.
//
All settings can be commented out or set to NULL if not needed
All settings can be commented out or set to NULL if not needed
php 5.3.7 required
*/
$db
[
'ssl'
]
=
false
;
# true/false, enable or disable SSL as a whole
$db
[
'ssl'
]
=
false
;
# true/false, enable or disable SSL as a whole
$db
[
'ssl_key'
]
=
"/path/to/cert.key"
;
# path to an SSL key file. Only makes sense combined with ssl_cert
$db
[
'ssl_key'
]
=
"/path/to/cert.key"
;
# path to an SSL key file. Only makes sense combined with ssl_cert
$db
[
'ssl_cert'
]
=
"/path/to/cert.crt"
;
# path to an SSL certificate file. Only makes sense combined with ssl_key
$db
[
'ssl_cert'
]
=
"/path/to/cert.crt"
;
# path to an SSL certificate file. Only makes sense combined with ssl_key
...
...
This diff is collapsed.
Click to expand it.
functions/checks/check_php_build.php
+
7
−
0
View file @
85a87db8
...
@@ -45,6 +45,13 @@ if ((@include_once 'PEAR.php') != true) {
...
@@ -45,6 +45,13 @@ if ((@include_once 'PEAR.php') != true) {
$missingExt
[]
=
"php PEAR support"
;
$missingExt
[]
=
"php PEAR support"
;
}
}
# if db ssl = true check version
if
(
@
$db
[
'ssl'
]
==
true
)
{
if
(
phpversion
()
<
"5.3.7"
)
{
$missingExt
[]
=
"For SSL MySQL php version 5.3.7 is required!"
;
}
}
# if any extension is missing print error and die!
# if any extension is missing print error and die!
if
(
sizeof
(
$missingExt
)
!=
1
)
{
if
(
sizeof
(
$missingExt
)
!=
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