RSB-Doc:Установка: различия между версиями
Перейти к навигации
Перейти к поиску
Knurov (обсуждение | вклад) Нет описания правки |
Knurov (обсуждение | вклад) Нет описания правки |
||
| Строка 2: | Строка 2: | ||
== Apache 2.2.4 == | == Apache 2.2.4 == | ||
Для подключения PHP к Apache необходимо в httpd.conf строки | Для подключения PHP к Apache необходимо в httpd.conf строки | ||
# For PHP 5 do something like this: | # For PHP 5 do something like this: | ||
LoadModule php5_module "d:/wiki/php/php5apache2_2.dll" | LoadModule php5_module "d:/wiki/php/php5apache2_2.dll" | ||
AddType application/x-httpd-php .php .html .htm | AddType application/x-httpd-php .php .html .htm | ||
# configure the path to php.ini | # configure the path to php.ini | ||
PHPIniDir "D:/wiki/php" | PHPIniDir "D:/wiki/php" | ||
# DirectoryIndex: sets the file that Apache will serve if a directory | # DirectoryIndex: sets the file that Apache will serve if a directory | ||
# is requested. | # is requested. | ||
| Строка 17: | Строка 13: | ||
DirectoryIndex index.html index.htm index.php | DirectoryIndex index.html index.htm index.php | ||
</IfModule>” | </IfModule>” | ||
== PHP 5.2.1 == | == PHP 5.2.1 == | ||
Для подключения поддержки MySQL | Для подключения поддержки MySQL | ||
*Скопировать из MySQL\bin\ libmySQL.dll в \system32\ | *Скопировать из MySQL\bin\libmySQL.dll в \system32\ | ||
*Отредактировать PHP\php.ini | *Отредактировать PHP\php.ini | ||
*Раскомментировать extension=php_mysql.dll | **Раскомментировать | ||
*Отредактировать строчку extension_dir = "D:/Wiki/PHP/ext" | extension=php_mysql.dll | ||
**Отредактировать строчку | |||
extension_dir = "D:/Wiki/PHP/ext" | |||
== MySQL 5.0.27 == | == MySQL 5.0.27 == | ||
*распаковать | *распаковать | ||
*Из корневого каталога MySQL скопировать my-small.ini на с:\ my.cnf | *Из корневого каталога MySQL скопировать my-small.ini на с:\my.cnf | ||
*В с:\ my.cnf должны быть строки | *В с:\my.cnf должны быть строки | ||
[mysqld] | [mysqld] | ||
# set basedir to your installation path | # set basedir to your installation path | ||
basedir=D:/Wiki/mysql | basedir=D:/Wiki/mysql | ||
# set datadir to the location of your data directory | # set datadir to the location of your data directory | ||
datadir=D:/Wiki/mysql/data | datadir=D:/Wiki/mysql/data | ||
*Первый запуск bin/mysqld.exe --consile | *Первый запуск | ||
*Зарегистрировать сервис bin/mysqld.exe –install | bin/mysqld.exe --consile | ||
*Добавить учетную запись | *Зарегистрировать сервис | ||
bin/mysqld.exe -–install | |||
*Добавить учетную запись под которой будет работать движок MediaWiki | |||
== MediaWiki 1.9.3 == | == MediaWiki 1.9.3 == | ||
*Распаковать архив в настроенный корневой каталог документов Apache. | *Распаковать архив в настроенный корневой каталог документов Apache. | ||
*Зайти на сервер через web и произвести настройку. | *Зайти на сервер через web и произвести настройку. | ||
Версия от 12:04, 12 мая 2007
Установка MediaWiki
Apache 2.2.4
Для подключения PHP к Apache необходимо в httpd.conf строки
# For PHP 5 do something like this: LoadModule php5_module "d:/wiki/php/php5apache2_2.dll" AddType application/x-httpd-php .php .html .htm # configure the path to php.ini PHPIniDir "D:/wiki/php" # DirectoryIndex: sets the file that Apache will serve if a directory # is requested. # <IfModule dir_module> DirectoryIndex index.html index.htm index.php </IfModule>”
PHP 5.2.1
Для подключения поддержки MySQL
- Скопировать из MySQL\bin\libmySQL.dll в \system32\
- Отредактировать PHP\php.ini
- Раскомментировать
extension=php_mysql.dll
- Отредактировать строчку
extension_dir = "D:/Wiki/PHP/ext"
MySQL 5.0.27
- распаковать
- Из корневого каталога MySQL скопировать my-small.ini на с:\my.cnf
- В с:\my.cnf должны быть строки
[mysqld] # set basedir to your installation path basedir=D:/Wiki/mysql # set datadir to the location of your data directory datadir=D:/Wiki/mysql/data
- Первый запуск
bin/mysqld.exe --consile
- Зарегистрировать сервис
bin/mysqld.exe -–install
- Добавить учетную запись под которой будет работать движок MediaWiki
MediaWiki 1.9.3
- Распаковать архив в настроенный корневой каталог документов Apache.
- Зайти на сервер через web и произвести настройку.