WampServer

Category:

Local WAMP server — a set of distributions and a software shell designed for creating and debugging websites (web applications, other dynamic content of Internet pages) on a local PC (without the need to connect to the Internet) running Windows OS. Installing wamp server on your computer.1. Download WampServer on the official website and just run the installer package. After that, follow the standard steps of installing the program and click Next.

Agree to the license agreement and choose the path where to install the server.

Our local server is successfully installed, you can intentionally use it in the completed work. Next, we’ll tweak it a bit, for more convenient operation. Configuring wamp virtual hosts.
By default, current projects are created in the server directory and usually the path to them goes through localhost/project this is not very convenient for a number of reasons:
— we clog up the directory and over time if there are a lot of projects there will be a dump.
— it is better to use a real name for the project (mysite.com) and set it in a separate folder, if you make a site on WordPress, you will not have to change the urls in the database after.
1.Let’s set up a virtual host mysite.com, to complete this, you need to edit the hosts file.

The location of the file:

c:\Windows\System32\drivers\etc\hosts

2.The second step is to edit the httpd-vhosts.conf file The location of the file:

path_to_wamp\bin\apache\Apache2.4.4\conf\extra\httpd-vhosts.conf

Your version of the Apache folder may differ.Add the line:

path_to_wamp\bin\apache\Apache2.4.4\conf\httpd.conf

The connection string for virtual hosts must be uncommented:

hosServerAdmin "webmaster@yourhost.com"
DocumentRoot "path/to/site/dir"
ServerName mysite.com
ErrorLog "logs/yourhost.com-error.log"
CustomLog "logs/yourt .com-access.log" common
Virtual hosts Include conf/extra/httpd-vhosts.conf

In the file you need to find the lines:
First, we configure the “default” to be a very restrictive set of features.

AllowOverride none 
Require all denied

Replace with:




#AllowOverride none
#Require all denied
Options FollowSymLinks AllowOverride None
for mode_rewrite - All Order deny,allow Allow from all


To find:

#AllowOverride
None Options
None Require
all granted

Replace with:

#AllowOverride None
#Options None
#Require all granted
AllowOverride None / for mode_rewrite - All
Options None
Order allow,deny 
Allow from all

Restart the server and check its performance. That’s how easy it is to set up a virtual host and a local wamp server in a few steps. Good luck.