{"id":21405,"date":"2023-09-07T11:35:25","date_gmt":"2023-09-07T09:35:25","guid":{"rendered":"https:\/\/wpbeveiligen.nl\/?p=21405"},"modified":"2023-07-12T11:38:53","modified_gmt":"2023-07-12T09:38:53","slug":"installing-a-wampserver-windows","status":"publish","type":"post","link":"https:\/\/wpbeveiligen.nl\/en\/installing-a-wampserver-windows\/","title":{"rendered":"Installing a wampserver (Windows)"},"content":{"rendered":"

A wamp server allows you to test web applications such as WordPress. <\/strong>
\nWordPress runs on PHP & MySql.<\/strong><\/p>\n

We take you through a few steps on how to set up an environment so that you can experiment with WordPress, or set up a website without having to do this on your hosting environment.<\/p>\n

Some advantages of a WAMP environment:<\/p>\n

    \n
  1. You don’t need any FTP software to put the files online<\/li>\n
  2. It all works a lot faster<\/li>\n
  3. A WAMP environment is complete with phpmyadmin<\/li>\n<\/ol>\n

    We set up the\u00a0WAMP specifically to test security issues that we do not want to test on the server at the web host.
    \nWe also do this on a virtual machine, but that aside.<\/p>\n

    Download WAMP<\/h2>\n

    We download the WAMP software at this website<\/a>.
    \nThe installation is self-explanatory.<\/em><\/p>\n

    After installation you will still be able to choose which browser and text editor you prefer. We prefer to use Chrome and Notepad++<\/a><\/p>\n

    Using wamp<\/h2>\n

    \"WampServer\"<\/p>\n

    Wamp opens after installation with a modest icon in the taskbar. Actually you don’t notice it and you’re waiting for a home screen \ud83d\ude09
    \nWith your left mouse button you click on the icon in your taskbar and then a menu appears that can give you a headache as a newcomer.<\/p>\n

    But don’t run away just yet! It’s simpler than it seems.<\/p>\n

    What you see<\/h2>\n
      \n
    1. Localhost<\/strong>
      \nThis is the “web address” where your website can be found.<\/li>\n
    2. Phpmyadmin
      \n<\/strong>This is a tool to manage your database.<\/li>\n
    3. Admin
      \n<\/strong>Also a database management tool.
      \nSidenote: Some
      claim<\/a> that Adminer is better than Phpmyadmin.<\/li>\n
    4. Your virtual hosts
      \n<\/strong>That is if you have multiple “websites”. I never use either.<\/li>\n
    5. WWW Directory
      \n<\/strong>The folder where you will place
      WordPress<\/a>.<\/li>\n
    6. Apache
      \n<\/strong>That’s what PHP runs on, don’t change anything.<\/li>\n
    7. PHP
      \n<\/strong>You can change the version of php, think 5.6, or 7.<\/li>\n
    8. MySql
      \n<\/strong>Do nothing about it.<\/li>\n
    9. MariaDB
      \n<\/strong>Do nothing about it.<\/li>\n<\/ol>\n

      As you can see, anything is possible, but you only use (1) the web address, (2) PhpMyadmin & (5) the www directory.<\/p>\n

      It is important that all services<\/em> are on.
      \nMy virtual machine was missing some Microsoft components, which caused Missing DLL errors. I installed that Ge-Googled, downloaded the packages from Microsoft and then I was able to turn on the Apache, MySql and Wamp services.<\/p>\n

      Install WordPress on WAMP<\/h2>\n

      Download WordPress and put it in WAMP<\/strong>
      \nYou download WordPress which you place in the www directory as mentioned in step 5 (From “what you see”). (Unzipped of course, since it will be downloaded as a zip)<\/p>\n

      Start phpmyadmin
      \n<\/strong>You start phpmyadmin (See step 2 of “what you see”)<\/p>\n

      Then you get a username and password in front of you that makes you think: what do I have to enter there again?!
      \nThe internet is full of that question and the answer is:
      \nUser: root
      \nPass: empty, just leave blank. Leave blank.<\/em><\/p>\n

      Create a new database<\/strong>
      \nAfter that, for convenience, you create a new database.<\/p>\n

      \"test<\/p>\n

      Link WordPress to the database
      \n<\/strong>Now you are going to link WordPress to the database so that WordPress will store all the data somewhere there.
      \nTo do this, go to your web browser and enter localhost as the url. (Or click on the Wamp icon and then on (1) localhost)<\/p>\n

      Then you will see the below screen,<\/p>\n

      \"database<\/p>\n

      The data you enter
      \n<\/strong>This is very different from online. Since this website is only visible on your computer, no passwords are required.
      \nThey set it up like this for convenience, you can’t lose the passwords that way and you don’t have to remember them all.<\/p>\n

      As you can see, the database name is the previously created name “test environment”. The username is “root” again.
      \nLeave password field blank.
      \nLeave hostname on localhost.
      \nYou can change the table prefix, this is wp_ by default but I have the habit of changing it to my liking. It doesn’t matter what prefix you put there. If only briefly.<\/p>\n

      You have your own test environment!<\/h2>\n

      Now you have a test environment where you can test WordPress and plugins without slowing down the server. Without the need for FTP software!<\/p>\n

      Ps: If you go to localhost in your favorite browser, you will be the only one who can see the WordPress website.<\/p>\n

      Have fun \ud83d\ude42\"Voorbeeld<\/p>\n

       <\/p>\n","protected":false},"excerpt":{"rendered":"

      A wamp server allows you to test web applications such as WordPress. WordPress runs on PHP & MySql. We take you through a few steps on how to set up an environment so that you can experiment with WordPress, or set up a website without having to do this on your hosting environment. Some advantages […]<\/p>\n","protected":false},"author":4,"featured_media":12907,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[212],"tags":[],"_links":{"self":[{"href":"https:\/\/wpbeveiligen.nl\/wp-json\/wp\/v2\/posts\/21405"}],"collection":[{"href":"https:\/\/wpbeveiligen.nl\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpbeveiligen.nl\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpbeveiligen.nl\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/wpbeveiligen.nl\/wp-json\/wp\/v2\/comments?post=21405"}],"version-history":[{"count":0,"href":"https:\/\/wpbeveiligen.nl\/wp-json\/wp\/v2\/posts\/21405\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wpbeveiligen.nl\/wp-json\/wp\/v2\/media\/12907"}],"wp:attachment":[{"href":"https:\/\/wpbeveiligen.nl\/wp-json\/wp\/v2\/media?parent=21405"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpbeveiligen.nl\/wp-json\/wp\/v2\/categories?post=21405"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpbeveiligen.nl\/wp-json\/wp\/v2\/tags?post=21405"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}