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.

The following two tabs change content below.

Chandra Shekhar

GCP Architect
Chandra Shekhar Pandey is Google certified Cloud engineer, I am Magento2 Trained developer. Having huge experience in designing cloud solution. I have around 12 years of experience with world enterprise IT companies and fortune 500 clients. During my architecture design I am always caring about high availability, fast performance and resilient system. From the programmer background I have huge experience in LAMP stack as well. Throughout my carrier I have worked on Retail, E-Learning, Video Conferencing and social media domain. The motive of creating cutehits was just to share the knowledge/solutions I get to know during my day to day life so that if possible I can help someone for same problems/solutions. CuteHits.com is a really a very effort for sharing knowledge to rest of the world. For any query/suggestion about same you can contact me on below details:- Email: shekharmca2005 at gmail.com Phone: +91-9560201363

Latest posts by Chandra Shekhar (see all)

You may also like...