tilausj:settings
This is an old revision of the document!
Palvelinvaatimukset
- 64bit Linux-käyttöjärjestelmä (testattu Debianilla)
- Järjestelmän vaatimat paketit
- apache2, mod_rewrite, libapache2-mod-php (versio 7.2), php-ldap, php-mcrypt
- libapache2-mod-auth-kerb (single-sign-on)
- unixodbc, curl, apt-transport-https (sql-ajurit)
- curl, cron (ajastetut tehtävät)
- cifs-utils (efecte/csv-integrointi)
SQL-ajurit
curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - curl https://packages.microsoft.com/config/debian/9/prod.list > /etc/apt/sources.list.d/mssql-release.list apt-get update ACCEPT_EULA=Y apt-get install msodbcsql17
- Microsoft sqlsrv-driver (https://github.com/Microsoft/msphpsql/releases)
- php_sqlsrv_72_nts.so hakemistoon: /usr/lib/php/20170718/
- /etc/php/7.2/mods-available/sqlsrv.ini
; priority=20 extension=php_sqlsrv_72_nts.so
- phpenmod sqlsrv (tarvittaessa)
Apache
- Apache conffiin lisättävä
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_URI} ^system.* RewriteRule ^(.*)$ /index.php?/$1 [L] RewriteCond %{REQUEST_URI} ^application.* RewriteRule ^(.*)$ /index.php?/$1 [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?/$1 [L] </IfModule>
Single-Sign-on
- Ohjeita esim. täällä. Apache-conffiin:
<LocationMatch ".*\/sso"> Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec AuthType Kerberos AuthName "DOMAIN Login" KrbMethodNegotiate On KrbMethodK5Passwd On KrbAuthRealms DOMAIN.COM Krb5KeyTab /etc/apache2/tilausj-keytab require valid-user </LocationMatch>
PHP
- /etc/php/7.2/apache2/php.ini-tiedostoon tarvittaessa:
- short_open_tag = On
- upload_max_filesize = 20M
- post_max_size = 80M
Muut
- sähköpostin lähetystä varten oletussähköpostiohjelma esim. exim4 tulee olla configuroitu siten, että postia voi lähettää myös palvelimen ulkopuolelle
Seuraavana step: Asennusohjeet
tilausj/settings.1551523966.txt.gz · Last modified: 2019-03-02 10:52 by krister