Monday, May 20, 2013

Zend Framework Installation Step by Step [Verified]

1. Download Zend skeleton app from GitHub and unzip.
2. Put into your server directory e.g. www for wamp, htdocs for xamp etc.
3. Set php path - Right click on My Computer->properties->Advanced system settings->environmet variable->select path from system variable box->edit.
4. Add your php.exe file location with existing line e.g %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\TortoiseSVN\bin;C:\wamp\bin\php\php5.4.3;
5. now open command prompt write command "php composer.phar self-update"
6. write command "php composer.phar install" and wait until auto generating.....completed.
7. Make virtual host by puting some code in to your host config file e.g C:\wamp\bin\apache\apache2.2.22\conf\httpd.conf


NameVirtualHost *:80
<VirtualHost *:80>
ServerName zendApp.localhost
DocumentRoot "C:/wamp/www/zendApp/public"
SetEnv APPLICATION_ENV "development"
<Directory "C:/wamp/www/zendApp/public">
DirectoryIndex index.php
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

8. Find #LoadModule rewrite_module modules/mod_rewrite.so in the same file and remove #
9. save file and restart your server.
10. write localhost on address bar of your browser and get explore yourself in zend world.


More Help: 

https://github.com/zendframework/ZendSkeletonApplication
http://stackoverflow.com/questions/11855067/zend-framework-500-internal-server-error
http://bigemployee.com/zend-framework-2-simple-web-application-crud-using-ajax-tutorial/

Wednesday, May 15, 2013

WAMP error: Forbidden You don't have permission to access /phpmyadmin/ on this


Change the file content of c:\wamp\alias\phpmyadmin.conf to the following.
<Directory "c:/wamp/apps/phpmyadmin3.4.5/">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride all
        Order Deny,Allow
        Allow from all
</Directory>