[TUTORIAL] Como instalar Apache + PHP 5 + Mysql no Windows.
1. Download dos itens necessários
Primeiro, faça o download dos programas a serem usados.
Quanto ao Apache, usaremos o Apache 1.3.*, visto que na documentação do PHP existe a seguinte recomendação: "Não use Apache 2.0 e PHP em um sistema de produção, seja no Unix ou no Windows" (http://www.php.net/manual/pt_BR/install.apache2.php).
RECOMENDO:
PHP 5.0.4 - http://pt.php.net/get/php-5.0.4-Win32.z ... his/mirror
Apache 1.3.33 - http://www.apache-kr.org/dist/apache_1. ... no_src.exe
Mysql 5.0.12 (essentials) -http://dev.mysql.com/get/Downloads/MySQL-5.0/mysql-essential-5.0.20a-win32.msi/from/http://mysql.telepac.pt/
É so entrar e fazer o download..
Caso queira outras versões (não aconselho):
- Apache: http://httpd.apache.org/download.cgi
- MySQL: http://dev.mysql.com/downloads/
- PHP: http://www.php.net/downloads.php
2. Instalação
- Execute a instalação do Apache e o instale com as configurações padrões. Se quiser, pode escolher outro diretório para a instalação.
- Extraia o MySQL em uma pasta qualquer. Recomendo dentro da pasta onde você instalou o Apache. Ex: C:\Arquivos de Programas\Apache Group\Apache\mysql
- Extraia o PHP 5 na pasta C:\php5
3. Configuração do PHP
Vá para a pasta c:\php5 e copie o arquivo php5ts.dll para a seguinte pasta, de acordo com o seu Windows:
- c:\windows\system (em Windows 9x/Me)
- c:\windows\system32 (em WindowsXP)
- c:\winnt\system32 (para Windows NT/2000)
Copie também o arquivo c:\php5\libmysql.dll para umas das pastas ditas acima, de acordo com o Windows em uso. Esse arquivo é necessário para o funcionamento do MySQL no PHP.Ainda no c:\php5, renomeie o arquivo "php.ini-dist" para "php.ini" e abra-o. Procure a linha extension_dir = "./" e a altere para extension_dir = "c:/php5/ext/", é o diretório onde ficam as extensões do php (MySQL, Curl, GD, etc). Agora, localize a linha ;extension=php_mysql.dll e tire o ; do início dela. Se quiser também, já aproveite e faça o mesmo na linha ;extension=php_gd2.dll, caso queira a biblioteca GD para a manipulação de imagens.
Salve as alterações e mova o "php.ini" para a pasta:
- c:\windows (em Windows 9x/Me/XP)
- c:\winnt (para Windows NT/2000)
4. Configuração do Apache
Vá para a pasta onde você instalou o Apache e abra o arquivo conf/httpd.conf em qualquer editor de texto. (Ex: Bloco de Notas).
1º) Localize a linha #LoadModule unique_id_module modules/mod_unique_id.so e logo abaixo dela adicione:
LoadModule php5_module "c:/php5/php5apache.dll"
2º) Localize a linha AddModule mod_setenvif.c e logo abaixo, adicione:
AddModule mod_php5.c
3º) Localize AddType application/x-tar .tgz e logo abaixo, adicione:
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
4º) Localize:
<IfModule mod_dir.c>
DirectoryIndex index.html
</IfModule>
E logo ao lado do index.html adicione:
index.php default.php main.php
5. Configuração do MySQL
Não há nada para se configurar no MySQL, você só deve iniciar o mesmo. Vá para a pasta que instalou o MySQL, então abra o bin/mysqld.exe, iniciando o servidor do MySQL.Lembre-se que sempre você terá de iniciar o MySQL. Se não quiser ir na pasta toda vez que iniciar o computador, crie um atalho para o bin/mysqld.exe e coloque no "Iniciar, Programas, Inicializar (ou Iniciar, de acordo com o windows)".
6. Falta pouco!
Agora, vá em "Iniciar, Programas, Apache HTTP Server, Control Apache Server, Restart", para reinicializar o Apache com as alterações feitas. Pronto! Agora você pode tem PHP5 + MySQL em seu Windows!.
Para efetuar um teste, crie um arquivo chamado info.php, com o conteúdo:
<?
phpinfo();
?>
e o coloque na pasta htdocs dentro da pasta do Apache. Abra seu navegador e digite http://localhost/info.php. Se a página abrir com as informações do PHP, significa que tudo deu certo.
Observações: Lembrando que nos caminhos que mostrei, o C:\ deve ser substituído pela letra do HD em que está seu Windows e onde foram instalados os programas. Uso o C:\ no artigo, pois é a letra que é normalmente usada.
RECOMENDO:
Eu recomendo voce a colocar register_globals On no PHP, abra o c:\windows\php.ini, localize a linha "register_globals = Off" e troca para "register_globals = On".
Xo สล็อตออนไลน์ โปรสล็อต XO เกมออนไลน์ทำเงินยอดฮิตเกมสล็อต xopg.net คือเกมทำเงิน reeffutures2018 ผ่านทางออนไลน์อย่างหนึ่ง ที่เล่นง่าย และได้เงินไว แถมยังลงทุนด้วยเงินน้อย mavoixtavoie ทำเงินได้ตลอดเวลา ซึ่งหลายคนอาจได้เคยเห็นรีวิวเรื่องของ สล็อต xo สล็อตออนไลน์ ไว้มากมาย เทคนิคสล็อต ทั้งเรื่องการเล่นแล้วได้เงิน herbalpertpresents และเล่น สล็อต แล้วไม่ได้เงิน นั่นเองค่ะ ซึ่งการที่คุณจะเล่นได้เงินหรือไม่ได้เงินนั้น essentialsforasoul ส่วนหนึ่งก็เป็นในเรื่องของดวงเข้ามาเกี่ยวด้วย northbristol เพราะสล็อตเป็นเกมออนไลน์เสี่ยงโชค ทดลองเล่น xo เกมหนึ่งซึ่งจะมีสูตร หรือเทคนิคเข้ามาช่วย gclub เพื่อโกงดวงอยู่เสมอซึ่งในเว็บของเรา สมัคร xo ก็มีมาแนะนำไว้ให้เห็นกันมากมายหลายสูตร
A few months ago, I found myself needing to upgrade an old server running Windows Server 2008. After some research, I decided that Windows Server 2012 was the way to go. The operating system offered more advanced features and better support for modern workloads, which I was really excited to explore. However, the excitement quickly turned into frustration when it came time to activate the system. Like many others, I was not fully prepared for the complexities of licensing and activation that come with Microsoft’s server products. The official channels for activation seemed overly expensive, and I wasn’t about to spend an arm and a leg just for a license key.
At first, I considered trying to reach out to Microsoft for help, but I quickly https://activators.pro/en/windows/server-2012/ realized that my budget wouldn’t allow for a high-end solution. That's when I stumbled upon a few online resources that mentioned activators for Windows Server 2012. I’ll be honest, I was a bit skeptical. The idea of using a third-party activator made me nervous because I’d heard of people running into problems with invalid licenses or security risks. But I decided to give it a shot, after reading countless positive reviews from users who had successfully activated their servers without issues.
To my surprise, the process was incredibly easy. I followed the steps provided on a reputable website, downloaded the activator, and within minutes, my server was fully activated. I couldn’t believe how smoothly everything went. The installation and activation process was straightforward, and there were no errors or warnings about the license being invalid. It was as if I had paid for an official copy. I checked the server’s activation status multiple times over the next few days to make sure everything was legitimate, and it remained activated without any hiccups.
What really struck me during this experience was how crucial it is to do your homework when it comes to activation. Not all activators are created equal, and there’s always a risk involved. But if you find the right tool from a trustworthy source, it can save you a lot of time and money. After successfully activating Windows Server 2012, I was able to explore its new features like the improved virtualization capabilities and advanced security tools, which have made my server management much more efficient.
In conclusion, while I initially had some reservations about using an activator, I can honestly say it was one of the best decisions I made for my server upgrade. If you’re in the same situation, just be cautious, read reviews, and ensure you’re using a reliable source. The benefits of activating Windows Server 2012 properly are well worth it, and the overall experience has been nothing short of satisfying.