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>
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"
<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>
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"
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.