Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
php
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
certo
php
Commits
6047cb4d
Commit
6047cb4d
authored
Nov 20, 2019
by
Vladimir Bashkirtsev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MySQL settings now done in mariadb.client target
parent
6126be2b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
94 deletions
+2
-94
Makefile
Makefile
+2
-15
web
web
+0
-79
No files found.
Makefile
View file @
6047cb4d
all
:
httpd-conf php-fpm-service
mysql-config
all
:
httpd-conf php-fpm-service
tar
xf php-7.3.6.tar.xz
tar
xf php-7.3.6.tar.xz
cd
php-7.3.6
&&
./configure
--prefix
=
/usr
--sysconfdir
=
/etc
--with-config-file-scan-dir
=
/etc/php.d
--localstatedir
=
/var
--datadir
=
/usr/share/php
--mandir
=
/usr/share/man
--enable-fpm
--with-fpm-user
=
apache
--with-fpm-group
=
apache
--with-fpm-systemd
--with-config-file-path
=
/etc
--with-zlib
--enable-bcmath
--with-bz2
--enable-calendar
--enable-dba
=
shared
--with-gdbm
--with-gmp
--enable-ftp
--with-gettext
--enable-mbstring
--with-readline
--enable-sockets
--enable-intl
--enable-soap
--with-openssl
--with-mysqli
--with-pdo-mysql
--with-mysql-sock
=
/run/mysql.sock
--with-curl
--with-gd
--with-jpeg-dir
--with-freetype-dir
--with-ldap
cd
php-7.3.6
&&
./configure
--prefix
=
/usr
--sysconfdir
=
/etc
--with-config-file-scan-dir
=
/etc/php.d
--localstatedir
=
/var
--datadir
=
/usr/share/php
--mandir
=
/usr/share/man
--enable-fpm
--with-fpm-user
=
apache
--with-fpm-group
=
apache
--with-fpm-systemd
--with-config-file-path
=
/etc
--with-zlib
--enable-bcmath
--with-bz2
--enable-calendar
--enable-dba
=
shared
--with-gdbm
--with-gmp
--enable-ftp
--with-gettext
--enable-mbstring
--with-readline
--enable-sockets
--enable-intl
--enable-soap
--with-openssl
--with-mysqli
--with-pdo-mysql
--with-mysql-sock
=
/run/mysql.sock
--with-curl
--with-gd
--with-jpeg-dir
--with-freetype-dir
--with-ldap
$(MAKE)
-C
php-7.3.6 CPPFLAGS+
=
' -DU_USING_ICU_NAMESPACE=1'
$(MAKE)
-C
php-7.3.6 CPPFLAGS+
=
' -DU_USING_ICU_NAMESPACE=1'
...
@@ -16,11 +16,9 @@ all: httpd-conf php-fpm-service mysql-config
...
@@ -16,11 +16,9 @@ all: httpd-conf php-fpm-service mysql-config
@
echo
"
$$
HTTPD_CONF"
>
/etc/httpd/conf/php.conf
@
echo
"
$$
HTTPD_CONF"
>
/etc/httpd/conf/php.conf
@
echo
"
$$
PHP_FPM_SERVICE"
>
/lib/systemd/system/php-fpm.service
@
echo
"
$$
PHP_FPM_SERVICE"
>
/lib/systemd/system/php-fpm.service
systemctl
enable
php-fpm.service
systemctl
enable
php-fpm.service
@
echo
"
$$
MYSQL_CONFIG"
>
/etc/config/mysql
install
-v
-Dm755
web /usr/share/easycwmp/functions
rm
-rf
php-7.3.6
rm
-rf
php-7.3.6
php
:
mysql-config
php
:
tar
xf php-7.3.6.tar.xz
tar
xf php-7.3.6.tar.xz
cd
php-7.3.6
&&
./configure
--prefix
=
/usr
--sysconfdir
=
/etc
--with-config-file-scan-dir
=
/etc/php.d
--localstatedir
=
/var
--datadir
=
/usr/share/php
--mandir
=
/usr/share/man
--enable-fpm
--with-fpm-user
=
apache
--with-fpm-group
=
apache
--with-fpm-systemd
--with-config-file-path
=
/etc
--with-zlib
--enable-bcmath
--with-bz2
--enable-calendar
--enable-dba
=
shared
--with-gdbm
--with-gmp
--enable-ftp
--with-gettext
--enable-mbstring
--with-readline
--enable-sockets
--enable-intl
--enable-soap
--with-openssl
--with-mysqli
--with-pdo-mysql
--with-mysql-sock
=
/run/mysql.sock
--with-curl
--with-gd
--with-jpeg-dir
--with-freetype-dir
--with-ldap
cd
php-7.3.6
&&
./configure
--prefix
=
/usr
--sysconfdir
=
/etc
--with-config-file-scan-dir
=
/etc/php.d
--localstatedir
=
/var
--datadir
=
/usr/share/php
--mandir
=
/usr/share/man
--enable-fpm
--with-fpm-user
=
apache
--with-fpm-group
=
apache
--with-fpm-systemd
--with-config-file-path
=
/etc
--with-zlib
--enable-bcmath
--with-bz2
--enable-calendar
--enable-dba
=
shared
--with-gdbm
--with-gmp
--enable-ftp
--with-gettext
--enable-mbstring
--with-readline
--enable-sockets
--enable-intl
--enable-soap
--with-openssl
--with-mysqli
--with-pdo-mysql
--with-mysql-sock
=
/run/mysql.sock
--with-curl
--with-gd
--with-jpeg-dir
--with-freetype-dir
--with-ldap
$(MAKE)
-C
php-7.3.6 CPPFLAGS+
=
' -DU_USING_ICU_NAMESPACE=1'
$(MAKE)
-C
php-7.3.6 CPPFLAGS+
=
' -DU_USING_ICU_NAMESPACE=1'
...
@@ -61,14 +59,3 @@ ExecReload=/bin/kill -USR2 $$MAINPID
...
@@ -61,14 +59,3 @@ ExecReload=/bin/kill -USR2 $$MAINPID
WantedBy
=
multi-user.target
WantedBy
=
multi-user.target
endef
endef
export
PHP_FPM_SERVICE
export
PHP_FPM_SERVICE
mysql-config
:
define
MYSQL_CONFIG
config
mysql
'credentials'
option
hostname
''
option
database
''
option
username
''
option
password
''
endef
export
MYSQL_CONFIG
web
deleted
100755 → 0
View file @
6126be2b
#!/bin/sh
#common_execute_method_param "$parameter" "$permission" "$get_cmd" "$set_cmd" "xsd:$type" "$forcedinform"
# $forcedinform should be set to 1 if the parameter is included in the inform message otherwise empty
# Default of $type = string
#############################
# Entry point functuons #
#############################
prefix_list
=
"
$prefix_list
$DMROOT
.Web."
entry_execute_method_list
=
"
$entry_execute_method_list
entry_execute_method_root_Web"
entry_execute_method_list_forcedinform
=
"
$entry_execute_method_list_forcedinform
entry_execute_method_root_Web"
entry_execute_method_root_Web
()
{
case
"
$1
"
in
""
|
"
$DMROOT
."
|
"
$DMROOT
.Web."
*
)
common_execute_method_obj
"
$DMROOT
.Web."
"0"
common_execute_method_obj
"
$DMROOT
.Web.MySQL."
"0"
common_execute_method_param
"
$DMROOT
.Web.MySQL.HostName"
"1"
"mysql_get_hostname"
"mysql_set_hostname"
common_execute_method_param
"
$DMROOT
.Web.MySQL.DataBase"
"1"
"mysql_get_database"
"mysql_set_database"
common_execute_method_param
"
$DMROOT
.Web.MySQL.UserName"
"1"
"mysql_get_username"
"mysql_set_username"
common_execute_method_param
"
$DMROOT
.Web.MySQL.Password"
"1"
""
"mysql_set_password"
return
0
;
;;
esac
return
$E_INVALID_PARAMETER_NAME
;
}
#######################################
# Data model parameters functions #
#######################################
mysql_get_hostname
()
{
echo
`
$UCI_GET
mysql.credentials.hostname
`
}
mysql_set_hostname
()
{
local hostname
=
`
$UCI_GET
mysql.credentials.hostname
`
if
[
"
$hostname
"
!=
"
$1
"
]
;
then
$UCI_SET
mysql.credentials.hostname
=
"
$1
"
$UCI_COMMIT
chmod
a+r /etc/config/mysql
fi
}
mysql_get_database
()
{
echo
`
$UCI_GET
mysql.credentials.database
`
}
mysql_set_database
()
{
local
database
=
`
$UCI_GET
mysql.credentials.database
`
if
[
"
$database
"
!=
"
$1
"
]
;
then
$UCI_SET
mysql.credentials.database
=
"
$1
"
$UCI_COMMIT
chmod
a+r /etc/config/mysql
fi
}
mysql_get_username
()
{
echo
`
$UCI_GET
mysql.credentials.username
`
}
mysql_set_username
()
{
local
username
=
`
$UCI_GET
mysql.credentials.username
`
if
[
"
$username
"
!=
"
$1
"
]
;
then
$UCI_SET
mysql.credentials.username
=
"
$1
"
$UCI_COMMIT
chmod
a+r /etc/config/mysql
fi
}
mysql_set_password
()
{
local
password
=
`
$UCI_GET
mysql.credentials.password
`
if
[
"
$password
"
!=
"
$1
"
]
;
then
$UCI_SET
mysql.credentials.password
=
"
$1
"
$UCI_COMMIT
chmod
a+r /etc/config/mysql
fi
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment