Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
freedombone
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Context Sensitive Group
freedombone
Commits
f495828a
Commit
f495828a
authored
7 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
php directory
parent
8e77c68a
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/freedombone-app-nextcloud
+3
-3
3 additions, 3 deletions
src/freedombone-app-nextcloud
src/freedombone-logging
+4
-4
4 additions, 4 deletions
src/freedombone-logging
src/freedombone-utils-web
+13
-13
13 additions, 13 deletions
src/freedombone-utils-web
with
20 additions
and
20 deletions
src/freedombone-app-nextcloud
+
3
−
3
View file @
f495828a
...
...
@@ -339,7 +339,7 @@ function remove_nextcloud {
function_check remove_nodejs
remove_nodejs pleroma-nextcloud
sed
-i
's|env[PATH]|;env[PATH]|g'
/etc/php7.0/fpm/pool.d/www.conf
sed
-i
's|env[PATH]|;env[PATH]|g'
/etc/php
/
7.0/fpm/pool.d/www.conf
read_config_param
"NEXTCLOUD_DOMAIN_NAME"
read_config_param
"MY_USERNAME"
...
...
@@ -393,11 +393,11 @@ function install_nextcloud_main {
apt-get
-yq
install
php-memcached php-intl memcached php-memcached
# Ensure PATH is available to php
if
[
!
-f
/etc/php7.0/fpm/pool.d/www.conf
]
;
then
if
[
!
-f
/etc/php
/
7.0/fpm/pool.d/www.conf
]
;
then
echo
$'No php www configuration file found'
exit
628757
fi
sed
-i
's|;env[PATH]|env[PATH]|g'
/etc/php7.0/fpm/pool.d/www.conf
sed
-i
's|;env[PATH]|env[PATH]|g'
/etc/php
/
7.0/fpm/pool.d/www.conf
if
[
!
-d
/var/www/
$NEXTCLOUD_DOMAIN_NAME
]
;
then
mkdir
/var/www/
$NEXTCLOUD_DOMAIN_NAME
...
...
This diff is collapsed.
Click to expand it.
src/freedombone-logging
+
4
−
4
View file @
f495828a
...
...
@@ -99,8 +99,8 @@ if [[ "$1" == "on" || "$1" == "On" || "$1" == "ON" ]]; then
if
[
-f
/etc/mumble-server.ini
]
;
then
sed
-i
's|logfile=.*|logfile=/var/log/mumble-server.log|g'
/etc/mumble-server.ini
fi
if
[
-f
/etc/php7.0/fpm/php-fpm.conf
]
;
then
sed
-i
's|error_log =.*|error_log = /var/log/php-fpm.log|g'
/etc/php7.0/fpm/php-fpm.conf
if
[
-f
/etc/php
/
7.0/fpm/php-fpm.conf
]
;
then
sed
-i
's|error_log =.*|error_log = /var/log/php-fpm.log|g'
/etc/php
/
7.0/fpm/php-fpm.conf
fi
if
[
-d
/etc/nginx
]
;
then
if
[
!
-d
/var/log/nginx
]
;
then
...
...
@@ -180,8 +180,8 @@ else
shred
-zu
/var/log/radicale/
*
rm
-rf
/var/log/radicale
fi
if
[
-f
/etc/php7.0/fpm/php-fpm.conf
]
;
then
sed
-i
's|error_log =.*|error_log = /dev/null|g'
/etc/php7.0/fpm/php-fpm.conf
if
[
-f
/etc/php
/
7.0/fpm/php-fpm.conf
]
;
then
sed
-i
's|error_log =.*|error_log = /dev/null|g'
/etc/php
/
7.0/fpm/php-fpm.conf
shred
-zu
/var/log/php-fpm.
*
fi
if
[
-d
/etc/nginx
]
;
then
...
...
This diff is collapsed.
Click to expand it.
src/freedombone-utils-web
+
13
−
13
View file @
f495828a
...
...
@@ -401,11 +401,11 @@ function letsencrypt_renewals {
}
function
configure_php
{
sed
-i
"s/memory_limit = 128M/memory_limit =
${
MAX_PHP_MEMORY
}
M/g"
/etc/php7.0/fpm/php.ini
sed
-i
's/;cgi.fix_pathinfo=1/cgi.fix_pathinfo=0/g'
/etc/php7.0/fpm/php.ini
sed
-i
"s/memory_limit = 128M/memory_limit =
${
MAX_PHP_MEMORY
}
M/g"
/etc/php
/
7.0/fpm/php.ini
sed
-i
's/;cgi.fix_pathinfo=1/cgi.fix_pathinfo=0/g'
/etc/php
/
7.0/fpm/php.ini
sed
-i
"s/memory_limit = -1/memory_limit =
${
MAX_PHP_MEMORY
}
M/g"
/etc/php7.0/cli/php.ini
sed
-i
"s/upload_max_filesize = 2M/upload_max_filesize = 50M/g"
/etc/php7.0/fpm/php.ini
sed
-i
"s/post_max_size = 8M/post_max_size = 50M/g"
/etc/php7.0/fpm/php.ini
sed
-i
"s/upload_max_filesize = 2M/upload_max_filesize = 50M/g"
/etc/php
/
7.0/fpm/php.ini
sed
-i
"s/post_max_size = 8M/post_max_size = 50M/g"
/etc/php
/
7.0/fpm/php.ini
}
function
install_web_server_access_control
{
...
...
@@ -559,15 +559,15 @@ function install_web_server {
sed
-i
's|error_log.*|error_log = /dev/null;|g'
/etc/nginx/nginx.conf
# limit the number of php processes
sed
-i
's/; process.max =.*/process.max = 32/g'
/etc/php7.0/fpm/php-fpm.conf
#sed -i 's/;process_control_timeout =.*/process_control_timeout = 300/g' /etc/php7.0/fpm/php-fpm.conf
if
!
grep
-q
"pm.max_children"
/etc/php7.0/fpm/php-fpm.conf
;
then
echo
'pm.max_children = 10'
>>
/etc/php7.0/fpm/php-fpm.conf
echo
'pm.start_servers = 2'
>>
/etc/php7.0/fpm/php-fpm.conf
echo
'pm.min_spare_servers = 2'
>>
/etc/php7.0/fpm/php-fpm.conf
echo
'pm.max_spare_servers = 5'
>>
/etc/php7.0/fpm/php-fpm.conf
echo
'pm.max_requests = 50'
>>
/etc/php7.0/fpm/php-fpm.conf
sed
-i
's/; process.max =.*/process.max = 32/g'
/etc/php
/
7.0/fpm/php-fpm.conf
#sed -i 's/;process_control_timeout =.*/process_control_timeout = 300/g' /etc/php
/
7.0/fpm/php-fpm.conf
if
!
grep
-q
"pm.max_children"
/etc/php
/
7.0/fpm/php-fpm.conf
;
then
echo
'pm.max_children = 10'
>>
/etc/php
/
7.0/fpm/php-fpm.conf
echo
'pm.start_servers = 2'
>>
/etc/php
/
7.0/fpm/php-fpm.conf
echo
'pm.min_spare_servers = 2'
>>
/etc/php
/
7.0/fpm/php-fpm.conf
echo
'pm.max_spare_servers = 5'
>>
/etc/php
/
7.0/fpm/php-fpm.conf
echo
'pm.max_requests = 50'
>>
/etc/php
/
7.0/fpm/php-fpm.conf
fi
if
[
!
-d
/etc/nginx
]
;
then
...
...
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