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
b92a7d7d
Commit
b92a7d7d
authored
Mar 24, 2019
by
Vladimir Bashkirtsev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initial commit
parents
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
168 additions
and
0 deletions
+168
-0
Makefile
Makefile
+58
-0
php-7.2.7.tar.xz
php-7.2.7.tar.xz
+0
-0
php.groups
php.groups
+31
-0
web
web
+79
-0
No files found.
Makefile
0 → 100644
View file @
b92a7d7d
all
:
httpd-conf php-fpm-service mysql-config
tar
xf php-7.2.7.tar.xz
cd
php-7.2.7
&&
./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.2.7 CPPFLAGS+
=
' -DU_USING_ICU_NAMESPACE=1'
-
yes
"n"
|
$(MAKE)
-C
php-7.2.7
test
$(MAKE)
-C
php-7.2.7
install
cd
php-7.2.7
&&
install
-v
-m644
php.ini-production /etc/php.ini
cd
php-7.2.7
&&
install
-v
-m755
-d
/usr/share/doc/php-7.2.7
cd
php-7.2.7
&&
install
-v
-m644
CODING_STANDARDS EXTENSIONS INSTALL NEWS README
*
UPGRADING
*
php.gif /usr/share/doc/php-7.2.7
ln
-v
-sfn
/usr/lib/php/doc/Archive_Tar/docs/Archive_Tar.txt /usr/share/doc/php-7.2.7
ln
-v
-sfn
/usr/lib/php/doc/Structures_Graph/docs /usr/share/doc/php-7.2.7
mv
-v
/etc/php-fpm.conf.default /etc/php-fpm.conf
mv
-v
/etc/php-fpm.d/www.conf.default /etc/php-fpm.d/www.conf
mkdir
-p
/etc/php.d
sed
-i
's@php/includes"@&\ninclude_path = ".:/usr/lib/php"@'
/etc/php.ini
@
echo
"
$$
HTTPD_CONF"
>
/etc/httpd/conf/php.conf
@
echo
"
$$
PHP_FPM_SERVICE"
>
/lib/systemd/system/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.2.7
httpd-conf
:
define
HTTPD_CONF
LoadModule
proxy_module
/usr/lib/httpd/modules/mod_proxy.so
LoadModule
proxy_fcgi_module
/usr/lib/httpd/modules/mod_proxy_fcgi.so
ProxyPassMatch ^/(.*\.php)$$ fcgi
:
//127.0.0.1:9000/srv/www/$$1
endef
export
HTTPD_CONF
php-fpm-service
:
define
PHP_FPM_SERVICE
[Unit]
Description
=
The PHP FastCGI Process Manager
After
=
network.target
[Service]
Type
=
notify
PIDFile
=
/run/php-fpm.pid
PrivateTmp
=
true
ExecStart
=
/usr/sbin/php-fpm
--nodaemonize
--fpm-config
/etc/php-fpm.conf
--pid
/run/php-fpm.pid
ExecReload
=
/bin/kill
-USR2
$$
MAINPID
[Install]
WantedBy
=
multi-user.target
endef
export
PHP_FPM_SERVICE
mysql-config
:
define
MYSQL_CONFIG
config
mysql
'credentials'
option
hostname
''
option
database
''
option
username
''
option
password
''
endef
export
MYSQL_CONFIG
php-7.2.7.tar.xz
0 → 100644
View file @
b92a7d7d
File added
php.groups
0 → 100644
View file @
b92a7d7d
etc
/etc/.*
bin
/usr/bin/.*
/usr/sbin/.*
/usr/share/php/fpm/.*
/usr/share/easycwmp/.*
/lib/systemd/system/.*
headers
/usr/include/.*
man
/usr/share/man/.*
doc
/usr/share/doc/.*
/usr/lib/php/doc/.*
lib
/usr/lib/php/\..*
/usr/lib/php/System\.php
/usr/lib/php/XML/.*
/usr/lib/php/Console/.*
/usr/lib/php/build/.*
/usr/lib/php/extensions/.*
/usr/lib/php/PEAR.*
/usr/lib/php/Structures/.*
/usr/lib/php/pearcmd\.php
/usr/lib/php/data/.*
/usr/lib/php/Archive/.*
/usr/lib/php/peclcmd\.php
/usr/lib/php/OS/.*
tests
/usr/lib/php/test/.*
web
0 → 100755
View file @
b92a7d7d
#!/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