To learn a language, you must configure its development and running environment. Php development can be performed in any text editor. The runtime environment is an apache server. There are many package components on the market, such as wamp (windows, apache, mysql, php), lamp (linux, apache, mysql, php), and xampp (ApacheMySQLPHPPERL. Fail to learn
To learn a language, you must configure its development and running environment. Php development can be performed in any text editor. The runtime environment is an apache server. There are many package components on the market, such as wamp (windows, apache, mysql, php), lamp (linux, apache, mysql, php), and xampp (ApacheMySQLPHPPERL. Fail to learn
To learn a language, you must configure its development and running environment. Php development can be performed in any text editor. The runtime environment is an apache server. There are many package components on the market, such as wamp (windows, apache, mysql, php), lamp (linux, apache, mysql, php), xampp (Apache + MySQL + PHP + PERL) and so on. However, in the learning stage, you need to understand the principles before talking about them.
To work on projects, you must deal with databases. The ideal php database is mysql. Of course, it also supports other databases. Of course, the container is apache. I think the development stage is better in windows. After all, there is a concept of preemptible.
Preparation tool: php-5.3.28, apache2.2.15, mysql5.5.
Mysql installation is not introduced. Download and install it yourself. The latest php version is 5.5. Why not download it? Because the official php website provides the tar package, that is, you need to compile it yourself. Someone in 5.3 has compiled the msi version and can install it directly. This is also true for apache.
Run php-win.exe to decompress php to the D Drive. a few files will be generated. If php-win.exe is not run, no configuration files such as php. ini-development are available. Rename php. ini-development to php. ini. Open the file, locate row 821, and change it to the following:
; extension_dir = "./"; On windows:extension_dir = "D:\php-5.3.28\ext"
Extension point path. Configure your php installation environment. Because mysql is used, we need to release the mysql module. Locate row 970 and change it to the following:
extension=php_mysql.dll
Remove the semicolon (;). Note that this setting is implemented using the semicolon.
Save and close.
Install apache below. install apache directly. Modify the path. I also installed it on the D Drive. After installation, go to the installation directory. Find the http. conf file under conf. Add the following content:
LoadModule php5_module D:/php-5.3.28/php5apache2_2.dllPHPIniDir "D:/php-5.3.28"
This is the php module loaded, that is, php and apache integration.
Restart the apache server. Create test. php In the htdocs folder and enter the following content:
Enter http: // localhsot in the browser. If it works appears, apache is installed successfully. Enter http: // localhost/test. php. If a lot of php information appears, the integration is successful.
The installation is complete.