- Установка Apache, PHP, MySQL на Windows Server
- Установка
- Конфигурирование Apache
- Проверка
- Настройка phpMyAdmin
- Установка MySQL на Windows Server 2012 / Windows 8
- Как установить веб-сервер Apache с PHP, MySQL и phpMyAdmin на Windows
- Оглавление
- Веб-сервер на Windows
- Как установить Apache на Windows
- Как установить PHP на Windows
- Настройка PHP 8
- Как установить MySQL в Windows
- Как установить phpMyAdmin в Windows
- Заключение
- Apache php mysql windows server 2012
- Related Posts
- 58 Responses to “How to Install Apache 2.4 MySQL and PHP on Windows Server 2012 R2”
Установка Apache, PHP, MySQL на Windows Server
Эта статья поможет установить Apache, PHP, MySQL на Windows Server. Самый простой способ, облегчающий установку, настройку и управление всеми компонентами — WampServer. WampServer это платформа для веб-разработки под Windows для динамических веб-приложений с помощью сервера Apache2, интерпретатора скриптов PHP и базы данных MySQL. В него также входит веб-приложение PHPMyAdmin для наиболее простой обработки баз данных.
Установка
Перед началом установки WampServer необходимо настроить Windows Firewall, указав специфические порты: 80 и 443. Подробнее в статье.
Также необходимо настроить браузер Internet Explorer, для того чтобы загрузить файлы из внешних источников.
Перед работой с WampServer для начала установим необходимые библиотеки. Для этого требуются компоненты The Visual C++ Redistributable Packages (2008-2019), которые можно загрузить по следующей ссылке и установить все компоненты из каждого исполняемого файла.
После запуска исполняемого файла начнется установка Wampserver
Принимаем лицензионное соглашение, указываем папку для установки (указываемый путь не должен содержать пробелов!).
Нажимаем Next и Install. Дожидаемся окончания установки.
На предложение изменить стандартный браузер и текстовый редактор нажимаем “No”.
Установка завершена, нажимаем Finish
На рабочем столе появится иконка с Wampserver64, запускаем сервер двойным щелчком.
В нижней панели справа появится зеленый значок запущенного сервера.
В браузере перейдите по ссылке http://localhost/ или вашему ip адресу для проверки.
Конфигурирование Apache
Откройте файл C:wamp64binapacheapache2.4.39confhttpd.conf с помощью текстового редактора. С помощью поиска найдите первое вхождение строки “Require local”, и замените параметр “local” на “all granted”.
Сохраните изменения и закройте файл.
Откройте файл конфигурации виртуальных хостов C:wamp64binapacheapache2.4.39confextrahttpd-vhosts.conf и замените содержимое тега Directory на следующие параметры:
Options +Indexes +Includes +FollowSymLinks +MultiViews
Сохраните изменения и закройте файл.
Перезапустите WampServer нажав правой кнопкой мыши в нижней панеле на значок сервера и выберите пункт “Refresh”.
Проверка
C другого компьютера в браузере попытайтесь перейти по адресу:
где ip-address — адрес вашего Windows Server. Его можно узнать в панели управления сервером Serverspace.
Настройка phpMyAdmin
На своем локальном хосте на главной странице WampServer в меню “Tools” выберете “phpmyadmin”, или перейдите по ссылке http://localhost/phpmyadmin/ в браузере.
В открывшемся окне введите значения логина и пароля по умолчанию:
Пароль: оставьте поле пустым
После авторизации вы можете изменить пароль для пользователя root, а также добавить новых пользователей. Для этого перейдите во вкладку “Учетные записи пользователей”.
Для добавления пользователя перейдите по ссылке “Добавить учетную запись пользователя”. Чтобы изменить пароль для уже существующих пользователей выберите действие “Редактировать привилегии”, далее “Изменить пароль”.
Сохраните изменения и перезапустите WampServer нажав правой кнопкой мыши в нижней панеле на значок сервера и выберите пункт “Refresh”.
Установка MySQL на Windows Server 2012 / Windows 8
В предыдущей статье мы рассказывали, как на базе Windows 8/2012 развернуть собственный веб-сервер IIS с поддержкой PHP. Сегодня же мы покажем, как установить на Windows 2012 / Windows 8 систему управлениями баз данных MySQL. В дальнейшем базы данных, запущенные на нашем сервере MySQL можно использовать для хранения данных, используемых в php скриптах веб сервера. В частности большинство популярных CMS сайтов и интернет-магазинов используют для хранения своих данных базы именно на MySQL.
Как и в прошлой статье, для установки MySQL нам потребуется универсальный установщик Microsoft Web Platform Installer (Web PI). Использование Web PI существенно облегчает развертывание и первоначальную настройку различных компонентов веб-платформ.
Последняя доступная на данный момент версия Web PI 5.0 – скачать ее можно со страницы http://www.microsoft.com/web/downloads/platform.aspx
Далее будет предложено указать пароль администратора MySQL сервера (учетная запись root) и принять лицензионное соглашение.
После это установщик скачает и установит соответствующую версию MySQL для Windows.
Установщик WebPI автоматически регистрирует и запускает сервис MySQL в качестве системной службы Windows. Запуск службы осуществляется через отдельный демон mysqld. В качестве конфигурационного файла службы MySQL используется my.ini из каталога C:\Program Files\MySQL\MySQL Server 5.1\.
Информацию о версии MySQL сервера, кодировке, аптайме, используемом TCP порте и т.д. можно получить с помощью команды
Список баз данных на сервере MySQL можно получить командой
mysql> show databases;
По умолчанию на сервере создаются две служебные БД: information_schema и mysql.
Создадим нового пользователя MySQL:
mysql> CREATE USER ‘winitpro’@’localhost’ IDENTIFIED BY ‘Str0ngPwd’;
Создадим новую базу данных и предоставим ранее созданному пользователю на нее права:
mysql> CREATE DATABASE tstdb;
mysql> GRANT ALL ON tstdb.* TO ‘winitpro’@’localhost’ IDENTIFIED BY ‘Str0ngPwd’;
Чтобы разрешить подключаться к MySQL базе данных с другого компьютера, выполним команду:
mysql> GRANT ALL ON testdatabase.* TO ‘winitpro’@’192.168.100.23’ IDENTIFIED BY ‘password’;
где 192.168.100.23 – IP адрес клиента, которое можно удаленно подключатся к базе на сервере MySQL.
Закрываем командную оболочку MySQL командой:
Совет. Для более удобного управления базами MySQL из графического интерфейса можно установить MySQL Workbench (http://dev.mysql.com/downloads/workbench/).
Чтобы удалить из системы службу MySQL, воспользуемся командой (команда не удаляет саму СУБД):
Как установить веб-сервер Apache с PHP, MySQL и phpMyAdmin на Windows
Оглавление
Веб-сервер на Windows
Веб-сервер — это программа, которая предназначена для обработки запросов к сайтам и отправки пользователям страниц веб-сайтов. Самый популярный пример веб-сервера это Apache.
PHP — это язык программирования. Также называется среда для выполнения скриптов, написанных на PHP. В операционной системе, в том числе и Windows, PHP может быть установлен самостоятельно, без веб-сервера. В этом случае программы (скрипты) на PHP можно запускать из командной строки. Но веб-приложения очень часто используют PHP, данный интерпретатор стал, фактически, стандартом веб-серверов и поэтому они почти всегда устанавливаются вместе.
MySQL — это система управления базами данных (СУБД). Это также самостоятельная программа, она используется для хранения данных, поиска по базам данных, для изменения и удаления данных. Веб-приложения нуждаются в постоянном хранилище, поэтому для веб-сервера дополнительно устанавливается и СУБД. Кстати, вполне возможно, что вы слышали про MariaDB — это тоже СУБД. Первой появилась MySQL, а затем от неё ответвилась MariaDB. Для веб-приложений обе эти СУБД являются взаимозаменяемыми, то есть никакой разницы нет. В этой инструкции я буду показывать установку на примере MySQL, тем не менее если вы хотите попробовать новую MariaDB, то смотрите статью «Инструкция по установке веб-сервера Apache c PHP, MariaDB и phpMyAdmin в Windows».
Что касается phpMyAdmin, то это просто скрипт на PHP, который предназначен для работы с базами данных — наглядно выводит их содержимое, позволяет выполнять в графическом интерфейсе такие задачи как создавать базы данных, создавать таблицы, добавлять, изменять и удалять информацию и т. д. По этой причине phpMyAdmin довольно популярен, хотя и не является обязательной частью веб-сервера.
Особенность Apache и других компонентов веб-сервера в том, что их корни уходят в Linux. И эти программы применяют в своей работе основные концепции этой операционной системы. Например, программы очень гибки в настройке — можно выполнить установку в любую папку, сайты также можно разместить в любой папке, в том числе на другом диске, не на том, где установлен сам веб-сервер. Даже файлы журналов можно вынести на третий диск и так далее. У веб-сервера много встроенных модулей — можно включить или отключить их в любом сочетании, можно подключить внешние модули. Можно создать много сайтов на одном веб-сервере и для каждого из них установить персональные настройки. Но эта гибкая настройка выполняется через текстовые файлы — именно такой подход (без графического интерфейса) позволяет описать любые конфигурации
Не нужно этого боятся — я расскажу, какие файлы нужно редактировать и что именно в них писать.
Мы не будем делать какие-то комплексные настройки — наша цель, просто установить веб-сервер на Windows. Тем не менее было бы странно совсем не использовать такую мощь в настройке. Мы разделим сервер на две директории: в первой будут исполнимые файлы, а во второй — данные (файлы сайтов и баз данных). В будущем, когда возникнет необходимость делать резервные копии информации или обновлять веб-сервер, вы поймёте, насколько удобен этот подход!
Мы установим сервер в отдельную директорию. Для этого в корне диска C:\ создайте каталог Server. В этом каталоге создайте 2 подкаталога: bin (для исполнимых файлов) и data (для сайтов и баз данных).
Перейдите в каталог data и там создайте подпапки DB (для баз данных) и htdocs (для сайтов).
Перейдите в каталог C:\Server\data\DB\ и создайте там пустую папку data.
Подготовительные действия закончены, переходим к установке компонентов веб-сервера.
Как установить Apache на Windows
Распакуйте папку Apache24 из этого архива в C:\Server\bin\.
Перейдите в каталог C:\Server\bin\Apache24\conf\ и откройте файл httpd.conf любым текстовым редактором.
В нём нам нужно заменить ряд строк.
Сохраняем и закрываем файл. Всё, настройка Apache завершена! Описание каждой изменённой директивы вы найдёте на этой странице.
Откройте командную строку (это можно сделать нажав одновременно клавиши Win+x).
Выберите там Windows PowerShell (администратор) и скопируйте туда:
Если поступит запрос от файервола в отношение Apache, то нажмите Разрешить доступ.
Теперь вводим в командную строку:
Теперь в браузере набираем http://localhost/ и видим следующее:
Как установить PHP на Windows
PHP 8 скачайте со страницы windows.php.net/download/. Выберите версию Thread Safe, обратите внимание на битность. Если вы затрудняетесь, какой именно файл скачать, то посмотрите эту заметку.
В папке c:\Server\bin\ создаём каталог PHP и копируем в него содержимое только что скаченного архива.
В файле c:\Server\bin\Apache24\conf\httpd.conf в самый конец добавляем строчки:
И перезапускаем Apache:
В каталоге c:\Server\data\htdocs\ создаём файл с названием i.php, копируем в этот файл:
В браузере откройте ссылку http://localhost/i.php. Если вы видите что-то похожее, значит PHP работает:
Настройка PHP 8
Настройка PHP происходит в файле php.ini. В zip-архивах, предназначенных для ручной установки и для обновлений, php.ini нет (это сделано специально, чтобы при обновлении случайно не удалить ваш файл с настройками). Зато есть два других, которые называются php.ini-development и php.ini-production. Любой из них, при ручной установке, можно переименовать в php.ini и настраивать дальше. На локалхосте мы будем использовать php.ini-development.
Открываем файл php.ini любым текстовым редактором, ищем строчку
Теперь найдите группу строк:
теперь раскомментируйте эту группу строк:
Этими действиями мы включили расширения. Они могут понадобиться в разных ситуациях для разных скриптов. Сохраняем файл и перезапускаем Apache.
Материалы по дополнительной настройке, в том числе подключение поддержки PERL, Ruby, Python в Apache (только для тех, кому это нужно):
Как установить MySQL в Windows
Бесплатная версия MySQL называется MySQL Community Server. Её можно скачать на странице https://dev.mysql.com/downloads/mysql/. На этой же странице есть установщик в виде исполнимого файла, но я рекомендую скачать ZIP-архив.
В каталог c:\Server\bin\ распаковываем файлы из только что скаченного архива. Распакованная папка будет называться примерно mysql-8.0.17-winx64 (зависит от версии), переименуйте её в mysql-8.0.
Заходим в эту папку и создаём там файл my.ini. Теперь открываем этот файл любым текстовым редактором и добавьте туда следующие строки:
Сохраните и закройте его.
Настройка завершена, но нужно ещё выполнить инициализацию и установку, для этого открываем командную строку от имени администратора и последовательно вводим туда:
По окончанию этого процесса в каталоге C:\Server\data\DB\data\ должны появиться автоматически сгенерированные файлы.
Теперь служба MySQL будет запускаться при каждом запуске Windows.
Как установить phpMyAdmin в Windows
Сайт для скачивания phpMyAdmin: phpmyadmin.net.
Прямая ссылка на самую последнюю версию: phpMyAdmin-latest-all-languages.zip.
В каталог c:\Server\data\htdocs\ копируем содержимое только что скаченного архива. Переименовываем эту папку в phpmyadmin.
В каталоге c:\Server\data\htdocs\phpmyadmin\ создаём файл config.inc.php и копируем туда:
В качестве имя пользователя вводим root. Поле пароля оставляем пустым.
Заключение
Вот и всё — теперь у вас есть свой персональный локальный веб-сервер на своём домашнем компьютере.
Если вдруг у вас что-то не получилось, то скорее всего вы пропустили какой-то шаг или сделали его неправильно — попробуйте всё сделать в точности по инструкции. Если проблема осталась, то ознакомьтесь со справочным материалом «Ошибки при настройке и установке Apache, PHP, MySQL/MariaDB, phpMyAdmin» и если даже он не помог, то напишите о своей ошибке в комментарии.
Большое количество материалов по Apache на русском языке специально для Windows вы найдёте на этой странице.
Примеры материалов, которые могут вам пригодиться в первую очередь:
Apache php mysql windows server 2012
Well it is finally time to start playing a bit more with Microsoft’s latest server OS Windows Server 2012 R2. One of the many things to have on the list is getting the WAMP (Windows/Apache/MySQL/PHP) stack working. So in this post we will get installed and running Apache 2.4.9, MySQL 5.6.19 and PHP 5.5.13 on Windows Server 2012 R2. Also, instead of 32 bit apps we will be install 64 bit.
Download 64 bit Apache (httpd-2.4.9-win64-VC11.zip) from http://www.apachelounge.com/download/. Download and extract the zip and copy it to the root of C:\. This will be C:\Apache24 when it is all done.
Extract php-5.5.13-Win32-VC11-x64.zip. Edit Apache’s config file, c:\Apache24\conf\httpd.conf and add the following lines to the bottom of the file.
While we are at it we can add index.php to Apache’s list just incase we want to have a starting page as php.
Find Directory index and add index.php
Next we need to input a value for ServerName variable. You will have to un-comment it. Save the changes to the config file. Next move to the Register Apache Service step.
Register Apache Service
Now let’s register Apache as a service. Open a command prompt and type.
If do not want Apache starting automatically at start-up/reboot:
to PATH in Environment variables. PATH ENVIRONMENT (System Properties | Advanced | Environment Variables | System variables | Path).
Example:
;c:\php;c:\apache24;c:\apache24\bin;
PHP Edits
Now we have to do a few edits to the php.ini file to tell it to load support for mysql and the location for the extensions. Since there is not a already set php.ini file we need to rename one of the two examples to php.ini.
Rename c:\php\php.ini-development to php.ini
Now let’s edit php.ini
Uncomment extension directory.
Save the changes and open a command prompt. Restart Apache to re-read the changes made to PHP.
Check to make sure it shows loaded modules.
So now we have Apache running and configured to use php. Lets create a file called info.php, save it and see if Apache parses the info correctly to display the results.
Open Notepad or your favorite Windows editor and type and save the following.
Open your browser and type, localhost/info.php for the location and you should receive alot of information about PHP.
MySQL
Download and install mysql-5.6.19-win64.msi. Change installation directory to C:\MySQL\MySQL Server 5.6 instead of Program files as there could be permissions issues. Once the installation is completed you can let the configuration wizard run and setup the database server. The defaults will work just fine, but remember what you set the password to for root.
PHPMyAdmin
PHPMyAdmin is a very nice tool to use for administering your MySQL installation.
Download and install phpmyadmin-3.4.10.1-english.zip.
Extract the file and move to c:\apache24\htdocs. Rename directory to phpmyadmin.
Create a config directory under phpmyadmin. Open a browser and type localhost/phpmyadmin/setup/index.php to complete the installation.
Related Posts
58 Responses to “How to Install Apache 2.4 MySQL and PHP on Windows Server 2012 R2”
Thank you so much for this! This saved me a ton of time and worked perfectly!
Hi, thanks for this very helpful information here. I am in the process installing all from scratch. Also, tons of files bringing from Win 2003 server, but I only hope all will go ok someday,,
Hello, Its really very nice blog but i am stuck here so plzz give me solution. myphp and apache are working fine but i installed mysql in c/program file so now i get this error
“Your PHP installation appears to be missing the MySQL extension which is required by WordPress.”
Change installation directory to C:\MySQL\MySQL Server 5.6 instead of Program files as there could be permissions issues. Once the installation is completed you can let the configuration wizard run and setup the database server. The defaults will work just fine, but remember what you set the password to for root. Also on the PHP Edits sections you need to:
Uncomment mysql modules
extension=php_mysql.dll
extension=php_mysqli.dll
in c:\php\php.ini
You probably need to uninstall and reinstall mySQL as being installed in c:\program Files causes issues.
Hello, I’ve faced with the issue that extensions of PHP dont work.
I had “Fatal error: Call to undefined function mb_detect_encoding()” when I was openning “localhost/phpmyadmin/setup/index.php”
I’ve seen than phpinfo() have no enabled extensions.
So, I’ve solved it.
Just change in php.ini
from “extension_dir = “ext””
to “extension_dir = “C:/php/ext””
Actually you didn’t have to add the full path, there are two steps in the post that show adding c:\php to the Windows Path environment variable and also the edits to the httpd.conf file. The Path change will not be noticed by the OS until you reboot. By making those changes it should be able to see ext.
I followed the setup and everything is working except the phpmyadmin module. I originally got a similar error to above, but that seems to have disappears now I just get a loading screen and then an error when the page doesn’t load.
Also – where exactly is this step:
Add
to PATH in Environment variables. PATH ENVIRONMENT (System Properties | Advanced | Environment Variables | System variables | Path).
Example:
;c:\php;c:\apache24;c:\apache24\bin;
OK. I added the path – Do I add a new one or to the existing ones that are there (temp and tmp). Unfortunately I still get just a blank screen.
Thanks for the post.
I get following error:
[17-Oct-2014 03:56:47 UTC] PHP Warning: PHP Startup: Unable to load dynamic library ‘C:\PHP\ext\php_oci8_12c.dll’ – %1 is not a valid Win32 application.
One more OCI error:
Fatal error: Call to undefined function OCIPLogOn() in
Dear newlife007,
Thanks so much for this posting.
I am in the process of migrating our server from Windows Web Server 2008 R2 to Windows Server 2012 and need this information.
We need to use Windows Server due to the requirements of other program we need to use.
However, as we are going to use Drupal 7, the PHP version will be 5.3 and not above that. We also need to use 64 bits version of MySQL due to database size.
If I am going to need your help, how can I reach you?
Please email to paramajaya@gmail.com
Looking forward to hearing from you.
Rama,
How can I help you out? You wanting to know how to install and configure them on Windows 2012? I think I can help you out. Also are you using IIS or APache for your web server?
Never mind, my bad! I had managed to mix x32 and x64 binaries. Thank you again for an excellent guide!
I am glad the guide was useful to you!
And then it’s not working..
c:/php/php5apache2_4.dll is not in the directory specified in the file and even if i add the file in the version working together i still get a 500 error.
So needs an update or correction.
Did you add c:\php to your environmental path values on the server? to PATH in Environment variables. PATH ENVIRONMENT (System Properties | Advanced | Environment Variables | System variables | Path).
Example:
;c:\php;c:\apache24;c:\apache24\bin;
It would be nice if you updated your post to mention these small additions.
By the way, where do I find PATH ENVIRONMENT?
How do I check that PHP, Apache and MySQL work together. I want to install Joomla but the installer doesn’t work.
What is the Joomla installer complaining about when you run it? What error is it giving you? In the installation instructions on this post there is a test for the PHP installation, For Apache opening Internet Explorer and typing in localhost for the URL should display the index.html page showing It Works!. For MySQL you should be able to open a command prompt and connect to MySQL.
In the c:\Apache24\conf\httpd.conf file find the DocumentRoot “c:/Apache24/htdocs” and change it to DocumentRoot “e:/www” this will change where the default content is put for the site. Save the changes and restart Apache service.
Thanks for writing this post – it helped me out. I am new to installing this stuff on Windows (easy part, just a double-click) and getting it to work (not so easy part).
So I mixed up VC9, VC11 and VC14 installations (wtf do I know), installed 5 versions of vcredist_x64 (from 2010 thru 2012), wanted to istall Apache 2.2 but could not find any 64bit PHP installation for it, etc, etc.. So, finding out the hard way, I stumbled upon your webpage and followed the steps. Got it working now! So, don’t move or delete this page!
I get the same error as Janus.
c:/php/php5apache2_4.dll can not be found. When it is there.
I setup multiple different apache/php combinations on different versions of windows. I find that depending on the exact apache/php combination you get this error. It may be because you combined 64 bit with 32 bit versions. But I have 64 bit versions together and I still get the error. If I solve it I will post here. I have it working on my other win2k12 box but just not this one with newer versions of Apache/Php
Most times when I see this error is is due to the Windows Path not having c:\php in it and I have seen the newer versions of PHP make changes. Did you add the php settings in the Apache httpd.conf and another big piece is the VC++ version you downloaded matches the PHP compiled version. They have to match.
Excellent, all up and running in under 3 hours (a little fiddling getting PHP up n running)
Hi All, I have done everything I can think of and followed the above suggestions but I am getting the following error and cannot seem to solve – when I try to test Apache or even install it as a service I get the “this program cannot start because VCRUNTIME140.dll is missing ……
I have even found a copy of this dll and placed it in the Windows32 directory, but same error – any suggestions please.
VC14 Packages (Visual C++ 2015) The two files vcredist_x86.exe and vcredist_x64.exe to be download are on the same page: http://www.microsoft.com/en-us/download/details.aspx?id=48145
Thanks dude, that was really helpfully, only change i made was not install phpmyadmin i prefer use mysqlworkbench, but this is a good guide..
I followed these directions updating the versions to the more recent ones. Everything is working so far except the final step. I put phpmyadmin in the htdocs folder and tried to load the page to finish the install andI get this error:
Fatal error: Uncaught Error: Call to undefined function mb_detect_encoding() in C:\Apache24\htdocs\phpmyadmin\libraries\php-gettext\gettext.inc:177 Stack trace: #0 C:\Apache24\htdocs\phpmyadmin\libraries\php-gettext\gettext.inc(282): _encode(‘The %s extensio…’) #1 C:\Apache24\htdocs\phpmyadmin\libraries\php-gettext\gettext.inc(289): _gettext(‘The %s extensio…’) #2 C:\Apache24\htdocs\phpmyadmin\libraries\core.lib.php(306): __(‘The %s extensio…’) #3 C:\Apache24\htdocs\phpmyadmin\libraries\core.lib.php(961): PMA_warnMissingExtension(‘mbstring’, true) #4 C:\Apache24\htdocs\phpmyadmin\libraries\common.inc.php(102): PMA_checkExtensions() #5 C:\Apache24\htdocs\phpmyadmin\setup\lib\common.inc.php(22): require_once(‘C:\\Apache24\\htd…’) #6 C:\Apache24\htdocs\phpmyadmin\setup\index.php(13): require(‘C:\\Apache24\\htd…’) #7
I went into the gettext.inc file but I can’t really make heads or tails of what line 177 is. Thoughts?
I also just noticed that I cannot access the base site (index.html) from outside the server. I had IIS installed when I started this but I removed it. Do I need to do something to get it to redirect right?
Scratch the issue with the base site. With IIS when I put in the IP, it went right to the home page. I didn’t realize with this I had to add \index.html to get it to load. But it’s loading with that.
This info is spot-on for what I need. However, can I install WAMP (then WordPress) on my D drive instead? My virtual dedicated server’s C drive is almost filled up with the OS and IIS, and I have a 50GB D drive that is empty.
You can install WAMP on any drive as long you define it during the install. As for this post you can install Apache and PHP to the drive as well just change the drive letter instead of using C:. The one thing you will need to do when running multiple instances of apache is to configure it to use a different port, all cant use port 80 and run at the sametime.
Thanks for your kind reply. He’re my dilemma: I am on the verge of going to market with a Windows App that relies on IIS for web services. This IIS is installed on the C drive and is working fine for its purposes. However, I want to stand up my website on Apache, as I’ve read that WordPress on IIS is less stable and has certain security vulnerabilities. So, port conflicts aside (which can be configured, as you mentioned), is it a good idea to have two different web servers on the same AWS instance?
To be more specific: the web services piece on IIS manages user account info in the cloud, and employs a SQL server database, also installed on the C drive.
Ideally I want the entire WAMP stack, and all the WordPress files, on the D drive.
Am I barking up the wrong tree with this approach?
In past experiences it is always best to run separate and not IIS and Apache on the same instance. Windows is really suited for supporting a single application. It is easier to manage and gets rids of any conflicts. As for WordPress running on IIS I do not have any experience with it and really Linux is probably the best and most stable OS to run it on.
Thank you for your suggestions. I decided to snapshot, then expand my C volume size on AWS, and will run with WordPress on IIS on the root. Appreciate the tips!!
When i go to the last step for phpmyadmin I cant understand “Rename directory to phpmyadmin.” Do I rename the whole “apache24” to phpmyadmin or rename the htdocs. or the folder that has the long name which the php files are in. Im using this tutorial, but installing the latest stable for each of the programs. And for some reason whenever I type “localhost/phpmyadmin/setup/index.php” It just opens an error message on hfs that it wasnt found. Any ideas on what is wrong?
The comment means rename extracted phpMyAdmin-4.6.6-english directory to phpmyadmin. So the final name will be c:\apache24\htdocs\phpmyadmin
Thanks, on another note. If i am using php7 then on the first step should the edit to the apache config file look like this?
Where am I suppose to put the index.php file? I entered localhost/info.php in the browser and get error. Please help
the file should be in c:\apache24\htdocs as that is the default location defined in the httpd.conf file. If you need to change it edit the c:\apache24\conf\httpd.conf file and edit the DocumentRoot variable.
What about the Listen variable? I can’t seem to bind with port 80. How am I suppose to do it?
“Create a config directory under phpmyadmin” what config directory??
Under the c:\apache24\htdocs\phpmyadmin directory create a new directory called config. You can do it with command line or using Windows Explorer.
At the very end of tutorial i browse to http://localhost and I get “It works!” which mean the service is listening and responsive, but when I got to http://localhost/info.php I get “Not Found
The requested URL /info.php was not found on this server.”
What is wrong here?
Thank you for this tutoriel.
I succeed to install and use phpmyadmin and Mantis Bug tracker.
Unfortunately, i have trouble in the SSL activation. No problem with the certificate installation, but trouble with the virtual host definition.
I was really hoping this tutorial would help me out but I’m 2 days in and still no joy.
Tried following this line by line but cannot get Apache to run at all.
Got the win32 dll message error, managed to resolve that by getting the VC14 x64 Thread Safe (2017-Aug-30 21:35:35) from http://windows.php.net/download/
but whenever I tried to start Apache from services.msc I just get a whole load of
AH00015 Unable to open logs
repeatedly checked I have ;c:\php;c:\apache24;c:\apache24\bin; in the Path Environment Variables as directed
http://localhost with the info.php in the c:\Apache24\htdocs location doesn’t resolve either
The setup I’m trying to get this working on is a virtual machine running Windows Server 2012
Did you edit the httpd.conf and set a value for ServerName. You can set it to IPaddress of the system. Save the shanges and restart the Apache service.
Hi – thanks for reply. I did manage to finally get apache running, multiple changes to the httpd.conf file…
Listen 8080
Hi,
How to register SQLSRV in the php and apache. Its shows me not registered.