This article mainly introduces how to build your own web server (wamp) under win2008. Friends who need it can refer to it
This time I need to record the process of building a web server.
Script House editor's note: Because of thepictureformat problem, if the picture cannot be displayed, please use thechrome browser to browse it.
The first step is to determine the platform you want to use: this time I am using the windows2008 server version
The second step is to install it manuallyapache, php, etc. But we can download an integrated version of wamp (i.e. apache,mysql, php under windows system).
The installation process of wamp is as follows: (Similar to the default installation, but pay attention to your own installation)
After the installation is completed, generate shortcuts in the desktop andstatuscolumns respectively .
Note: When I ran it for the first time, an errorwas reported. After checking, I found the reason why it could not be opened. It is most likely that it needs to be installed.
After the program is installed and runs correctly, the icon of this version is displayed like this. When it is white, it means that all services are running. If it is red, it means offline. Yellow means that a certain service is not starting properly. Configuration changes are required.
Click the icon to see theConfiguration directory:;
apache’sconfiguration file:;
php’s configuration file:;
The installation path of wamp and the paths of apache, php, and mysql:;
At this point, the basic understanding of wamp is enough, and you can proceed to the next step, that is, the operation of the web page.
There is a directory named www under the wamp directory:
I want to build a simple website for testing. You can use the website you wrote yourself, or you can download the open source cms. Use, here I use the template of Dreamweaver (i.e. dede);
After decompression, there are two documents in it, one is doc and the other is uploads. Copy all the uploads files to the web page where they were previously stored. In the www directory of the file, go to 127.0.0.1/index.php, and you will successfully enter the web page installation interface. The fool-proof method of use is easy to understand at a glance.
What you need to pay attention to is whether you have installed all the permissions and plug-in support it requires when building the website template of Dreamweaver step by step. Then you can set the domain name and so on according to your own preferences.
One more thing, mysql is required here, that is, you need to build a database. Of course, one thing to note is that the default root account database password of mysql in wamp is empty.
Database:
Interlude:
##Before using another open source cms,After placing the relevant filesin the www directory, I found that the zendoptimizer was not installed for analysis, so the web page display was all garbled.
One thing to note here is that zend optimizer supports a lower version of php, and the wamp integrated version of php is at least 5.3 or above, so the garbled characters are after php5.3. What appears is zend loader to parse, so pay special attention to this.The zend loader is installed. It is actually just adl
l file. Put it in this directory, then check the zend loader in the wamp software, and then Add a few sentences to the apache.conf configuration file and At this point, I thought it was OK, but it was not recognized at all and was still garbled, so I decisively gave up on this version of cms. Use dede's latest version of the template and achieve decisive success! Interlude is over! ! Let’s continue. What we are going to talk about next is the configuration of apache. First, open apache.conf and there is a line in it that is the path to the website. Secondly, the default apache configuration only allows access to 127.0.0.1, so we need to change the settings to allow others to access. As shown in the picture: is similar to the configuration as shown below. We can change it to allow from all At this point, our configuration is basically over. Normally, your website can It is used for testing. Of course, it is up to you to set up the website and upload some things yourself, so I won’t go into details. Remember to restart after the configuration is completed for it to take effect!The above is the detailed content of Detailed introduction to building your own web server under win2008. For more information, please follow other related articles on the PHP Chinese website!