How To: Install WordPress on Windows How To: Instalar o WordPress no Windows

ADVERTISEMENT ADVERTISEMENT
To get our software and web/tips via email, sign up for Para obter o nosso software e web / dicas via e-mail, cadastre-se daily email newsletter e-mail newsletter diária . .
Subscribe to RSS feed Subscribe to RSS feed or ou follow me siga-me on Twitter? no Twitter?

When it comes to developing themes and plugins, you need the right tools to finish the job quickly and efficiently. Quando se trata de desenvolver os temas e os plugins, você precisa das ferramentas certas para terminar o trabalho rapidamente e eficientemente. There are a plethora of tools to choose from, and your selection can vary by personal taste. Há uma infinidade de ferramentas para escolher, e sua seleção pode variar de acordo com seu gosto pessoal. Some go for open-source tools like GIMP and Nvu, whereas others stick with trusted commercial applications like the omni-present Adobe Photoshop and Macromedia Dreamweaver. Alguns vão para ferramentas open-source como o GIMP e Nvu, enquanto outras ficam com confiança aplicações comerciais, como o onipresente Adobe Photoshop e Macromedia Dreamweaver. Whatever your choice maybe, it is essential that you like it and stick with it. Seja qual for a sua escolha, talvez, é essencial que você gosta dele e ficar com ela.

WordPress + XAMPP

Testing your themes and plugins can be a big head ache, as you have to reload the page every time, consuming bandwidth. Teste seus temas e plugins pode ser uma dor de cabeça grande, como você tem que recarregar a página toda vez que, consumindo largura de banda. Bandwidth is precious, unless you own a dedicated server at MediaTemple or something(!). Largura de banda é preciosa, a menos que possua um servidor dedicado no MediaTemple ou algo assim (!). Also, any edit has to be uploaded before previewing. Além disso, qualquer edição tem de ser carregado antes de visualizá-la. This gets tiresome, and you would have wondered whether there is an easier way. Isto torna-se cansativo, e você teria que saber se existe uma maneira mais fácil.

Linux users have the LAMPP(Linux, Apache, MySQL, PHP), which is easy, but Windows users are mostly unaware of a similar package. Usuários Linux têm o LAMPP (Linux, Apache, MySQL, PHP), que é fácil, mas os usuários do Windows são principalmente inconscientes de um pacote semelhante. It is called XAMPP(Apache, MySQL, PHP). É chamado XAMPP (Apache, MySQL, PHP). Once you install it, you can setup WordPress locally, and test your plugins/themes/hacks offline. Depois de instalá-lo, você pode configurar o WordPress localmente, e testar a sua plugins / temas / offline hacks. You save bandwidth, effort and time. Você economiza esforço de largura de banda e tempo.

Here are the steps for installing WordPress locally: Aqui estão os passos para instalar o WordPress localmente:

