Thursday, March 27, 2014

HyperV Error: A Virtual Disk Provider for the specified file was not found

I recently blew an hour trying to attach a VHD inot a HyperV on a new Server 2008 R2 64Bit Standard server but received “A Virtual Disk Provider for the specified file was not found” which was not cool.
The solution was a small registry change as documented http://support.microsoft.com/kb/2013544 
1)    Start Registry Editor.
2)    Visit the following registry key: “HKLM\SYSTEM\CurrentControlSet\Services\FsDepends”
3)    Under the “FsDepends” key, change REG_DWORD value “Start” from “3” to “0”
4)    Restart the computer 

Wednesday, March 5, 2014

Install ZEND Framework 2 on Your WAMP and XAMPP Server



I am a php web application developer; I am working on WAMP Server. I found some difficulties to setup Zend Framework 2.x in my localhost. You may found some difficulties in installing the zend framework 2.x like me, that’s why I have written this article, hope you will found find this article helpful.
  1. Download ZF2 skeleton app from GitHubhttps://github.com/zendframework/ZendSkeletonApplication as a  .zip  format
Zend 2 from git hub2. Extract your ZendSkeletonApplication-master.zip file to your  www directory and Rename the folder as your project name. In my localhost, it’s zf2crud.
3. Go to C:\wamp\bin\php\php5.3.5 or if you use xampp just go to C:\xampp\php and copies the folder path.
4. Right-click on My Computer inside your start-menu and click Properties,
5. Click Advanced tab inside System Properties.
System properties Setting for zend framework   6. Click “Environment Variables” Button and Select “Path” inside your “System variables” Sections. A new window will pop up once again
7. In the lower of the two boxes search for the variable Path and double-click it
Add path for zend framework 2 installation8.  Leave everything as is and just EXTEND the variable by ” ;C:\wamp\bin\php\php5.3.5” or “;C:\xampp\php” (of course adjust your xampp/wamp directory)
Add new system path for install zend framework 2 and run php on CLI
9. Enable your php_openssl Module From your php.ini File
10. Hit ok, ok, ok, start a new CLI (!) and once again check what php -v returns. It should work now.
check php to CLI11. Go to your CLI , change the directory to the project directory. Write command “cd C:\wamp\www\zf2crud” or if you use xampp “cd C:\xampp\htdocs\zf2crud” and press enter
change CLI path to install zend framework12. Now run “php composer.phar self-update” in your CLI
php composer.phar self update 13. After Completing php composer.phar self update now run “php composer.phar install
This will take a while to download and generate autoload files.
zend framework 2 installation
In that mean time, setup the virtual host. assuming that virtual host is zf2crud.localhost
14. Assuming that I’m going to setup a host named zf2crud.localhost and my host files are inC:\wamp\www\zf2crud\public
  1. Click WAMP icon on quick launch then Apache -> httpd.conf to open apache config file.
Change virtual host for zend frameworkd
2. Go to bottom of the file and add following host settings.
1<VirtualHost *:80>
2ServerName zf2crud.localhost
3DocumentRoot C:\wamp\www\zf2crud\public
4SetEnv APPLICATION_ENV "development"
5<Directory C:\wamp\www\zf2crud\public>
6DirectoryIndex index.php
7AllowOverride All
8Order allow,deny
9Allow from all
10</Directory>
11</VirtualHost>
  • And also add this if you already do not have this, this will give access to the localhost as usual
1<VirtualHost *:80>
2
3ServerName localhost
4
5DocumentRoot C:\wamp\www
6
7SetEnv APPLICATION_ENV "development"
8
9<Directory C:\wamp\www>
10
11DirectoryIndex index.php
12
13AllowOverride All
14
15Order allow,deny
16
17Allow from all
18
19</Directory>
20
21</VirtualHost>
For xampp settings Go to your xampp control panel click Config and open Apache (httpd.conf)
change virtula host in xampp server13. Open the windows host file. in my case, C:\WINDOWS\system32\drivers\etc and place
1127.0.0.1 zf2crud.localhost
Finally go http://zf2crud.localhost/ to run your zend framework 2 demo
Zend Framewor 2 Installation
goodgood verygood :)