1. Install xampp. However, it should be noted that your xampp should be installed on the C drive. The reason is that the php Command is required when Symfony2 is used, and the default php Command path is in c: xamppphp. 2. Configure the php environment: Right-click my computer and choose Properties> advanced> environment variables> system variables (the second box). 1. Create
1. Install xampp. However, it should be noted that your xampp should be installed on the C drive. The reason is that the php Command is required when Symfony2 is used, and the default php Command path of the system is under c:/xampp/php. 2. Configure the php environment: Right-click my computer and choose Properties> advanced> environment variables> system variables (the second box). 1. Create
1. Install xampp: I will not detail it here. HoweverNote that: You 'd better install your xampp on the C drive. The reason is that the php Command is required when Symfony2 is used, and the default php Command path of the system is under c:/xampp/php.
2. Configure the php environment:
My computer-> right-click-> properties-> advanced-> environment variables-> system variables (second box)
1. New: variable name: PHP_HOME, variable value: c:/XAMPP/php (Your php path), OK
2. Modify: Double-click path and add; % PHP_HOME %
Are you sure you want to save
3. Download Symfony2:
Download the Symfony2 zip file on the official Symfony2 website.
Decompress the file and place it in c:/xampp/htdocs. The path should also be based on your own path.
4. Configure the runtime environment of Symfony2:
1. Open the php. ini file. Generally, the following statements are uncommented in the C:/xampp/php Directory or added:
Extension = php_intl.dll
Extension = php_pdo_sqlite.dll
Extension = php_sqlite3.dll
Restart apache.
Note:You may encounter a prompt that intl. dll does not exist. You only need to copy the following files to the bin directory of apache:
- Icudt46.dll
- Icuin46.dll
- Icuio46.dll
- Icule46.dll
- Iculx46.dll
- Icutu46.dll
- Icuuc46.dll
2. Enter the URL http: // localhost/Symfony/web/config. php In the browser. It will prompt you what else to configure. There may be the following three tips:
(1) install APC:
In a http://downloads.php.net/pierre/ or license.
Add extension = php_apc.dll in php. ini.
(2) Change the time zone: date. timezone = Asia/Shanghai
(3) set short_open_tag to On
(2) (3) Change php. ini.
Restart apache.
Refresh your http: // localhost/Symfony/web/config. php page. If there are no other prompts, you can use your Symfony2.
If you encounter any problems during the installation process, you can directly Leave a message, or mail me pinagby@gmail.com.