Secured WAMP with Aurora on Windows Server Zero MySQL Overhead
WAMP is a Web development platform on Windows that allows you to create dynamic Web applications with Apache2, PHP, and MySQL. This Stack Replaces MySQL with highly available Mysql Compliant Cluster -Aurora.
Enterprises are plagued with problem of maintaining a Mysql Cluster including backup, Security and overhead for administration. Amazon offers Highly scalable, Multiple AZ Mysql Cluster -Aurora. You can just replace Aurora Connection String inplace of Mysql and use. The respective trademarks mentioned in the offering are owned by the respective companies.
Due to the SysPrep of this image, it may take up to 20 minutes to launch.
WAMP is an acronym that stands for Windows, Apache, MySQL, and PHP. It’s a software stack which means installing WAMP installs Apache, MySQL, and PHP on your operating system (Windows in the case of WAMP). Even though you can install them separately, they are usually bundled up, and for a good reason too.
What’s good to know is that WAMP derives from LAMP (the L stands for Linux). The only difference between these two is that WAMP is used for Windows, while LAMP – for Linux based operating systems.
Let’s quickly go over what each letter represents:
- “W” stands for Windows, there’s also LAMP (for Linux) and MAMP (for Mac).
- “A” stands for Apache. Apache is the server software that is responsible for serving web pages. When you request a page to be seen by you, Apache grants your request over HTTP and shows you the site.
- “M” stands for MySQL. MySQL’s job is to be the database management system for your server. It stores all of the relevant information like your site’s content, user profiles, etc. This is replaces with Aurora
- “P” stands for PHP. It’s the programming language that was used to write WordPress. It acts like glue for this whole software stack. PHP is running in conjunction with Apache and communicating with MySQL.
Instead of installing and testing WordPress on your hosting account, you can do it on your personal computer (localhost).
WAMP acts like a virtual server on your computer. It allows you to test all WordPress features without any consequences since it’s localized on your machine and is not connected to the web.
First of all, this means that you don’t need to wait until files are uploaded to your site, and secondly – this makes creating backups much easier.
WAMP speeds up the work process for both developers and theme designers alike. What is more, you also get the benefit of playing around with your site to your heart’s content.
However, to actually make the website go live, you need to get some form of hosting service and a Domain.
In essence, WAMP is used as a safe space to work on your website, without needing to actually host it online.
Whether you use WAMP or software packages for the other operating systems, it’s a great way to save time. You won’t have to upload files to a site and will be able to learn how to develop in a safe and care-free environment.
WAMP Server is a Web development platform on Windows that allows you to create dynamic Web applications with Apache2, PHP, and MySQL.
WAMP is an acronym formed from the initials of the operating system Microsoft Windows and the main components of the package: Apache, MySQL & PHP.
As a reminder, Apache is the most popular open source web server, MySQL is the most popular open-source database, used by huge number of websites around the world (among them, you will find Google, YouTube, Wikipedia, Facebook, Flickr, etc) and PHP is a widely used general-purpose server-side scripting language designed to produce dynamic web pages.
By combining these components into a single installation package, WampServer allows users to set up a server locally on their Windows machine to create dynamic web applications with Apache, PHP and the MySQL database in the same development conditions as on the production server.
Using WAMP as a Development Server
You can use WAMP to develop and test websites locally on their own computer instead of having to get a web hosting account to develop with. Most people will be using WAMP for development purposes such as learning how to create websites with HTML, PHP, and MySQL.
Using WAMP as a Production Server
WARNING: WAMP was designed to be a testing and development server, not an actual production server. WAMP does not come with any real security in place so it offers no protection from any kind of attack. Any 10 year old with access to the internet can easily hack your WAMP server. If your website(s) have hi ghly sensitive data (such as credit card numbers, social security numbers, user ids, passwords, etc.), you need to take this in consideration before your put this information online. Unless you are an experienced system administrator and can configure WAMP to be more secure, you should never user WAMP for a production server.
libMySQL.dll, will not be found later during Apache startup. Finally, enter a proper root password. There is no need to neither enable remote root access or create an Anonymous Account.
libMySQL.dllwill not be found during Apache startup when Apache is trying to load Apache’s PHP module and Apache will, perhaps a bit confusingly, complain that it is unable to load the PHP‘s MySQL library,
php_mysql.dll. Therefore, it is necessary to reboot the system at this stage and then continue to PHP configuration.
C:\Program Files\PHP5and unzip the downloaded package there. Then, in folder
C:\Program Files\PHP5you need to copy the file
php.iniand make two changes into the
extension_dir = "C:/Program Files/PHP5/ext/"
PATHbut for WAMP to operate it is not required. After Apache is installed and configured, also PHP configuration can be tested.
Administrator's Email Addressfield, otherwise Apache will fail to start due to a configuration error. After the installation has finished a tray icon should appear to indicate that Apache server is up and running.
C:\Program Files\Apache Software Foundation\Apache2.2\conf\httpd.confin a text editor and change the following line:
index.phpso that the result will look like:
index.phpby default, if present. Then, add into the same file after all the
LoadModuledirectives the following lines
# Enable PHP5 LoadModule php5_module "C:/Program Files/PHP5/php5apache2_2.dll" AddType application/x-httpd-php .php PHPIniDir "C:/Program Files/PHP5"
PHPIniDir, is crucial, without it Apache will fail to read the PHP configuration file.
C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\test.phpthat contains only the following line:
<?php phpinfo(); ?>
C:\Program Files\PHP5\php.iniand that MySQL has its own section in the configuration details noting that MySQL support is enabled. As could be noticed, the default content location,
DocumentRoot, for Apache to serve content is
C:\Program Files\Apache Software Foundation\Apache2.2\htdocs.
Working With Wamp Server To Create A Database And Host A Website
WAMP Server is a server which is used to host PHP pages. PHP is a server-side scripting language developed by Rasmus Lerdorf.
WAMP stands for – Window Apache MySQL and PHP.
Developed by – Romain Bourdon
Operating system – Windows
Now we are going to discuss the steps for WAMP Server Installation.
WAMP Server download
In this website download WAMP Server 32 BITS & PHP 5.6.15.
On clicking the download link, the following window will open for download. In this click the following.
Figure 1: Direct link to download
After clicking that link the following downloading process window will open.
Figure 2: Downloading Window.
Now your file is downloaded and save that *.exe file in your system drive location.
Figure 3: Save the file
After the file has downloaded the following tray icon file is visible and stored at your system location
Now double click that exe file.
The following window will open
Figure 5: Security warning window for running process
Click Run button and the installation process window will open. First you have to choose the language default as English and then hit ok. Then the step up process wizard will open. In that window click Next button to proceed the installation.
Then the License agreement window will open, click I accept the agreement and then hit next. Next the set up information window will open, then hit next.
The destination location window will open to save where the WAMP folder wants to be located. By default it takes C:\wamp, then hit next and then Install button to install the WAMP Server.
Figure 6: Installation processed window.
After installation click finish button to navigate WAMP Server.
Now the orange color try Icon placed at the start menu is visible.
Figure 7: Tray Icon in orange color
The tray icon is visible in orange because there are two applications running at localhost using same port number, like 80. Left click the tray Icon, select local host and it shows the following window IIS.
If you face the error, then click the link to download the file (VCRUNTIME140.dll) as shown below and paste it into C:\Windows folder
api-ms-win-crt-runtime-l1-1-0.dll (cannot start error means)
Figure 9: IIS7
So now we are going to stop IIS port 80 or we could change the WAMPSERVER LISTEN PORT value 80 to 81 in the following way.
Left click the tray Icon and do the following steps
Figure 10: httpd.conf
After selecting httpd.conf file one notepad window will open and search the text Listen by using CTRL+F.
Figure 11: Listen Port
Here change the listen portfrom 80 to 81.
Right click the tray Icon and choose refresh then left click the icon restart all services. Now your tray icon turned to green. WAMP Server is now ready.
Now left click the icon and choose localhost
The IIS logo window will open in your browser. In your address bar near your localhost mention the following like localhost:81, then the window will appear in the following manner.
Figure 12: WAMP SERVER home page
After installation is completed host a simple PHP website via WAMPSERVER. The following steps to be noted.
The folder of wampis placed into your C:\wamp system location.
In this wamp folder navigate to www root folder and there two files appear; one is index.php and another one is testmysql.php those files are built-in type files.
Now we have to place our sample website folder into that www root directory like the following:
Figure 13: Place website folder into www root directory
Now refresh our localhost in browser and we find our sample website appears under projects title.
Figure 14: Projects
Now click that folder in our browser and our sample project home page will open like this
Figure 15: Sample website home page.
Before you create your database in SQL server try to backup the file in *.sql format. In your WAMP Server home page PhpMyAdmin link appears. Click that link and the database connectivity form will open in the following format.
Figure 16: PHP my admin page
Set the username as root and make empty password column and hit go. The admin page window will open like the following,
Figure 17: php my admin database connectivity page
After the page opens in your right side window, click database and choose to create database.
Figure 18: Database creativity
Now your database will present at left side php mydmin page,
Choose your database and create table or you have to restore your SQL database.
Restore SQL Server database in the following format.
Click import link the following window will open
Figure 20: Import Database
In this window browse your *.sql backup file, choose character set and then hit Go button it takes some time to import so please be patient until the database is imported.
After importing you will get the following message box:
Figure 21: Importing successful window.
Now your website is ready to connect the database and now browse your site in localhost:81
Enter your username and password and then hit to login,
Figure 22: Login page
Major Features Of WAMP with Aurora
- Manage your Apache and MySQL services
- Switch online/offline (give access to everyone or only localhost)
- Install and switch Apache, MySQL and PHP releases
- Manage your servers settings
- Access your logs
- Access your settings files
- Create alias
- Reconfigured WAMP-System with Apache, PHP, MySQL, phpMyAdmin, Mercury/32 Mail-Server and SQLite
- Equally useful for developers as for productive usagee thanks to switchable settings between security- and developer-functionality
- Centralized GUI for all important features of the above applications
- Assistant to operate the applications as a restricted user
- Add-on system for reloading and integration of other applications (such as Tomcat, Python, SVN, etc.) from the network
- 1-Click Installer for popular web applications such as phpBB, WordPress u.v.a.
- Assistant for performance tuning with automatic Evaluation of the System configuraton (number of CPUs, RAM, etc.)
- Editor for the Windows HOSTS file to create “virtual domains”
- dynamic and automatic updates of individual components (Apache, MySQL, etc.) directly from the software
- Focus on a lightweight and fast system – the complete setup consists of only a 33MB file
- Intuitive web interface
- Support for most MySQL features:
- browse and drop databases, tables, views, fields and indexes
- create, copy, drop, rename and alter databases, tables, fields and indexes
- maintenance server, databases and tables, with proposals on server configuration
- execute, edit and bookmark any SQL-statement, even batch-queries
- manage MySQL users and privileges
- manage stored procedures and triggers
- Import data from CSV and SQL
- Export data to various formats: CSV, SQL, XML, PDF, ISO/IEC 26300 – OpenDocument Text and Spreadsheet, Word, LATEX and others
- Administering multiple servers
- Creating PDF graphics of your database layout
- Creating complex queries using Query-by-example (QBE)
- Searching globally in a database or a subset of it
- Transforming stored data into any format using a set of predefined functions, like displaying BLOB-data as image or download-link
AWS Template WAMP on Aurora - WAAP
Secured WAMP with Aurora on Windows Server – Zero Mysql Overhead
Instructions for using installed components with AWS Template for WAMP on Aurora – RDS – WAAP
Note: Please do not choose Single Ami option for First time deployment
A) Application URL: Template Output provides the Application URL as well as Database details.
Access the application via a browser at the load balancer URL which is the WebSiteURL from the template output.
B) RDS Cluster / Aurora Details:
RDS Cluster / Aurora Details can be obtained from the Output of the template.
Please enter the RDS Cluster / Aurora details in the configuration of Database stage.
Details are also available in
C:\Install\Aurora_credentials.txt in the ec2 Instance.
Readme file is present on the Administrator desktop.
C) RDP Connection: To connect to the operating system,
1) Connect to virtual machine using following RDP credentials :
- Hostname: PublicDNS / IP of machine
- Port : 3389
Username: To connect to the operating system, use RDP and the username is Administrator.
Password : Please Click here to know how to get password .
D) Other Information:
1.Default installation path:
Location of Apache Bin : C:\Apache24\bin
Location of PHP: C:\PHP
Location of htdocs: C:\Apache24\htdocs
Location of Aurora Conn Strings: C:\install\Aurora_credentials.txt
- Windows Machines: RDP Port – 3389
- Http: 80
- Https: 443
To begin configuration of WAMP please refer above.
When you open the WebSiteURL you shall see the below screen