Что нам потребуется:
MySQL 5.5.10 x32
MySQL 5.5.10 x64
Открываем файл C:/Windwos/System32/drivers/etc/hosts
Ищем строку
или
В 1-ом случае стираем #
Network Domain - ваш домен или IP
Server Name - название вашего сервера
Administartor's Email Address - ваш email
Делаем всё точно также, как и на изображении
Открываем Пуск / Все программы / Apache HTTP Server 2.2 / Configure Apache Server / Edit the Apache httpd.conf Configuration File
Примерно c 174 строчки вы увидете такое:
#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "D:/web/core/apache/htdocs"
#
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
#
# First, we configure the "default" to be a very restrictive set of
# features.
#
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>
#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#
#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "D:/web/core/apache/htdocs">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride None
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>
#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
<IfModule dir_module>
DirectoryIndex index.html
</IfModule>
DocumentRoot "D:/web/core/apache/htdocs"
"D:/web/core/apache/htdocs" - это путь к www папке, где будет расположен ваш сайт. Пропишите, допустим: C:/www
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride None
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>
меняем на
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
---------------------------------------
<IfModule dir_module>
DirectoryIndex index.html
</IfModule>
на
<IfModule dir_module>
DirectoryIndex index.html index.php
</IfModule>
Указываем "Путь к Apache/conf"
Открываем Пуск / Все программы / PHP 5 / php.ini
Примерно на 531 строчке:
display_errors = Off
менем на
display_errors = On
На 226:
short_open_tag = Off
меняем на
short_open_tag = On
Нажимаем Browse...
Указываем путь, где бы вы хотели хранить Базу Данных MySQL, например: C:/mysql_db
Developer Machine - Дословно переводится как "Машина разработчика". Рекомендовано для тех, кто собирается ставить у себя сервер wow и объём его ОЗУ меньше 2гб или просто, web-программистам
Server Machine - Дословно переводится как "Серверная машина". Рекомендовано для тех, кто всерьёз задумался о пинге игрового сервера wow, будь то тринити или мангос. Рекомендуется как минимум 3гб ОЗУ, если работает вместе с сервером wow
Dedicated MySQL Server Machine - Дословно переводится как "Сервер MySQL". Ставить рекомендую только на ту машину, у которой одна задача: быть сервером MySQL. Будет работать хорошо на всех объёмах ОЗУ, т.к. ест 90% свободной ОЗУ
В общем это обозначает "Максимально кол-во коннектов с разным Username"
Ставим галочку возле Install As Windows Service и Lauch the MySQL Server automatically
Т.к. я обновляю конфиги MySQL, у вас будут тут 2 поля: Root Password и Confirm
Введите туда пароль к mysql, для юзера root.
Внимание! Снимаем галочу (если она стоит) возле Enable root access from remote machines
Очень просто:
1 вариант:
Открывайте Пуск / Панель управления / Администрирование / Службы
Чтоб включить apache/ mysql, ищем его в списке, и жмём "Остановить", чтоб включить, соответственно жмём "Запустить"
2 вариант:
Создаём "батники" для остановки / запуска apache и mysql
Для запуска apache
@net start Apache2.2
@pause
Для остановки apache
@net stop Apache2.2
@pause
Для запуска mysql
@net start MySQL
@pause
Для остановки mysql
@net stop MySQL
@pause