简体   繁体   中英

Install zend framework on xampp

I have created virtual host using hosts file:

127.0.0.1       zend.local

httpd-vhosts.conf

NameVirtualHost *:80

<VirtualHost *:80>
    DocumentRoot "D:/xampp/htdocs"
    ServerName localhost
</VirtualHost>

<VirtualHost *:80>
    DocumentRoot "D:/xampp/htdocs/zendtest/public"
    ServerName zend.local
</VirtualHost>

I am getting this warnings and error in xampp

Warning: require_once(Zend/Application.php): failed to open stream: No such file or directory in D:\xampp\htdocs\zendtest\public\index.php on line 17

Fatal error: require_once(): Failed opening required 'Zend/Application.php' (include_path='D:\xampp\htdocs\zendtest\library;.;D:\xampp\php\PEAR') in D:\xampp\htdocs\zendtest\public\index.php on line 17

I think your ZF library is not inside the 2 include paths. It may be inside D:\\xampp\\php\\ . Just look for a folder named Zend. In that case you have to add D:\\xampp\\php to your include paths which you can do in php.ini file or index.php inside public folder of your project. In case you cannot find Zend folder, you can always download it and save inside library folder in your project (just outside public).

Side note: I usually ignore Zend folder from my version control if it is in project.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM