1. download the Apache version from http://www.apache.org. 2. download the corresponding PHP version from http://www.php.net. 3. download the corresponding php. MVC version from http://www.phpmvc.net. 4. create the directory c: \ www as the Web server directory, and c: \ webapp as the Web root directory
1. download the Apache version from http://www.apache.org.
2. download the corresponding PHP version from http://www.php.net.
3. download the corresponding php. MVC version from http://www.phpmvc.net.
4. create the directory c: \ www as the Web server directory and c: \ webapp as the Web root directory,
You can also define your own directory and modify it as follows.
5. install Apache on c: \ www, open the browser, and enter http: // localhost in the address bar to test whether the installation is successful.
Note: If you have installed other Web servers (such as IIS 5) on your system that Occupy port 80, end the server first.
6. compress php to a directory, for example, f: \ php5.
7. copy the php. ini-dist in the php directory to the system directory. C: \ winnt is renamed php. ini.
8. according to the php version, here is php5. copy the php5ts. dll and libXXX. dll files to C: \ winnt \ system32.
9. open the configuration file httpd. conf of apache. apache is installed under C: \ Program Files \ Apache Group \ Apache2 by default. Therefore, the configuration file is under conf in this directory.
10. find the LoadModule line and enter LoadModule php5_module 'f:/php5/php5apache2. dll 'below (please modify it based on your status)
11. find the AddType line and join AddType application/x-httpd-php. php below.
12. keep the configuration file and open the php. ini file.
13. find doc_root and write your apache web root directory in the quotation marks behind the equal sign, such as doc_root = 'C: \ www'
14. find extension_dir and enter the ext directory address under your php5 directory in the quotation marks behind the equal sign, such as extension_dir = 'F: \ php5 \ ext '. note: php4 is the extension directory.
15. find extension. There are commas (,) in front of these lines, which are annotations. you can see the dll in the ext directory under php5 (php4 is the extension directory, then, remove the preceding comma.
16. keep php. ini and open apache. if there is an error, check the above steps carefully. then write a php file with the following content:
Phpinfo ();
?>
Keep it as test. php and put it in the web root directory. open the browser and enter http: // localhost/test. php to check whether the installation is successful.
Install php. mvc:
1. decompress the downloaded php. mvc file to phpmvc under the web root directory (you can change the name by yourself ).
2. open Main. php under phpmvc and find
$ AppServerRootDir = 'C: \ webapp \ phpmvc '; // no trailing slash
In the middle of the quotation marks, it is the decompressed directory of phpmvc you want to modify.
$ ModuleRootDir = 'C: \ webapp \ phpmvc '; // no trailing slash
The quotation mark is changed to the same as $ appServerRootDir. because it is the main directory of phpmvc
$ OsType = 'windows ';
In the middle of the quotation marks, it is changed to your control system name. its value can only be one of UNIX, WINDOWS, and MAC.
3. keep this file and make sure that the WEB-INF under the c: \ webapp \ phpmvc \ phpmvc-config.data Directory has write permission.
4. open your browser and enter http: // localhost/phpmvc/Main. php in the address bar? Do = stdLogon to test whether the installation is successful. (But I have never succeeded)
5. for more specific installation documentation, please refer to the http://www.phpmvc.net/docs/installIdx.php? Doc = all
6. assume that the Call to a member function on a non-object in \ WEB-INF \ classes \ phpmvc \ utils \ BootUtils is displayed. php error, please first delete the/WEB-INF/phpmvc-config.data file content, and then manually correct the phpmvc-config.xml, such as adding a space (just need to make php. MVC detected that the file has been corrected, need to re-born phpmvc-config.data file ).