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
dfa5992a
Commit
dfa5992a
authored
7 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
php configuration for gnusocial/postactiv
parent
3180e859
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/freedombone-app-gnusocial
+11
-0
11 additions, 0 deletions
src/freedombone-app-gnusocial
src/freedombone-app-postactiv
+9
-0
9 additions, 0 deletions
src/freedombone-app-postactiv
with
20 additions
and
0 deletions
src/freedombone-app-gnusocial
+
11
−
0
View file @
dfa5992a
...
...
@@ -611,6 +611,8 @@ function remove_gnusocial {
if
grep
-q
'gnusocial-firewall'
/etc/crontab
;
then
sed
-i
'/gnusocial-firewall/d'
/etc/crontab
fi
sed
-i
's|mysqli.allow_persistent.*|mysqli.allow_persistent = On|g'
/etc/php/7.0/cli/php.ini
sed
-i
's|mysqli.reconnect.*|mysqli.reconnect = Off|g'
/etc/php/7.0/cli/php.ini
function_check remove_ddns_domain
remove_ddns_domain
"
$GNUSOCIAL_DOMAIN_NAME
"
...
...
@@ -888,6 +890,15 @@ function install_gnusocial_main {
# This improves performance
sed
-i
"s|//
\$
config
\\
['db'
\\
]
\\
['schemacheck'
\\
].*|
\$
config
\\
['db'
\\
]
\\
['schemacheck'
\\
] = 'script';|g"
"
$gnusocial_config_file
"
# remove the install script
if
[
-f
"/var/www/
$GNUSOCIAL_DOMAIN_NAME
/htdocs/install.php"
]
;
then
rm
"/var/www/
$GNUSOCIAL_DOMAIN_NAME
/htdocs/install.php"
fi
# php configuration
sed
-i
's|mysqli.allow_persistent.*|mysqli.allow_persistent = On|g'
/etc/php/7.0/cli/php.ini
sed
-i
's|mysqli.reconnect.*|mysqli.reconnect = On|g'
/etc/php/7.0/cli/php.ini
systemctl restart mariadb
systemctl restart php7.0-fpm
systemctl restart nginx
...
...
This diff is collapsed.
Click to expand it.
src/freedombone-app-postactiv
+
9
−
0
View file @
dfa5992a
...
...
@@ -624,6 +624,8 @@ function remove_postactiv {
remove_backup_database_local postactiv
sed
-i
'/postactiv-firewall/d'
/etc/crontab
sed
-i
's|mysqli.allow_persistent.*|mysqli.allow_persistent = On|g'
/etc/php/7.0/cli/php.ini
sed
-i
's|mysqli.reconnect.*|mysqli.reconnect = Off|g'
/etc/php/7.0/cli/php.ini
function_check remove_ddns_domain
remove_ddns_domain
"
$POSTACTIV_DOMAIN_NAME
"
...
...
@@ -653,6 +655,9 @@ function install_postactiv_main {
apt-get
-yq
install
php-gettext php-curl php-gd php-mysql git curl
apt-get
-yq
install
memcached php-memcached php-intl exiftool libfcgi0ldbl
apt-get
-yq
install
php7.0-bcmath php7.0-curl php7.0-exif php7.0-gd
apt-get
-yq
install
php7.0-intl php7.0-mbstring php7.0-mysqlnd
apt-get
-yq
install
php7.0-opcache php7.0-readline php7.0-xmlwriter
if
[
!
-d
"/var/www/
$POSTACTIV_DOMAIN_NAME
"
]
;
then
mkdir
"/var/www/
$POSTACTIV_DOMAIN_NAME
"
...
...
@@ -905,6 +910,10 @@ function install_postactiv_main {
rm
"/var/www/
$POSTACTIV_DOMAIN_NAME
/htdocs/install.php"
fi
# php configuration
sed
-i
's|mysqli.allow_persistent.*|mysqli.allow_persistent = On|g'
/etc/php/7.0/cli/php.ini
sed
-i
's|mysqli.reconnect.*|mysqli.reconnect = On|g'
/etc/php/7.0/cli/php.ini
systemctl restart mariadb
systemctl restart php7.0-fpm
systemctl restart nginx
...
...
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