Menu

Tree [0cdd25] master /
 History

HTTPS access


File Date Author Commit
 Apache-2-4-38.sh 2019-04-19 Karolis Gudas Karolis Gudas [0cdd25] Http2 1.38.0 & Apr-1.7.0 update | Apache 2.4.38
 Apache-2-4-39.sh 2019-04-19 Karolis Gudas Karolis Gudas [d2d111] Http2 1.38.0 update | Apache/httpd 2.4.39 - Op...
 Kernel-Update 2019-01-30 Karolis Gudas Karolis Gudas [7ce434] Update Kernel-Update
 README.md 2019-04-09 Karolis Gudas Karolis Gudas [4fb337] Update README.md
 Real-Time-Kernel-Build-lInstall 2019-01-30 Karolis Gudas Karolis Gudas [cd5659] Rename Real-Time-Kerne-Build-lInstall to Real-T...
 enable_root_login_over_ssh.sh 2019-04-13 Karolis Gudas Karolis Gudas [ddc7bc] Enable Root Login via SSH Google Cloud VM Instance
 install.txt 2018-11-09 Karolis Gudas Karolis Gudas [e31f5c] Updated mysql versiont to last: 8.0
 setup.sh 2019-04-18 Karolis Gudas Karolis Gudas [53c9e9] Update setup.sh

Read Me

PHP/7.3+ Mysql 8.0.14 Apache 2.4.38-39 HTTP/2 PhpMyAdmin/4.8 CentOS 7 Complete Install

Server:
CPU: Intel(R) Xeon(R) CPU D-1541 @ 2.10GHz

Cores: 16

Cache: 12288KB

RAM: 2x 16384MB

Disks: 2 x 480GB SSd RAID-0

Motherboard: X10SDV-TLN4F

Kernel version
3.10.0-957.1.3.el7.x86_64

After complete installiation please follow instructions below:

Replace "<directory usr="" share="" phpmyadmin="">" on phpMyAdmin config:</directory>

vim /etc/httpd/conf.d/phpMyAdmin.conf

<Directory /usr/share/phpMyAdmin/>
AddDefaultCharset UTF-8
<IfModule mod_authz_core.c>

#Apache 2.4
<RequireAny>
Require all granted
</RequireAny>
</IfModule>
<IfModule !mod_authz_core.c>
#Apache 2.2
Order Deny,Allow
Deny from All
Allow from 127.0.0.1
Allow from ::1
</IfModule>
</Directory>

Replace "<ifmodule mod_php7.c="">" on Apache config file:</ifmodule>

vim /etc/http/php.d/php.conf

<IfModule  mod_php7.c>
# Cause the PHP interpreter to handle files with a .php extension.
<FilesMatch \.(php|phar)$>
# SetHandler application/x-httpd-php
SetHandler "proxy:fcgi://127.0.0.1:9000"
</FilesMatch>
php_value session.save_handler "files" 
php_value session.save_path    "/var/lib/php/session" 
php_value soap.wsdl_cache_dir  "/var/lib/php/wsdlcache" 
php_value opcache.file_cache   "/var/lib/php/opcache" 
</IfModule>

Replace "[mysqld]" settings on my config file:

vim /etc/my.cfg

[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
innodb_file_per_table = true

innodb_flush_method = O_DIRECT
innodb_log_buffer_size = 64M
innodb_flush_log_at_trx_commit = 1
innodb_buffer_pool_size = 10240M
innodb_buffer_pool_instances=128
innodb_log_file_size = 1024M
innodb_log_files_in_group = 2

innodb_read_io_threads = 128
innodb_write_io_threads = 128
innodb_io_capacity = 20000
innodb_io_capacity_max = 40000


# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0

# Recommended in standard MySQL setup
sql_mode=STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION

[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid

Add Zend OPcache settings on php.ini file:

vim /etc/php.ini

zend_extension=opcache.so
opcache.memory_consumption=64
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=7963
opcache.validate_timestamps=0
opcache.revalidate_freq=0
opcache.fast_shutdown=1
opcache.enable_cli=0
opcache.enable=1