This is the first day of the formal learning of PHP, so, want to do here about the environment to build knowledge, combined with the class teacher's notes and their own understanding and problems encountered.
Http://files.cnblogs.com/files/yexiaodoong/%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA.rar
It's important to talk about some of the problems I've encountered in setting up my own environment.
1 1th My first day in the environment, I met the first problem is that I set up Apache and Php,mysql, but how can not link, repeatedly check all the configuration and build process, check all possible errors, found all good, until I came home, Restart the computer, suddenly but can, and then find out Baidu and asked some people just know, in fact, may be the problem of Apache software itself, many times, we in Apache configuration of new things, and then restarted the Apache server, but we thought we restart, Then went to run the file, but in fact many times Apache may not restart, so that we can not run properly, so here are recommended two solutions, you can choose Stop First, and then start, the second is can use CMD run.
2 in the configuration of Apache, we will open a 80 port in his profile httpd.conf, 1 ServerName localhost:80, maybe a lot of people will start to have the same problem with me, we go to open this port for what ah? In fact, Apache is working through the open 80 port, only this port is open, from the browser or some other requests will be sent to the Apache server accurately.
3 I have already configured the PHP module in Apache, but I also want to copy this file to the module in Apache , Not one by one, right?
The understanding of this problem is that when I configure the module file, I found that the module in the configuration file and module file is one by one corresponding, I think is not to work properly, we loaded in the configuration file of the module's entry and also need to copy the module file into the modules file! Obviously the answer to this question whether, we in the configuration file as long as the loading of this meter fast entry can be, do not need to say the file copied to the module file!
4 (focus) actually set up the environment is not the most important thing, many times, we only know how to set up the principle of the environment can be roughly, but the more important point, but also we often use behind the thing is to configure the virtual host! Because we may have some projects to run in the back, we do not have to rebuild the environment, but the configuration of virtual host is necessary, so I hope that a good account of how to configure the virtual host!
Software to build the environment: Link: HTTP://PAN.BAIDU.COM/S/1QXHUCFA Password: gh54
Environment Construction--apache,mysql,php