ADVERTISEMENT ADVERTISEMENT

  • Download the lite version of XAMPP, called Baixe a versão lite do XAMPP, chamado XAMPPlite Xampplite Choose the .exe version. Escolha a .exe
  • Install it at a partition of your choice. Instale-o em uma partição de sua escolha. Here, we are using C drive. Aqui, estamos usando a unidade C.
  • Go to the install folder, that is C:xampplite. Vá para a pasta de instalação, que é C: xampplite. Double-click the xampp-control.exe file, and start up MySQL and Apache services in the dialog box that follows. Dê um duplo clique no xampp-control.exe e iniciar o MySQL e Apache serviços na caixa de diálogo que se segue.
  • Go to http://localhost/ in your browser. Ir para http://localhost/ no seu browser. From the left column, choose your language. Na coluna da esquerda, escolha o seu idioma.
  • Click on phpMyAdmin in the left column(see image below). Clique no phpMyAdmin na coluna da esquerda (veja imagem abaixo).

    Tela XAMPP

  • In the “Create New Database” Field, enter “wordpress” (without quotes), and select utf8_unicode_ci in the drop down box in the next field. Na lista "Criar novo banco de dados" do campo, digite "wordpress" (sem aspas), e utf8_unicode_ci selecionar na caixa drop-down no próximo campo. Click Create. Clique em Create. XAMPP setup is now complete. XAMPP configuração agora está completa.
  • Download Baixar WordPress. WordPress.
  • Unzip it to C:xampplitehtdocs Descompacte-o para C:xampplitehtdocs
    You should have a wordpress folder in htdocs. Você deve ter uma pasta wordpress em htdocs. Go to it, and open up wp-config-sample.php . Vá a ele, e abrir wp-config-sample.php
  • You will see a list of default values. Você verá uma lista de valores padrão. Change them to below(do not copy-paste this, just find the required info and update the file): Alterá-las para baixo (não copiar e colar isso, basta encontrar as informações necessárias e atualização do arquivo):
    define('DB_NAME', 'wordpress'); // The name of the database
    define('DB_USER', 'root'); // Your MySQL username
    define('DB_PASSWORD', ''); // ...and password (needs to be empty, just for local install)

    Rename the file as wp-config.php and save it. Renomeie o arquivo como wp-config.php e salvá-lo.

  • Go to http://localhost/wordpress/wp-admin/install.php in your browser, and follow the steps. Ir para http://localhost/wordpress/wp-admin/install.php no seu navegador, e siga os passos.

You're done. Você está feito. Now, use the wordpress folder as you would on your webserver, and upload the plugins, themes etc. to test. Agora, use a pasta wordpress como faria no seu servidor web e fazer o upload dos plugins, temas, etc para testar. I recommend doing this before attempting a manual install in your server ( if it doesn't have one-click installer). Eu recomendo fazer isso antes de tentar uma instalação manual no seu servidor (se ainda não tem um instalador clique). Now, go and test to your heart's content Agora, vá e testar o conteúdo do seu coração : D I am having a great time testing, and the instant page loads of my dummy blog looks great. Estou tendo um grande momento de teste, e as cargas da página instante do meu blog boneco parece ótimo.

To get our latest articles, Para obter as últimas artigos, click here to sign up clique aqui para se inscrever for our free email newsletter or subscribe to para o nosso boletim de e-mail gratuito ou inscrever-se RSS feed RSS feed

