Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing Zend framework with WAMP server

I'm trying to install Zend framework on a WAMP server but it is not working properly.

I downloaded the Zend framework and created the folder in C:\wamp\library\Zend, and then in php.inc I have something like this:

; Windows: "\path1;\path2"
;include_path = ".;c:\php\includes:C:\wamp\library"

Now when I try to run the sample blogger.php it is giving me the following error:

Warning: require_once(Zend/Loader.php) [function.require-once]: failed to open stream: No such file or directory in C:\wamp\www\PHPSample\Blogger.php on line 37

Fatal error: require_once() [function.require]: Failed opening required 'Zend/Loader.php' (include_path='.;C:\php5\pear') in C:\wamp\www\PHPSample\Blogger.php on line 37

Can anyone help me please?

like image 599
jbcedge Avatar asked Mar 31 '09 04:03

jbcedge


People also ask

How do I download and install Zend Framework?

To install the Zend Framework, we must first install the Composer and the latest version of PHP as shown in the following steps. Install Composer − Zend uses Composer for managing its dependencies, so make sure you have the Composer installed on your machine.

How do I install Zend Framework 3 on Windows?

Create your test app (Zend project). Open a cmmand prompt and then go to the "zendframe_work" bin path, where zf.exe exists, then run the image command "zf". After the running this command create the Zend Framework project. Now you will see that your project has been added in your localhost root.

Which command is used to install Zend Framework 2?

The command: composer create-project -n -sdev zendframework/skeleton-application path/to/install always create a ZendFramework 3 app is their is a command to create a project of zendfrmaework 2.

Is Zend Framework in PHP?

Zend is an open source PHP framework. It is pure object-oriented and built around the MVC design pattern. Zend framework contains collection of PHP packages which can be used to develop web applications and services. Zend was started by Andi Gutmans and Zeev Suraski.


2 Answers

On Windows your php.ini should have a section like this:

;;;;;;;;;;;;;;;;;;;;;;;;;
; Paths and Directories ;
;;;;;;;;;;;;;;;;;;;;;;;;;

; UNIX: "/path1:/path2"  
; Windows: "\path1;\path2"

The key is to a) remove the semi-colon at the beginning of the line, and b) add what you need to the path. NOTE: on Windows, paths must be separated by semi-colons, whereas on UNIX they are separated by full colons; Also, Dot means "current directory", so only include it if you want to.

Make sure it looks like this:

;;;;;;;;;;;;;;;;;;;;;;;;;
; Paths and Directories ;
;;;;;;;;;;;;;;;;;;;;;;;;;

include_path = ".;c:\php\includes;c:\wamp\library"
like image 90
lo_fye Avatar answered Oct 07 '22 02:10

lo_fye


Zend Installation:- Download Zend Framework

  • Go to Wamp/bin/php/ Create a folder Namely:- Zend_Framework

  • Copy All the Files and Folder of Downloaded Zend Framework.

  • Go to php.ini and find include_path Here you find:- include_path="c:\php\includes" and replace the text between "" from your directory C:\wamp\bin\php\zend_framework\library and Save File.

  • Now Go to Computer Property and Advanced System Setting and Advanced and Environment Variable and select path from system variables and click on Edit and add ; and paste your directory path hare C:\wamp\bin\php\zend_framework\bin

  • Open Command Prompt and go to the www directory inside wamp and then type zf create project Zendy

  • Now go to httpd.conf file and type there <virtualHost></virtualHost> Tags.

<virtualHost 127.0.0.1> DocumentRoot "C:\www\Zendy\public" ServerName Zendy <Directory "C:\www\Zendy\public"> AllowOverride AuthConfig FileInfo Indexes Limit Options order Deny,Allow Allow from all </Directory> </virtualHost>

  • Save and Quit and go to windows -> System32 -> drivers-> etc-> hosts and Add here your project 127.0.0.1 localhost Zendy

  • Save and Quit and Restart Apache

  • Also set rewrite module via removing ; from php.ini file

like image 45
Puneet Khandelwal Avatar answered Oct 07 '22 01:10

Puneet Khandelwal