WAMP installation for wordpress
Posted by: tchalla2019 (---.bb.sky.com)
Date: July 28, 2019 03:09PM

Hi all
I wanted to install WordPress locally on my machine and I was following the instructions in U tube video provided by LearnWebCode entitled How to Install WordPress (https://www.youtube.com/watch?v=snFzbPm_RUE&list=PLpcSpRrAaOaqMA4RdhSnnNcaqOVpX7qi5&index=3&t=0s)
I got to 8mins and 8s of this 11mins 36 secs video and then hit a problem. I had downloaded all the WAMP files and WordPress ZIP folder and I got as far as moving the WordPress Folder into my C:/ wamp64/www folder.
In my system tray I have the WAMP Icon showing green and saying all services running.
However, when I try to execute the next step in the video which says to navigate to the folder we moved the WordPress folder to using your web browser and typing in 'localhost'. This should then display the index of what is in the folder. No matter what I type in (I've tried localhost, localhost/, localhost:80 - humbly admitting I am not sure why - just following the video). I do not get what is shown in the video, I get web searches instead. Would be very grateful for some advice on how to continue.
Thank you

Options: ReplyQuote
Re: WAMP installation for wordpress
Posted by: Otomatic (Moderator)
Date: July 28, 2019 03:31PM

Hi,

You have to stop believing all the bullshit about CMS installations on a local server. Installing WordPress (Like almost all other CMS or WEB applications) requires less than ten lines of explanatory text and certainly not eight or ten minutes of shitty videos.

And the explanations of installing a CMS, it is at the creator of the CMS that you have to go and get them WordPress Codex, not just any guy who says he's a specialist when his only goal is to show off.

- 1 - Launch PhpMyAdmin to create the database needed for WordPress.
- 2 - Create a VirtualHost for your Wordpress
See The need for Virtual Host and Wampserver 3 - Create or add a VirtualHost

- 3 - Unzip the file from the WordPress distribution into the folder corresponding to the VirtualHost DocumentRoot you created previously.

- 4 - Launch the VirtualHost you created for WordpPress by its ServerName(*) and answer the questions asked by the WordPress installer.
(*)This corresponds to 'http://ServerName/'.

------------------------------------------------------------------------------------------------------------
Wampserver 3.1.9 32 bit - Apache 2.4.41 - PHP 7.3.8/7.2.21/7.1.31/7.0.33/5.6.40 - MySQL 5.7.27 - MariaDB 10.3.16
Wampserver 3.1.9 64 bit - Apache 2.4.41 - PHP 7.3.8/7.2.21/7.1.31/7.0.33/5.6.40 - MySQL 5.7.27/8.0.17 - MariaDB 10.3.16
PhPMyadmin 4.9.0.1 - MysqlDumper 1.24.5
on W10 and W7 Pro 64 bit
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »



Edited 2 time(s). Last edit at 07/28/2019 05:01PM by Otomatic.

Options: ReplyQuote
Re: WAMP installation for wordpress
Posted by: tchalla2019 (---.bb.sky.com)
Date: July 28, 2019 05:38PM

Thanks....I think I managed to follow the instructions up to the edit of the host file. The next comment talks about loopback addresses being in that file (see below). I saw nothing in there other than the text I entered.

Also I am then asked to launch a command window again using run as administrator. So I open notepad ++ and enter the details but then what and where should I save the file. Also the first command line is a '1' and not a '00' as with the other edited files.

Finally I find the httpd.conf file and open it using notepad++ but I cannot see the lines defined in there nor do I understand what wampmanager.exe menus are or where to find it

Can you help?


Note that you should have definitions in here for the IPV4 loopback address `127.0.0.1` and also the IPV6 loopback address `::1` as Apache is now IPV6 aware and the browser will use either IPV4 or IPV6 or both. I have no idea how it decides which to use, but it can use either if you have the IPV6 stack turned on, and most window OS's do as of XP SP3.



Step 3: Uncomment the line in httpd.conf that includes the Virtual Hosts definition file.

Edit your httpd.conf, use the wampmanager.exe menus to make sure you edit the correct file.

Find this line in httpd.conf

# Virtual hosts
#Include conf/extra/httpd-vhosts.conf

Options: ReplyQuote
Re: WAMP installation for wordpress
Posted by: Otomatic (Moderator)
Date: July 28, 2019 06:02PM

Hi,

To create or add a VirtualHost, there is no need to manually edit any file.

Use the tool integrated into Wampserver. It is just necessary that the folder in which you want to put your VirtualHost exists before validating the tool.

Left-Click -> Your VirtualHost -> VirtualHost Management
or
Left-Click -> localhost
then the link Add a VirtualHost

I had put two links to you on explanations, have you read them?
I put them back below:
First link : The need for Virtual Host
Second link : Wampserver 3 - Create or add a VirtualHost

------------------------------------------------------------------------------------------------------------
Wampserver 3.1.9 32 bit - Apache 2.4.41 - PHP 7.3.8/7.2.21/7.1.31/7.0.33/5.6.40 - MySQL 5.7.27 - MariaDB 10.3.16
Wampserver 3.1.9 64 bit - Apache 2.4.41 - PHP 7.3.8/7.2.21/7.1.31/7.0.33/5.6.40 - MySQL 5.7.27/8.0.17 - MariaDB 10.3.16
PhPMyadmin 4.9.0.1 - MysqlDumper 1.24.5
on W10 and W7 Pro 64 bit
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »

Options: ReplyQuote
Re: WAMP installation for wordpress
Posted by: tchalla2019 (---.bb.sky.com)
Date: July 28, 2019 11:20PM

Thanks Again.

I'm thinking that now I may have messed up again.

Before acting on your last message. My WAMP Icon was green with no problem and I could access the 'local host' page from there.

Before your last reply, I had tried following the manual procedure mistakenly and not realising the creation of the local host was much simpler. So I had created a folder in wamp64/www called Folder .

Then using your last response, I read the material you referred me to and set about following the instructions in
Wampserver 3 - Create or add a VirtualHost.
I created the site folder in the root directory c: and called it wordpressapache.
I got to the 'add virtual host' page via the WAMP icon clicking on 'local host' with no problem.

Then I completed the form (not being cognisant that when doing the manual process I must have created a folder already in the WAMP64/www folder and it showed this on the form as well as the name of the folder called folder1) but I still put the name of the new folder 'wordpressapache' and its location (csmiling smiley and clicked submit. I then clicked on (Right-Click Wampserver Icon -> Wamp Parameters -> VirtualHosts submenu) as in the instructions. Nothing happened but then when I try to access 'local host' via the WAMP icon. It tells me that access is forbidden so now I cannot access this.


Will I need to do a uninstall or do you think my situation is recoverable?


Summary : I have a folder in WAMP64/www called folder 1. I have a folder in c: called wordpressapache. both were on the form I submitted. And now I can no longer access 'local host' via the WAMP icon. Although the ICON is still showing green


Thanks

Options: ReplyQuote
Re: WAMP installation for wordpress
Posted by: Otomatic (Moderator)
Date: July 29, 2019 09:08AM

Hi,

- Result of :
Right-Click -> Tools -> Show VirtualHost examinated by Apache

- Content of httpd-vhosts.conf file
Left-Click -> Apache -> httpd-vhosts.conf

Are you sure you have restored the httpd.conf file to its original state after the changes you made?

------------------------------------------------------------------------------------------------------------
Wampserver 3.1.9 32 bit - Apache 2.4.41 - PHP 7.3.8/7.2.21/7.1.31/7.0.33/5.6.40 - MySQL 5.7.27 - MariaDB 10.3.16
Wampserver 3.1.9 64 bit - Apache 2.4.41 - PHP 7.3.8/7.2.21/7.1.31/7.0.33/5.6.40 - MySQL 5.7.27/8.0.17 - MariaDB 10.3.16
PhPMyadmin 4.9.0.1 - MysqlDumper 1.24.5
on W10 and W7 Pro 64 bit
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »

Options: ReplyQuote
Re: WAMP installation for wordpress
Posted by: tchalla2019 (---.bb.sky.com)
Date: July 29, 2019 10:49AM

Hi

I did not restore the httpd.conf file to its original state after the changes I made. Is there a way of recalling what was originally in the file to restore back to original state? thanks

below are the results from the actions in your last message

Right-Click -> Tools -> Show VirtualHost examinated by Apache


VirtualHost configuration:

AH00112: Warning: DocumentRoot [C:/wamp/www] does not exist
AH00112: Warning: DocumentRoot [C:/wamp/www/project1] does not exist



Default server: localhost
Virtual Host: localhost
Virtual Host: project1
Virtual Host: wordpressapache


-------------------------------------

- Content of httpd-vhosts.conf file
Left-Click -> Apache -> httpd-vhosts.conf


<VirtualHost *:80>
DocumentRoot "c:/wamp/www"
ServerName localhost
ServerAlias localhost
<Directory "c:/wamp/www">
AllowOverride All
Require local
</Directory>
</VirtualHost>


<VirtualHost *:80>
DocumentRoot "c:/wamp/www/project1"
ServerName project1
<Directory "c:/wamp/www/project1">
AllowOverride All
Require local
</Directory>
</VirtualHost>


#
<VirtualHost *:80>
ServerName wordpressapache
DocumentRoot "c:"
<Directory "c:/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>



thanks

Options: ReplyQuote
Re: WAMP installation for wordpress
Posted by: Otomatic (Moderator)
Date: July 29, 2019 11:25AM

Hi,

> Is there a way of recalling what was originally in the file to restore back to original state?
No.
It is up to you to make backups of the files before making any changes.
This is the first rule of all computer work.

Considering all the other problems, such as the file httpd-vhosts.conf which, again, is not the original file, or the creation of VirtualHost which was not performed by the integrated Wampserver tool, and other errors like C: which cannot be DocumentRoot, the easiest way would be to perform a global uninstallation of Wampserver and then a reinstallation of Wampserver 3.1.9.

------------------------------------------------------------------------------------------------------------
Wampserver 3.1.9 32 bit - Apache 2.4.41 - PHP 7.3.8/7.2.21/7.1.31/7.0.33/5.6.40 - MySQL 5.7.27 - MariaDB 10.3.16
Wampserver 3.1.9 64 bit - Apache 2.4.41 - PHP 7.3.8/7.2.21/7.1.31/7.0.33/5.6.40 - MySQL 5.7.27/8.0.17 - MariaDB 10.3.16
PhPMyadmin 4.9.0.1 - MysqlDumper 1.24.5
on W10 and W7 Pro 64 bit
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »

Options: ReplyQuote
Re: WAMP installation for wordpress
Posted by: tchalla2019 (---.bb.sky.com)
Date: July 29, 2019 02:39PM

Thanks
I have now reloaded WAMP and it is working.
I will now follow the instructions you provided - wampserver3 - create or add a virtual host
My only question is: once I create the site folder in c: or in c:/wamp64/www, what do I do about WordPress itself? I downloaded the ZIP files previously. Do I put them in any folder or link them in any way with the procedure above, or does the installation of wordpress come after I complete the above?

thanks for all your help so far

Options: ReplyQuote
Re: WAMP installation for wordpress
Posted by: Otomatic (Moderator)
Date: July 29, 2019 03:16PM

Hi,

> I create the site folder in c: or in c:/wamp64/www,
Where you want, but it MUST be a folder, not a disk.
So : c:/wamp64/www/wordpress/ or c:/wordpress/ or what folder name you want, but without spaces or diacritics characters.
The folder name is completely independent of the ServerName name, i.e. the name of your local site.

Then you create the VirtualHost

Then you unzip the wordpress into the folder you have created

Then you create a database for your wordpress

Then you launch your VirtualHost by its ServerName.

------------------------------------------------------------------------------------------------------------
Wampserver 3.1.9 32 bit - Apache 2.4.41 - PHP 7.3.8/7.2.21/7.1.31/7.0.33/5.6.40 - MySQL 5.7.27 - MariaDB 10.3.16
Wampserver 3.1.9 64 bit - Apache 2.4.41 - PHP 7.3.8/7.2.21/7.1.31/7.0.33/5.6.40 - MySQL 5.7.27/8.0.17 - MariaDB 10.3.16
PhPMyadmin 4.9.0.1 - MysqlDumper 1.24.5
on W10 and W7 Pro 64 bit
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »

Options: ReplyQuote
Re: WAMP installation for wordpress
Posted by: tchalla2019 (---.bb.sky.com)
Date: July 29, 2019 05:03PM

Hi

just for clarity
I created the site folder in www and called it wordpress as you did above
but in the 'create virtual host' form, it states at the top the following:

VirtualHost already defined:

ServerName : localhost - Directory : c:/wamp64/www

then it asks for two mandatory fields to be completed
1. name of the virtual host - not sure what name should be used here?

2 absolute path of virtual host folder. This I assume is c:/wamp64/www/wordpress

can you confirm. thanks

Options: ReplyQuote
Re: WAMP installation for wordpress
Posted by: Otomatic (Moderator)
Date: July 29, 2019 06:17PM

Hi,

> VirtualHost already defined:
Because the ServerName you want to use already exists in hosts file.

Exit Wampserver without creating VirtualHost then clean up hosts file :
C:\Windows\System32\drivers\etc\hosts
there will be only:
127.0.0.1 localhost
::1 localhost

After cleaning, launch Wampserver and go to VirtulaHost management.

> 1. name of the virtual host - not sure what name should be used here?
What you want (No spaces, no underscore_). It can be "mywordpress", "tchalla2019-wordpress", "mysite", etc. (Without the quotation marks)
This is the name you will put in the browser to go there, like 'http://mywordpress/'.

> 2 absolute path of virtual host folder. This I assume is c:/wamp64/www/wordpress
Yes

------------------------------------------------------------------------------------------------------------
Wampserver 3.1.9 32 bit - Apache 2.4.41 - PHP 7.3.8/7.2.21/7.1.31/7.0.33/5.6.40 - MySQL 5.7.27 - MariaDB 10.3.16
Wampserver 3.1.9 64 bit - Apache 2.4.41 - PHP 7.3.8/7.2.21/7.1.31/7.0.33/5.6.40 - MySQL 5.7.27/8.0.17 - MariaDB 10.3.16
PhPMyadmin 4.9.0.1 - MysqlDumper 1.24.5
on W10 and W7 Pro 64 bit
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »

Options: ReplyQuote
Re: WAMP installation for wordpress
Posted by: tchalla2019 (---.bb.sky.com)
Date: July 29, 2019 06:48PM

Hi


I completed the instructions you gave:
Then you create the VirtualHost
Then you unzip the wordpress into the folder you have created
Then you create a database for your wordpress
Then you launch your VirtualHost by its ServerName.

I launched the browser and typed in localhost but it just returned the wamp server page which shows at the bottom tools, your projects, your aliases, your virtual host.

So I then tried localhost/wordpresso. Which was the folder I created to put the unzipped wordpress folders into and also the one I defined as the path in the virtual path on the create virtual site form. It then gave me what I expected. the index page. So I think this is cracked. Thanks very much. Not sure what the next steps are but I will read some wordpress docs to find out
thanks again

Options: ReplyQuote
Re: WAMP installation for wordpress
Posted by: Otomatic (Moderator)
Date: July 29, 2019 07:45PM

Hi,

> I launched the browser and typed in localhost but it just returned the wamp server page which
> shows at the bottom tools, your projects, your aliases, your virtual host.

If everything went well, according to the procedure for creating a VirtualHost, under the title "Your VirtualHost", you should see:

wordpresso

or the name you gave as ServerName to your WordpPress installation, then simply click on wordpresso to launch your local site.

You can also use the menu integrated in the Wampmanager icon:
Left-click -> Your VirtualHost -> wordpresso

------------------------------------------------------------------------------------------------------------
Wampserver 3.1.9 32 bit - Apache 2.4.41 - PHP 7.3.8/7.2.21/7.1.31/7.0.33/5.6.40 - MySQL 5.7.27 - MariaDB 10.3.16
Wampserver 3.1.9 64 bit - Apache 2.4.41 - PHP 7.3.8/7.2.21/7.1.31/7.0.33/5.6.40 - MySQL 5.7.27/8.0.17 - MariaDB 10.3.16
PhPMyadmin 4.9.0.1 - MysqlDumper 1.24.5
on W10 and W7 Pro 64 bit
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »

Options: ReplyQuote
Re: WAMP installation for wordpress
Posted by: tchalla2019 (---.bb.sky.com)
Date: July 29, 2019 09:28PM

Hi there
thought I was done in that I am able to access my virtual directory via the web browser by typing in localhost/wordpresso. Which was the local folder I created and the one which contains the extracted ZIP files for wordpress. There are 3 root folders when extracted (wp -admin, wp - content and wp - includes).
when I use the browser and type in localhost/wordpresso it returns:

=================================================
Index of /wordpresso

Name Last modified Size Description
-------------------------------------------------------------------
Parent Directory
wordpress/ 2019-07-29 17:30

-------------------------------------------------------------------
Apache/2.4.39 (Win64) PHP/7.2.18 Server at localhost Port 80


then when I click on 'wordpress' from there, it just reveals the sub directories. Do you know how I actually get wordpress set up to run...….apologies for the continuing questions

thanks

Options: ReplyQuote
Re: WAMP installation for wordpress
Posted by: RiggsFolly (Moderator)
Date: July 29, 2019 09:34PM

Yea. You read the WordPress documentation

This is not a wordpress support site

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.1.8 32bit & 64bit)
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.16>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your MySQL databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: WAMP installation for wordpress
Posted by: Otomatic (Moderator)
Date: July 30, 2019 11:19AM

Hi,

WordPress Codex url already given previously.

------------------------------------------------------------------------------------------------------------
Wampserver 3.1.9 32 bit - Apache 2.4.41 - PHP 7.3.8/7.2.21/7.1.31/7.0.33/5.6.40 - MySQL 5.7.27 - MariaDB 10.3.16
Wampserver 3.1.9 64 bit - Apache 2.4.41 - PHP 7.3.8/7.2.21/7.1.31/7.0.33/5.6.40 - MySQL 5.7.27/8.0.17 - MariaDB 10.3.16
PhPMyadmin 4.9.0.1 - MysqlDumper 1.24.5
on W10 and W7 Pro 64 bit
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »

Options: ReplyQuote


Sorry, only registered users may post in this forum.