§ Comments Comments §
  • Shankar Ganesh says: Shankar Ganesh diz:

    Great tutorial man. Grande homem tutorial. I've already set this up on my local PC and loaded contents from my hosted blog on to this.. Eu já definir isso no meu PC local e conteúdo carregado do meu blog hospedado sobre a este .. so I can get the exact environment I need when I've to test plugins para que eu possa pegar o ambiente exato eu preciso quando eu testar plugins : D

  • Linu says: Linu says:

    I will try this… Vou tentar isso ...

  • Deepak says: Deepak says:

    You missed one step… Você perdeu um passo ...
    You have to rename wp-config-sample.php to wp-config.php Você tem que mudar o nome de wp-config-sample.php para wp-config.php

    BTW, I think LAMPP and XAMPP are one and the same, except L is for Linux and X is for XP. BTW, acho que LAMPP XAMPP e são uma ea mesma coisa, exceto L é para o Linux e X é para XP. :)

  • Sumesh says: Sumesh says:

    @Shankar: Thanks. @ Shankar: Obrigado. And yes, this is for newbies. E sim, isso é para iniciantes. I expect most of you to have this already. Espero que a maioria de vocês para ter esta já.

    @Linu: Do try – it'll make developing themes easier. @ Linu: tente - ele vai fazer desenvolvimento de temas mais fácil.

    @Deepak: Thanks. Deepak @: Obrigado. I guess, I forgot it. Eu acho, eu esqueci. Am editing it now. Estou editando-o agora.

  • Haris says: Haris says:

    Great tutorial! Ótimo tutorial! I don't use XAMPP. Eu não uso o XAMPP. I use NetServer, but still I have XAMPP in my PC in case I mess up with NetServer. Eu uso NetServer, mas ainda tenho o XAMPP no meu PC, no caso eu bagunça com NetServer.

  • Sumesh says: Sumesh says:

    @Haris: Thanks, and glad you liked it – I feel happy and believe it is worth the time spent, only when I get comments rolling. @ Haris: Obrigado, e glad you liked it - Eu me sinto feliz e acreditar que vale a pena o tempo gasto, só quando eu chegar em material comentários.

  • Nirmal says: Nirmal diz:

    Nice tutorial, especially if you want to test themes and plugins locally before installing on server. Nice tutorial, especialmente se você quiser testar temas e plugins localmente antes de instalar no servidor.

  • Andy says: Andy says:

    Having trouble with establishing a connection with the database. Tendo problemas com o estabelecimento de uma conexão com o banco de dados. After Depois http://localhost/wordpress/wp-admin/install.php http://localhost/wordpress/wp-admin/install.php

    Have you missed out a step? Você já perdeu um passo?
    define('DB_HOST', 'localhost'); // 99% chance you won't need to change this value define ( 'DB_HOST', 'localhost') / / 99% de chance que você não vai precisar alterar esse valor

    I have set up WP on a live server before so I haven't miscalulated my ability to edit the config file, so any ideas what is missing? Eu configurei WP em um servidor antes de viver assim eu não miscalulated minha capacidade de editar o arquivo de configuração, assim que todas as idéias que está faltando? Any help is appreaciated, as I'm setting this up to learn how to create themes! Qualquer ajuda é appreaciated, como eu tenho essa configuração para aprender como criar temas!
    Cheers Felicidades

  • Sumesh says: Sumesh says:

    @Nirmal: Thanks, hope you're having a blast using it @ Nirmal: Obrigado, espero que você está tendo uma explosão de usá-lo : D

    @Andy: No, localhost(which corresponds to @ Andy: Não, localhost (que corresponde ao http://127.000.001/) http://127.000.001/) is the local IP of your computer. é o IP local do seu computador. It does not have to be changed, unless of course, you are using a live server. Ela não tem que ser mudado, a não ser, claro, você está usando um servidor ativo. As for ideas, well, try again Quanto a idéias, bem, tente novamente : D Maybe you missed a step. Talvez você errou um passo.

  • Madhur Kapoor says: Madhur Kapoor diz:

    Great Tutorial Buddy . Ótimo tutorial camarada. Currently i use EasyPHP for this purpose . Atualmente eu uso o EasyPHP para esta finalidade. It is a cool way to test your themes and plugins . É uma forma legal para testar seus temas e plugins.

  • Myo Kyaw Htun says: Kyaw Oo says:

    I use Appserv. Eu uso Appserv. You can find installing wordpress on windows tutorial in my blog Você pode encontrar instalar o Wordpress no Windows tutorial no meu blog

  • MDB says: MDB says:

    Wow! Uau! Never thought about or even realized that you could do this. Nunca pensei nem percebeu que você poderia fazer isso. What a great idea and well described. O que uma grande ideia e bem descritos. Will put it on my to do list after I have slimmed down all the junk on my hard drive. Irá colocá-lo na minha lista para fazer depois de eu ter emagrecido todo o lixo no meu disco rígido.

  • Sumesh says: Sumesh says:

    @Myo: I saw your tut, though its a bit long. @ Myo: Eu vi o tut, embora a sua um pouco longo. For now, I prefer XAMPP. Por enquanto, eu prefiro XAMPP.

    @MDB: Thanks, and glad that this tut could be of help. @ MDB: Obrigado, e feliz por este tut poderia ser de ajuda.

    @Madhur: Thanks. @ Madhur: Obrigado.

  • syahid ali says: Ali Syahid says:

    if you want to do it the techie way (without xampp). Se você quiser fazer do jeito tecnólogo (sem xampp). check out my check out my apache 2.2 installation guide Instruções de instalação do Apache 2.2

  • Sumesh says: Sumesh says:

    @Syahid: Thanks for the link – I went through it. @ Syahid: Obrigado pelo link - Eu passei por isso. Its nice for show-off and ego boosting, but for now I find this method the easiest – easier than EasyPHP/direct method. Seu bom para show-off e aumentar o ego, mas por agora eu acho esse método mais fácil - mais fácil do EasyPHP / método direto.

  • JoLynn Braley says: JoLynn Braley says:

    Great post, I've often wondered why more bloggers don't install locally to do testing, theme modifications, etc. I use WAMP and my only problem is finding the time to do more work/testing on my local install so that I can change my live site! Great post, eu sempre quis saber por que mais blogueiros não instalar localmente para fazer testes, modificações tema, etc eu uso o WAMP e meu único problema é achar tempo para fazer mais trabalhos / ensaios em meu local de instalação para que eu possa mudar o meu site ao vivo! ;)

  • Sumesh says: Sumesh says:

    @JoLynn: Yes, it is sensible to do testing in a local setup that is fast, and has no consequences when we mess it up. @ JoLynn: Sim, é sensato para fazer testes em uma instalação local, que é rápido, e não tem consequências quando nos mexer-se. WAMP is cool – I read about installing it in a post by WAMP é legal - Eu li sobre instalá-lo em um posto de Ben Bleikamp Ben Bleikamp (ProBlogger's designer). (Designer ProBlogger's). As for not getting time, you're not alone – count me in too! Quanto a não ficar o tempo, você não está sozinho - conte comigo também!

  • Mitra says: Mitra says:

    Nice tut..Sumesh. Nice tut .. Sumesh. I came across this one as I was looking for a more specific solution. Me deparei com este que eu estava procurando uma solução mais específica. I was able to do everything you have mentioned in the tut and wordpress was installed, up and running the first time. Eu era capaz de fazer tudo o que você mencionou no tut e WordPress foi instalado, em funcionamento pela primeira vez. But once I shutdown the pc and restart it a while later, i was unable to logon via a login page i had bookmarked. Mas uma vez eu desligar o computador e reiniciá-lo um pouco mais tarde, eu era incapaz de logon através de uma página de login que eu tinha marcado.

    I tried running the setup.bat once more and it kept saying: Eu tentei correr o setup.bat mais uma vez e ele continuou dizendo:
    Sorry cannot find php.cli Desculpa não conseguir encontrar php.cli
    Must abort these process! Deve abortar estas processo!

    When i open xampp_start: could not open default file – mysql\bin\my.cnf Quando eu xampp_start abertos: não pôde abrir arquivo padrão - mysql \ bin \ my.cnf

    I am not sure whats wrong or how to fix it. Não sei o que é errado ou como corrigir o problema. Any pointers? Any pointers?

  • Sumesh says: Sumesh says:

    @Mitra: That's got me stumped. @ Mitra: Isso me deixa perplexo. I've installed XAMPP+WP on two different computers, and nothing's wrong. Eu instalei o XAMPP + WP em dois computadores diferentes, e nada está errado. Are you sure you did not turn off any services?(Start>Run>msconfig, and click enter, you'll get a window, click Services tab, and enable all services, restart and try again) Tem certeza que você não desligar os serviços? (Iniciar> Executar> msconfig e clique em entrar, você obterá uma janela, clique na guia Serviços, e permitir que todos os serviços, reinicie e tente de novo)

  • Monika @ The Writers Manifesto says: Monika @ The Writers Manifesto diz:

    Hi Sumesh, Oi Sumesh,

    I also wasn't aware that we can do this. Eu também não estava ciente de que nós podemos fazer isso. And here I am trying to mess around while online. E aqui eu estou tentando mexer enquanto estiver online. Oh …the silly me. Ah ... a silly me. :-) Bookmarked and stumbled! Bookmarked e tropeçou!

    Thank you Obrigado

    Monika Monika

  • Sumesh says: Sumesh says:

    @Monika: Don't mess around online, and especially not on your live blog. @ Monika: Não mexa em linha, e especialmente não em seu blog ao vivo. This method is much better, and many use it for theme/plugin development. Este método é muito melhor, e muitos usá-lo para o tema / desenvolvimento de plugins. And thanks for the stumble. E graças a tropeçar.

  • Monika @ The Writers Manifesto says: Monika @ The Writers Manifesto diz:

    Hi Sumesh, Oi Sumesh,

    I have gotten as far as installing everything as instructed. Tenho ido o mais longe instalar tudo como instruído. :-) It wasn't as hard as expected as I'm no tech geek. Não foi tão difícil como seria de esperar que eu não sou geek tech. But now I'm stuck. Mas agora eu estou preso. How can I upload new themes and stuff via FTP? Como posso carregar novos temas e material via FTP? I don't know the path and the user and password I need to use here. Eu não sei o caminho e usuário e senha eu preciso para usar aqui.

    I'm only familiar with FTP and have no idea on how to use mySQL to upload stuff. Eu só estou familiarizado com o FTP e não têm idéia de como usar o MySQL para carregar o material. Could you please point me in the right direction? Poderia, por favor me aponte na direcção certa? Once I can figure out the right path with FTP (I use SmartFTP) I will be fine. Depois que eu possa descobrir o caminho certo com FTP (eu uso o SmartFTP) eu vou ficar bem.

    Thanks Obrigado
    Monika Monika

  • Sumesh says: Sumesh says:

    @Monika: Its all easy, and you'd feel it funny that it has been under your nose all the while. @ Monika: É tudo fácil, e você sente é engraçado que foi sob seu nariz o tempo todo. Assuming that your wordpress folder is x(usually C)x:\xampplite\htdocs\wordpress\wp-content is the folder which contains plugins, themes and uploads folders. Supondo que a pasta wordpress é x (geralmente C) x: \ XAMPP \ htdocs \ wordpress \ wp-content é a pasta que contém plugins, temas e pastas uploads. Then, just put the themes/plugins to their respective directories, like on the real server. Então, basta colocar os temas / plugins para seus respectivos diretórios, como no servidor real. No FTP, just Windows Explorer (or its No FTP, apenas o Windows Explorer (ou seu Mac Mac equivalent). equivalente).

  • Monika @ The Writers Manifesto says: Monika @ The Writers Manifesto diz:

    Duh…LOL, it does make sense now you mentioned it. Duh ... LOL, faz sentido agora que você mencionou. Naturally it is all stored locally so it would be there. Naturalmente, tudo é armazenado localmente de modo que seria lá. Oh man, sometimes I don't see the trees in the forest. Oh homem, às vezes não vejo as árvores da floresta.

    Thanks Sumesh Graças Sumesh ;-)

    Monika Monika

  • Sumesh says: Sumesh says:

    @Monika: Glad you got it, no prob => @ Monika: Glad you got it, no prob =>

  • fazeetha says: fazeetha says:

    hi sumesh, Sumesh oi,
    i don't know abc's of s/w…i just wanted to have a new theme for my blog in wordpress. Eu não sei ABC do s / w ... Eu só queria ter um novo tema para o meu blog no WordPress.
    i did everything mentioned here and was able to look at the theme that i wanted locally, but i don't have any clue how to have that theme in my wordpress blog. Eu fiz tudo aqui mencionadas e foi capaz de olhar para o tema que eu queria localmente, mas eu não tenho nenhum indício como ter esse tema no meu blog wordpress.
    can u please help me? u pode me ajudar? i know i am dumb…hope u help me. Eu sei que eu sou burro ... hope u help me.

    thanks, obrigado,
    fazeetha. fazeetha.

  • jojo says: jojo says:

    Hello.. Olá ..
    I got an error… Eu tenho um erro ...
    It says that Can’t select database Ela diz que canâ € ™ t selecionar banco de dados

    We were able to connect to the database server (which means your username and password is okay) but not able to select the wordpress database. Fomos capazes de se conectar ao servidor de banco de dados (o que significa seu nome de usuário e senha estiver correto), mas não são capazes de selecionar o banco de dados WordPress.

    Anyone cah help me? Cah Alguém pode me ajudar?

  • Lisa Irby says: Lisa Irby says:

    Awesome instructions! Instruções Awesome! I am so happy I can now test WP on my local machine now. Estou tão feliz agora posso testar WP na minha máquina local agora.

  • Rennie says: Rennie disse:

    Read your tutorial and followed the steps. Leia o tutorial e seguir os passos. When inputting the link: Ao inserir o link: http://localhost/wordpress/wp-admin/install.php http://localhost/wordpress/wp-admin/install.php all I get is a box with an error message “Error establishing a database connection and then a bunch of options of what it could be. tudo que eu tenho é uma caixa com uma mensagem de erro "Erro ao estabelecer uma conexão banco de dados e em seguida um monte de opções do que poderia ser.
    I've been over the instructions with a fine tooth comb, xammp is running (I'm using the full version if that makes a difference), I can get into MySQL etc.etc. Estive durante as instruções com um pente de dentes finos, XAMMP está funcionando (estou usando a versão completa se que faz a diferença), eu posso entrar em MySQL etc.etc.

    Any suggestions what the deal could be? Todas as sugestões que o negócio poderia ser? Really appreciate your help. Realmente aprecio a sua ajuda.
    Thanks, Rennie Obrigado, Rennie

  • Sumesh says: Sumesh says:

    @Rennie: The instructions here are for the smallest XAMPP package, that is XAMPPlite. @ Rennie: As instruções estão aqui para o pacote menor XAMPP, que é xampplite. Hence, these steps may not work for the full version of XAMPP. Assim, estes passos podem não funcionar para a versão completa do XAMPP.

  • Shane Swing says: Swing Shane says:

    Please allow me to share this video tutorial I created on how to Install WordPress Locally using Wamp with your audience. Por favor, permita-me compartilhar este video tutorial que eu criei sobre como instalar o WordPress localmente usando o Wamp com o seu público.

    http://www.youtube.com/watch?v=biQWyBcYSX4 http://www.youtube.com/watch?v=biQWyBcYSX4
    Regards Atenciosamente
    Shane Shane

  • Afiliasi says: Afiliações says:

    I have installed XAMP on my pc. Eu instalei o xamp no meu PC.
    Sometimes its take a long time until the sites is open. Às vezes seu demorar muito tempo até os locais está aberta.
    Would you tell why this happen? Quer dizer por que isso acontece?

    • Sumesh says: Sumesh says:

      If you have external scripts (ads, for example) in the template, each page load would be delayed because of that. Se você tiver scripts externos (anúncios, por exemplo) no modelo, cada carregamento de página seria atrasada por causa disso.

  • Rits says: Rits says:

    Hi All Todas oi

    I see Sumesh is the geek here. Sumesh eu vejo é o nerd aqui. I use wamp. Eu uso o wamp.
    Afiliasi, check your firewall settings – that is the no. Afiliações, verificar suas configurações de firewall - que é o não. 1 reason for slowing down. 1 motivo para abrandar. Allow all privileges. Permitir que todos os privilégios.

  • WebTek says: WebTek says:

    Gd' Day Bloggers… I have XAMPP installed and working with Wordpress on my company Intranet however I would like to streamline the URL for the users. Dia D-us "blogueiros ... eu tenho o XAMPP instalado e funcionando com o Wordpress no meu Intranet da companhia no entanto, gostaria de agilizar o URL para os usuários. I'd like for them to type Eu gostaria que eles tipo http://bsd http://bsd and have it resolve to the Wordpress installation without typing in anything else. e ter que resolver com a instalação Wordpress sem digitar em qualquer outra coisa. I've tried changing/adding a Virtual Host in the appropriate “conf” file with no luck, I still have to type Eu tentei mudar / adicionar um Virtual Host no conf "adequado" de arquivo com sorte, ainda tenho de escrever http://bsd/wordpress http://bsd/wordpress to resolve to the site. Para resolver para o site. ANy suggestions on how to fix this? Todas as sugestões sobre como corrigir isso? Thanks in Advance. Thanks in Advance.

  • § Leave a Reply § Deixe uma resposta