Switch to custom compiled php
This commit is contained in:
@ -19,36 +19,42 @@ const INDEX_MD5S=[ //MD5 sums of index.hosting.html files that should be considd
|
||||
'7ae7e9bac6be76f00e0d95347111f037', //default file
|
||||
'703fac6634bf637f942db8906092d0ab', //new default file
|
||||
'e109a5a44969c2a109aee0ea3565529e', //TOR HTML Site
|
||||
'31ff0d6a1d280d610a700f3c1ec6d857', //MyHacker test page
|
||||
];
|
||||
const REQUIRE_APPROVAL=false; //require admin approval of new sites? true/false
|
||||
const ENABLE_SHELL_ACCESS=true; //allows users to login via ssh, when disabled only (s)ftp is allowed - run setup.php to migrate existing accounts
|
||||
const ADMIN_PASSWORD='MY_PASSWORD'; //password for admin interface
|
||||
const SERVICE_INSTANCES=['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's']; //one character per instance - run multiple tor+php-fpm instances for load balancing, remove all but one instance if you expect less than 200 accounts. - run setup.php after change
|
||||
const DISABLED_PHP_VERSIONS=[]; //php versions still installed on the system but no longer offered for new accounts
|
||||
const PHP_VERSIONS=[4 => '7.3']; //currently active php versions
|
||||
const PHP_VERSIONS=[3 => '7.2', 4 => '7.3', 5 => '7.4']; //currently active php versions
|
||||
const DEFAULT_PHP_VERSION='7.3'; //default php version
|
||||
const PHP_CONFIG='memory_limit = 256M
|
||||
const PHP_CONFIG='zend_extension=opcache.so
|
||||
memory_limit = 256M
|
||||
error_reporting = E_ALL
|
||||
display_errors = Off
|
||||
log_errors = On
|
||||
expose_php = Off
|
||||
variables_order = "GPCS"
|
||||
request_order = "GP"
|
||||
post_max_size = 10G
|
||||
upload_max_filesize = 10G
|
||||
max_file_uploads = 100
|
||||
date.timezone = UTC
|
||||
pdo_odbc.connection_pooling=off
|
||||
pdo_odbc.connection_pooling = Off
|
||||
odbc.allow_persistent = Off
|
||||
ibase.allow_persistent = 0
|
||||
mysqli.allow_persistent = Off
|
||||
pgsql.allow_persistent = Off
|
||||
opcache.enable=1
|
||||
opcache.interned_strings_buffer=8
|
||||
opcache.max_accelerated_files=20000
|
||||
opcache.use_cwd=1
|
||||
opcache.validate_timestamps=1
|
||||
opcache.revalidate_freq=2
|
||||
opcache.revalidate_path=1
|
||||
opcache.save_comments=1
|
||||
opcache.optimization_level=0x7fffffff
|
||||
opcache.validate_permission=1
|
||||
opcache.validate_root=1
|
||||
opcache.enable = 1
|
||||
opcache.interned_strings_buffer = 8
|
||||
opcache.max_accelerated_files = 20000
|
||||
opcache.use_cwd = 1
|
||||
opcache.validate_timestamps = 1
|
||||
opcache.revalidate_freq = 2
|
||||
opcache.revalidate_path = 1
|
||||
opcache.save_comments = 1
|
||||
opcache.optimization_level = 0x7fffffff
|
||||
opcache.validate_permission = 1
|
||||
opcache.validate_root = 1
|
||||
';
|
||||
const NGINX_DEFAULT = 'server {
|
||||
listen unix:/var/run/nginx/suspended backlog=2048;
|
||||
|
@ -439,9 +439,9 @@ function ftp_recursive_delete($ftp, $file){
|
||||
}
|
||||
}
|
||||
ftp_chdir($ftp, '..');
|
||||
ftp_rmdir($ftp, $file);
|
||||
@ftp_rmdir($ftp, $file);
|
||||
}else{
|
||||
ftp_delete($ftp, $file);
|
||||
@ftp_delete($ftp, $file);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -107,7 +107,9 @@ BINARIES_GENERAL=(
|
||||
'/usr/bin/sftp'
|
||||
'/usr/bin/ssh'
|
||||
'/usr/bin/wget'
|
||||
'/usr/bin/php7.2'
|
||||
'/usr/bin/php7.3'
|
||||
'/usr/bin/php7.4'
|
||||
'/usr/bin/mysql'
|
||||
'/usr/bin/mysqldump'
|
||||
'/usr/bin/mysqlcheck'
|
||||
@ -177,8 +179,6 @@ DIRECTORIES_GENERAL=(
|
||||
'/lib/terminfo'
|
||||
'/usr/share/terminfo'
|
||||
'/usr/lib/php'
|
||||
'/etc/php/7.3/cli'
|
||||
'/etc/php/7.3/mods-available'
|
||||
'/etc/profile.d'
|
||||
)
|
||||
### test variables/parameters
|
||||
@ -237,4 +237,4 @@ done
|
||||
for BINARY in /usr/lib/php/*/*.so; do
|
||||
CHROOT_BINARY $BINARY
|
||||
done
|
||||
cp -l $CHROOT_DIRECTORY/usr/bin/php7.3 $CHROOT_DIRECTORY/usr/bin/php
|
||||
ln $CHROOT_DIRECTORY/usr/bin/php7.4 $CHROOT_DIRECTORY/usr/bin/php
|
||||
|
Reference in New Issue
Block a user