Zend Configuration for localhost or local machine
zend, which is a great PHP framework doesn’t provide any installable component untill you install Zend server on your server. Below is the directory structure of a zend project.
To successfully run a Zend framework based project you must configure project such that all the libraries should be included as per Zend configuration setting. One of the major configuration prior to run the project is your application should point public folder of the project.
To do this you just need to add a new virtualhost into your local server. This virtual server should be added to httpd.conf files which is server configuration file.To Read more about <a href=’#’> virtualhost entry into httpd.conf on linux and windows machine</a> click here.
Below are the lines needs to be added to your httpd.conf file.
Listen 8091 <VirtualHost *:8091> DocumentRoot "/var/www/html/project/public" </VirtualHost>
After adding above line to your httpd.conf file of your server. You must need to restart the server. After restarting the server you can simply. Open http://localhost:8091/ to view your project.
This is the way you can rid on Public folder configuration in Zend.
Latest posts by Chandra Shekhar (see all)
- Best practices for micro service design - January 23, 2022
- Spring Boot - January 23, 2022
- Java - January 23, 2022