Home > Backend Development > PHP Tutorial > How to use bitnami WAMP stack

How to use bitnami WAMP stack

WBOY
Release: 2016-08-08 09:21:02
Original
3823 people have browsed it

I want to learn PHP, so I looked for some information on the Internet. Introducing a simple and fast server construction method, based on WAMP (WINDOWS+APATCH_MYSQL/MARIADB+PERL/PHP/PYTHON) architecture. There is also LAMP, which is based on the Linux platform and is very similar, so I won’t go into details.

First you need to download a bitnami installation package, download address: bitnami installation package download address


The installation steps are very simple, after installation, some directories will appear:


As you can see, the installation package contains a lot of things, apatche, mysql, php, sqlite, etc. . .

For quick testing and unfamiliar php web pages to the server, you need to pay attention to the apatche2 and apps folders.

For example, we want to deploy a test application to the server.

1. First create a directory in apps. This is necessary, and the name and location cannot be changed at will. The data folder is optional. This example does not include this folder. The folder stores various web front-end source files such as pages, css, js, etc.; the conf folder stores as the name implies. Configuration file; data stores data

2

. Create three configuration files in conf

httpd-app.cof content is as follows:

<Directory "D:\Bitnami\wampstack-5.5.26-0/apps/test/htdocs">
    Options +FollowSymLinks
    AllowOverride None
    <IfVersion < 2.3 >
    Order allow,deny
    Allow from all
    </IfVersion>
    <IfVersion >= 2.3>
    Require all granted
    </IfVersion>
</Directory>
Copy after login

httpd The content of -prefix.conf 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"
Copy after login
httpd-vhosts.conf contains the following content:
<VirtualHost *:80>
  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"                                                                                           
</VirtualHost>
Copy after login
The above three files need to be changed according to different needs for different applications.

3. 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"
Copy after login
This line is for the app A global declaration of the prefix explanation file.

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

5. Start bitnami

This article is not yet available Involves the configuration of mysql and other (such as FastCgi) configuration.
Reference document: bitnami php deployment reference



Copyright statement: This article is written by the blogger Original articles are not allowed without the permission of the blogger. Reprint.

The above introduces how to use bitnami WAMP stack, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template