thunderousity Posted October 29, 2013 Share Posted October 29, 2013 (edited) I'm a complete noob to all the Framework apart from the very basic concept. However I want to learn more so I can use things like Zend Translate. I'm trying to set up an environment on my Win 7 laptop with my current XAMPP 1.8.2 install. After reading various installation tutorials I'm still confused as they all seem to be slightly different - some make it look easy others a lot of configuration is required. Maybe it depends upon your environment. I'm using this tutorial as this seems simplest and is tailored to xampp. http://mattbearman.com/2010/05/18/how-to-install-zend-framework-with-xampp/ I've downloaded and extracted the Zend Framework 2.2.4 Full Package from here http://framework.zend.com/downloads/latest Bearmans instructions tell me to install to the include_path. However this is configured out of the box to the pear folder shown in my php.ini file as include_path=".;C:xamppphpPEAR" I assume I can install the Zend framework to another folder to seperate it from PEAR to the following include_path=".;C:xamppphpZend" Do I keep the PEAR include_path and add both paths or do I replace it with the zend path. I have no intention of using PEAR now or in the future. tbh I don't know that much about it so maybe I am using it but don't know I am? Once I have the include_path sorted how do I know that it is installed correctly. I've seen tutorials that create projects using command line. I've also seen something about a Skeleton application that can be used to get started a little quicker. do I download this as a project? Edited October 29, 2013 by thunderousity Link to comment Share on other sites More sharing options...
thunderousity Posted October 29, 2013 Author Share Posted October 29, 2013 hmmm - Maybe this is the way to install Zend Framework 2 on XAMPP http://www.w3programmers.com/install-zend-framework-2-on-your-wamp-and-xampp-server/ Link to comment Share on other sites More sharing options...
justsomeguy Posted October 29, 2013 Share Posted October 29, 2013 For the include path issue, don't replace existing paths, just add the new path to the existing include path. Each path should be separated by a semicolon. Link to comment Share on other sites More sharing options...
thunderousity Posted October 29, 2013 Author Share Posted October 29, 2013 (edited) Well I'm trying to install the skeleton application as this seems like a good place to start. I'm at home now on Win 8 with my install which I named "ZendApp1" located here C:xampphtdocsZendApp1 I've managed to get to point 13 on here ok so far, however the next steps seem to be confusing. I've tried both options below but none worked, I started and stopped XAMPP at various points but nothing worked - The first site suggests adding this to httpd.conf but the instructions seem biased towards wamp <VirtualHost *:80> ServerName zf2crud.localhostDocumentRoot C:wampwwwzf2crudpublicSetEnv APPLICATION_ENV "development"<Directory C:wampwwwzf2crudpublic>DirectoryIndex index.phpAllowOverride AllOrder allow,denyAllow from all</Directory></VirtualHost> So I tried this site http://austinpassy.com/2012/setting-up-virtual-hosts-wordpress-multisite-with-xampp-on-windows-7/ which suggests editing the hosts file and editing httpd-vhosts.conf file in the following manner - <VirtualHost *>ServerAdmin admin@localhost.comDocumentRoot "C:/xampp/htdocs" # change this line with your htdocs folderServerName localhostServerAlias localhost<Directory "C:/xampp/htdocs">Options Indexes FollowSymLinks Includes ExecCGIOrder allow,denyAllow from all</Directory></VirtualHost> <VirtualHost eateryengine.dev>ServerAdmin admin@localhost.comDocumentRoot "C:/xampp/htdocs/eateryengine" # change this line with your htdocs folderServerName eateryengine.devServerAlias eateryengine.dev<Directory "C:/xampp/htdocs/eateryengine">Order allow,denyAllow from all</Directory></VirtualHost> Any pointers? Edited October 29, 2013 by thunderousity Link to comment Share on other sites More sharing options...
justsomeguy Posted October 29, 2013 Share Posted October 29, 2013 You're not just copying and pasting that into httpd.conf, right, you're changing the paths to what they are on your machine? Link to comment Share on other sites More sharing options...
thunderousity Posted October 29, 2013 Author Share Posted October 29, 2013 You're not just copying and pasting that into httpd.conf, right, you're changing the paths to what they are on your machine? Nope I've changed it according to my environment I've managed to get it working Stopped Apache; I edited the Hosts file and httpd-vhosts.conf Navigate to C:/xampp/apache/conf/extra or wherever your XAMPP files are located. Open the file named httpd-vhosts.conf with a text editor. Around line 19 find # NameVirtualHost *:80 and uncomment or remove the hash. <VirtualHost *:80> DocumentRoot "C:/xampp/htdocs" ServerName localhost </VirtualHost> <VirtualHost *:80> DocumentRoot "C:/xampp/htdocs/mysite" ServerName mysite.localhost <Directory "C:/xampp/htdocs/mysite"> Options Indexes FollowSymLinks ExecCGI Includes Order allow,deny Allow from all </Directory> </VirtualHost> <VirtualHost *:80> DocumentRoot "C:/xampp/htdocs/ZendApp1" ServerName ZendApp1.localhost <Directory "C:/xampp/htdocs/ZendApp1"> Options Indexes FollowSymLinks ExecCGI Includes Order allow,deny Allow from all </Directory> </VirtualHost> 'Hosts' file edited by un-commenting the first 127.0.0.1 line and adding the two lines for my sites like so # localhost name resolution is handled within DNS itself. 127.0.0.1 localhost 127.0.0.1 ZendApp1.localhost 127.0.0.1 mysite.localhost # ::1 localhost Restarted Apache I can now access the sites via http://mysite.localhost and http://ZendApp1.localhost albeit I can only see the file structure for the ZendSkeletonApplication e.g Index of / Link to comment Share on other sites More sharing options...
justsomeguy Posted October 29, 2013 Share Posted October 29, 2013 Can you see an index.php file in there? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now