How to use Bitnami WAMP stack

Source: Internet
Author: User
Tags learn php
Want to learn PHP, find some information on the internet to look at. Introduces a simple and fast method of server building, based on Wamp (Windows+apatch_mysql/mariadb+perl/php/python) architecture. The corresponding also has lamp, this is based on the Linux platform, the same, do not say.

First you need to download a Bitnami installation package, download address: Bitnami installation package Download address


The installation steps are simple and some directories appear after installation:


You can see that the installation package contains a lot of things, Apatche, MySQL, PHP, SQLite and so on ...

For the quick test and not familiar with a PHP Web page to the server, you need to care about apatche2, apps these two folders.

Let's say we want to deploy a test application to the server.

1. First create the directory into the apps, this is necessary, and is the name, location can not be arbitrarily changed. Where the data folder is optional, this example does not contain this folder

Htdocs folder contains pages, CSS, JS and other Web front-end source files; The Conf folder is the name of the configuration file; Data stores

2. Create three configuration files in conf

The HTTP D-APP.COF content is as follows:

 
  
   
      Options +followsymlinks    allowoverride None    
  
   < 2.3="">
       Order allow,deny    
  allow from all    
  
   
    
   = 2.3>    Require all granted    
  
   
 
  
Httpd-prefix.conf content is as follows:
alias/test/"d:\bitnami\wampstack-5.5.26-0/apps/test/htdocs/" Alias/test "d:\bitnami\wampstack-5.5.26-0/apps/test /htdocs "Include" d:\bitnami\wampstack-5.5.26-0/apps/test/conf/httpd-app.conf "
Httpd-vhosts.conf content is as follows:
 
  
   
    ServerName test.example.com  documentroot "D:\bitnami\wampstack-5.5.26-0/apps/test/htdocs"  Include "d:\ Bitnami\wampstack-5.5.26-0/apps/test/conf/httpd-app.conf "                                                                                           
 
  
The three files above, different applications need to be changed according to different needs.

Add a line at the end of the 3.bitnami-apps-prefix.conf file (/installdir/apache2/conf/bitnami/bitnami-apps-prefix.conf):

Include "D:/bitnami/wampstack-5.5.26-0/apps/test/conf/httpd-prefix.conf"
This line is a global declaration of the prefix interpretation file in the app.

4. Add php file, we added two PHP files in demo:

5. Start Bitnami


This article does not cover the configuration of MySQL, and other (such as fastcgi) configurations.

Reference Document: Bitnami PHP Deployment Reference

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

The above describes the use of Bitnami WAMP stack, including aspects of the content, I hope that the PHP tutorial interested in a friend helpful.

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.