I am a novice php, just contact Zend FRAMEWORK2 Framework, there is a problem has been bothering me, is every time a new Zend2 project, to the Apache server to write a few lines similar to the following code:
ServerAdmin webmaster@dummy-host2.example.com DocumentRoot "D:/Program Files/xampp/htdocs/project/php" ServerName php SetEnv APPLICATION_ENV development ErrorLog "logs/php.com-error.log" CustomLog "logs/php.com-access.log" common
It bothers me that there are some more convenient ways to deal with the great God, and you can run the project on Zend Studio, without having to create a new virtual path each time and repeat the code above.
Hope to understand the ignorance of rookie, grateful!
PS: I was developed using Zend Studio, and it was created with the Zend2 project, and the server was using Apache local server.
Reply content:
I am a novice php, just contact Zend FRAMEWORK2 Framework, there is a problem has been bothering me, is every time a new Zend2 project, to the Apache server to write a few lines similar to the following code:
ServerAdmin webmaster@dummy-host2.example.com DocumentRoot "D:/Program Files/xampp/htdocs/project/php" ServerName php SetEnv APPLICATION_ENV development ErrorLog "logs/php.com-error.log" CustomLog "logs/php.com-access.log" common
It bothers me that there are some more convenient ways to deal with the great God, and you can run the project on Zend Studio, without having to create a new virtual path each time and repeat the code above.
Hope to understand the ignorance of rookie, grateful!
PS: I was developed using Zend Studio, and it was created with the Zend2 project, and the server was using Apache local server.
This is the configuration of Apache Httpd-vhosts
The key is to understand DocumentRoot and servername.
Point servername to 127.0.0.1 in the Hosts file, and you'll be able to access your project through servername.
It is also recommended that Phpstorm be an appropriate IDE