Difference between revisions of "Install wiki on win server"
Line 7: | Line 7: | ||
'''Setup MySQL:''' | '''Setup MySQL:''' | ||
+ | |||
+ | # install with legacy password | ||
+ | # remove .NET connector | ||
''create:'' | ''create:'' |
Revision as of 10:51, 27 February 2019
install:
- python need 2.7.xx 32bit version (python-2.7.12.msi)
- php from archive (latest php (64bit threads safe) (php-7.3.2-Win32-VC15-x64.zip))
- latest mysql (mysql-installer-community-8.0.11.0.msi)
- mediawiki from archive
Setup MySQL:
- install with legacy password
- remove .NET connector
create: mysql -uroot -ppassword CREATE DATABASE fieldprowiki;
backup: mysqldump.exe -uroot -ppassword fieldprowiki > e:\fieldprowiki.sql
restore: mysql -uroot -ppassword fieldprowiki < e:\fieldprowiki.sql
if 'caching_sha2_password' error - then:
- C:\ProgramData\MySQL\MySQL Server 8.0\my.ini - update 'caching_sha2_password' to 'mysql_native_password'
and then update mysql:
- login in mysql: mysql -uroot -ppassword
- ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';
Setup IIS:
- add application pool (with 32bit)
- add default document: index.php
- FastCGI Settings: add application: C:\php\php=cgi.exe