From 44af970c00a7ce6929b8578f04088b3158420ccb Mon Sep 17 00:00:00 2001 From: Darren 'Tadgy' Austin Date: Wed, 14 Feb 2024 20:19:58 +0000 Subject: [PATCH] Updates for racktables install. --- etc/apache/httpd.conf | 8 +++-- etc/apache/sites.d/_default_.conf | 2 ++ etc/my.cnf.d/server.cnf | 1 + etc/php8.3/php.ini | 51 +++++++++++++++++-------------- 4 files changed, 36 insertions(+), 26 deletions(-) diff --git a/etc/apache/httpd.conf b/etc/apache/httpd.conf index 54dd971..44b76df 100644 --- a/etc/apache/httpd.conf +++ b/etc/apache/httpd.conf @@ -86,8 +86,10 @@ ScriptSock cgid.sock LogFormat "%h %l %u %t \"%r\" %>s %b" Common LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" Combined LogFormat "%v %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" VHostCombined +CustomLog /tmp/access.log Combined env=!no_log #CustomLog /var/log/httpd/access.log Combined env=!no_log -LogLevel warn allowmethods:crit authz_core:crit include:crit +LogLevel info +# allowmethods:crit authz_core:crit include:crit # ssl:warn ErrorLog syslog:local7 @@ -310,7 +312,7 @@ DirectoryIndex disabled Require all granted - AllowMethods GET POST OPTIONS + AllowMethods GET HEAD POST OPTIONS DirectoryIndex index.html @@ -341,7 +343,7 @@ DirectoryIndex disabled Require all granted - AllowMethods GET POST OPTIONS + AllowMethods GET HEAD POST OPTIONS DirectoryIndex disabled diff --git a/etc/apache/sites.d/_default_.conf b/etc/apache/sites.d/_default_.conf index 2deaf0e..b74c490 100644 --- a/etc/apache/sites.d/_default_.conf +++ b/etc/apache/sites.d/_default_.conf @@ -22,6 +22,8 @@ #ProxyPass /terrastate http://127.0.0.1:9200 #ProxyPassReverse /terrastate http://127.0.0.1:9200 + Alias /racktables /srv/www/html/racktables/wwwroot + UserDir /data/home/*/www/html UserDir Disabled root diff --git a/etc/my.cnf.d/server.cnf b/etc/my.cnf.d/server.cnf index 54a643f..10bc797 100644 --- a/etc/my.cnf.d/server.cnf +++ b/etc/my.cnf.d/server.cnf @@ -7,3 +7,4 @@ # This is read by the standalone daemon and embedded servers [server] datadir=/var/lib/mysql +character-set-server=utf8 diff --git a/etc/php8.3/php.ini b/etc/php8.3/php.ini index 4c1e3cd..0802081 100644 --- a/etc/php8.3/php.ini +++ b/etc/php8.3/php.ini @@ -515,7 +515,7 @@ error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT ; Development Value: On ; Production Value: Off ; https://php.net/display-errors -display_errors = Off +display_errors = On ; The display of errors which occur during PHP's startup sequence are handled ; separately from display_errors. We strongly recommend you set this to 'off' @@ -612,7 +612,7 @@ syslog.ident = php ; The syslog facility is used to specify what type of program is logging ; the message. Only used when error_log is set to syslog. -;syslog.facility = local6 +syslog.facility = local6 ; Set this to disable filtering control characters (the default). ; Some loggers only accept NVT-ASCII, others accept anything that's not @@ -928,28 +928,30 @@ default_socket_timeout = 60 ; Be sure to appropriately set the extension_dir directive. ; extension=bz2 - +extension=bcmath +extension=calendar ; The ldap extension must be before curl if OpenSSL 1.0.2 and OpenLDAP is used ; otherwise it results in segfault when unloading after using SASL. ; See https://github.com/php/php-src/issues/8620 for more info. -;extension=ldap - -;extension=curl +extension=ldap +extension=curl +extension=enchant ;extension=ffi -;extension=ftp +extension=ftp ;extension=fileinfo -;extension=gd -;extension=gettext -;extension=gmp -;extension=intl +extension=gd +extension=gettext +extension=gmp +extension=iconv +extension=intl ;extension=imap ;extension=mbstring -;extension=exif ; Must be after mbstring as it depends on it +extension=exif ; Must be after mbstring as it depends on it extension=mysqli ;extension=oci8_12c ; Use with Oracle Database 12c Instant Client ;extension=oci8_19 ; Use with Oracle Database 19 Instant Client ;extension=odbc -;extension=openssl +extension=openssl ;extension=pdo_firebird extension=pdo_mysql ;extension=pdo_oci @@ -957,18 +959,21 @@ extension=pdo_mysql ;extension=pdo_pgsql extension=pdo_sqlite ;extension=pgsql -;extension=shmop - +extension=phar +extension=posix +extension=shmop ; The MIBS data available in the PHP distribution must be installed. ; See https://www.php.net/manual/en/snmp.installation.php -;extension=snmp - -;extension=soap -;extension=sockets -;extension=sodium +extension=snmp +extension=soap +extension=sockets +extension=sodium extension=sqlite3 -;extension=tidy -;extension=xsl +extension=sysvmsg +extension=sysvsem +extension=sysvshm +extension=tidy +extension=xsl extension=zip ;zend_extension=opcache @@ -1341,7 +1346,7 @@ pgsql.log_notice = 0 [bcmath] ; Number of decimal digits for all bcmath functions. ; https://php.net/bcmath.scale -bcmath.scale = 0 +bcmath.scale = 4 [browscap] ; https://php.net/browscap