====== testrapport ====== {{:dokuwiki:todo.png?direct&60|}} * changes **consolideren** in 1 document zodat opzetten van nieuwe server wat vlotter verloopt * **nieuwe server** opzetten met PHP 8 zodat Frank voortaan ook met die versie kan testen. \\ Tenzij het relatief eenvoudig is om [[https://bobcares.com/blog/run-multiple-php-versions-apache-php-fpm/|gelijktijdig]] met PHP7.4 en PHP8.0 te draaien, natuurlijk. ===== 16/01/2023 ===== * ''apt install php7.4-sqlite3'' Web pagina ziet er nu okee, uit. Frank vond nog een foutje in een rapport, maar dat heeft allicht meer met de MySQL versie te maken die een bepaalde grouping syntax niet langer ondersteunt die gebruikt wordt in het SQL script. ===== 16/01/2023 ===== Enabled PDO_SQLITE extension in PHP.ini Todo Apache restart ===== 15/01/2023 ===== * /etc/apache2/apache2/conf: Options Indexes FollowSymLinks AllowOverride All Require all granted * Apache herstart * setfacl -Rm g:www-data:rwx /var/www setfacl -Rdm g:www-data:rwx /var/www zodat voortaan leden van www-data schrijfrechten hebben op ''/var/www/'' site ziet er vrij okee uit, maar vraagt om authenticatie. Je kan die wegklikken, maar toch wat vreemd.... ===== 12/01/2023 ===== 2 openstaande zaken: 1.**Clean URL's werken niet**, momenteel zijn ze uitgeschakeld in Drupal, dit lost de meeste url's op behalve hardcoded url's Voobeeld: /user -> /?q=user Oplossing: https://www.drupal.org/node/15365#dedicated - Rewrite module is enabled in Apache - /etc/apache2/apache2.conf aanpassen: Change AllowOverride None to AllowOverride All 2. **Schrijfproblemen door webserver in een aantal folders**. Compress CSS & javascript is al uitgeschakeld in drupal zodat gecomprimeerde css en js niet wordt geschreven. Apache/werbserver kan blijkbaar niet schrijven in bepaalde folders Errors: //CTools-CSS-cache Kan niet worden aangemaakt De CTools CSS-cachemap, ctools/css kon niet worden aangemaakt vanwege een verkeerd geconfigureerde bestandsmap. Controleer of de bestandsmap bestaat en dat de webserver schrijfrechten heeft.// //Map sites/default/files is niet schrijfbaar. Map backups is niet schrijfbaar. Map tmp is niet schrijfbaar. Zorg dat u de juiste map instelt op de pagina bestandssysteeminstellingen of wijzig de toegangsrechten van de map zodat deze schrijfbaar is.// //Forena Report Directory sites/default/files/reports The directory, which is set in the report repository configuration, must be writable by the web user in order to create custom reports.// //JS injector cache dir Kan niet worden aangemaakt The JS injector cache directory, js_injector could not be created due to a misconfigured files directory. Please ensure that the files directory is correctly configured and that the webserver has permission to create directories.// //The Views Data Export temporary directory, views_plugin_display could not be created due to a misconfigured directory. Please ensure that the temporary directory is correctly configured and that the webserver has permission to create directories.// ===== 11/01/2023 ===== * root@testrapport:/home/koen# apt install php7.4-xml Reading package lists... Done Building dependency tree... Done Reading state information... Done The following additional packages will be installed: libapache2-mod-php7.4 php7.4-cli php7.4-common php7.4-json php7.4-mysql php7.4-opcache php7.4-readline Suggested packages: php-pear The following NEW packages will be installed: php7.4-xml The following packages will be upgraded: libapache2-mod-php7.4 php7.4-cli php7.4-common php7.4-json php7.4-mysql php7.4-opcache php7.4-readline 7 upgraded, 1 newly installed, 0 to remove and 14 not upgraded. gaf toch al beeld te zien op site: {{ :changelogs:testrapport_1.png?400 |}} * root@testrapport:/home/koen# apt install php7.4-gd Reading package lists... Done Building dependency tree... Done Reading state information... Done The following additional packages will be installed: fontconfig-config fonts-dejavu-core libabsl20210324 libaom3 libavif13 libdav1d5 libde265-0 libdeflate0 libfontconfig1 libgav1-0 libgd3 libheif1 libjbig0 libjpeg-turbo8 libjpeg8 libtiff5 libwebp7 libx265-199 libxpm4 libyuv0 Suggested packages: libgd-tools The following NEW packages will be installed: fontconfig-config fonts-dejavu-core libabsl20210324 libaom3 libavif13 libdav1d5 libde265-0 libdeflate0 libfontconfig1 libgav1-0 libgd3 libheif1 libjbig0 libjpeg-turbo8 libjpeg8 libtiff5 libwebp7 libx265-199 libxpm4 libyuv0 php7.4-gd 0 upgraded, 21 newly installed, 0 to remove and 14 not upgraded. * reboot, gezien kernel upgrade * root@testrapport:/home/koen# apt install php7.4-mbstring Reading package lists... Done Building dependency tree... Done Reading state information... Done The following additional packages will be installed: libonig5 The following NEW packages will be installed: libonig5 php7.4-mbstring 0 upgraded, 2 newly installed, 0 to remove and 14 not upgraded. * /var/log/apache2/errorlog toont nog steeds onderstaande fout: ''PHP Warning: PHP Startup: Unable to load dynamic library 'xmlrpc' (tried: /usr/lib/php/20190902/xmlrpc (/usr/lib/php/20190902/xmlrpc: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/xmlrpc.so (/usr/lib/php/20190902/xmlrpc.so: cannot open shared object file: No such file or directory)) in Unknown on line 0'' * root@testrapport:/var/log/apache2# apt install php7.4-xmlrpc Reading package lists... Done Building dependency tree... Done Reading state information... Done The following additional packages will be installed: libxmlrpc-epi0 The following NEW packages will be installed: libxmlrpc-epi0 php7.4-xmlrpc 0 upgraded, 2 newly installed, 0 to remove and 14 not upgraded. Need to get 39.0 kB of archives. After this operation, 158 kB of additional disk space will be used. ===== 03/01/2023 ===== * ''apt install php7.4-mysql'' * /var/www * +ACL:website:r-x * webmin BasisAdmin * + view system logfiles * /etc/php/7.4/apache/php.ini * uncomment: ''extension=pdo_mysql'' * restart apache2 * bovenstaande terug ongedaan gemaakt. ===== 01/01/2023 ===== * gebruiker aangemaakt waarmee ik voortaan onder eigen naam aanmeld op Franks cloud console (maakt audit eenduidiger). * compartment **testing** aangemaakt ===== 29/12/2022 ===== * installatie **acl** package * +groep: website * /var/www: ACL voor groep website * +gebruiker: rescue * lid van **sudo** groep * wachtwoord toegekend * gebruiker waarmee je kan aanmelden via serial console sessie ===== 25/12/2022 ===== * volgende poorten geopend op Oracle Cloud firewall: * tcp/80 * tcp/443 * volgende poorten geopend op Linux: * tcp/80 * tcp/443 * SSL certificaat aagemaakt voor [[https://testrapport.be|testrapport.be]], cfr [[installatie:ssl_certificaat_aanmaken|SSL certificaat aanmaken]] ===== 25/12/2022 ===== * installatie [[apps:php_74|PHP 7.4]] * ziet er okee uit: {{ :changelogs:php_versie_testrapport.be.png?400 |}} * beheer van php is ook beschikbaar vanuit **webmin** ===== 25/12/2022 ===== * [[mysql:installatie|installatie MySQL]] * [[linux:tijd_instellen_op_ubuntu|tijdzone ingesteld]] * local port forward toegevoegd naar tcp/3306 * testen toegang via MySQL Workbench: ziet er okee uit {{ :changelogs:sqlworkbench.png?400 |}} ===== 23/12/2022 ===== * installatie apache * webmin * + terminal * + Apache module * local port forward toegevoegd naar tcp/80 ===== 20/12/2022 ===== * webmin groep aangemaakt: BasicAdmin * gebruikers koen en frank toegevoegd * local port forward toegevoegd naar tcp/10000 ===== 19/12/2022 ===== * installatie [[webmin:installatie_op_ubuntu|webmin]] ===== 15/12/2022===== * installatie: [[linux:fail2ban|fail2ban]] ===== 14/12/2022 ===== * initiele [[installatie:testrapport|installatie]] ===== Meer informatie ===== * [[installatie:testrapport|installatie]] * [[configuratie:testrapport|configuratie]] * [[incident:testrapport|incident]] {{tag> changelogs testrapport}}