Showing posts with label XAMPP. Show all posts
Showing posts with label XAMPP. Show all posts

Thursday, January 6, 2011

Zend Framework on Portable Device Daily Use

The assumption is that you already have installed XAMP on a portable device. If not read my previous article on how to do that.

1) Stop any Apache IIS etc. httpd's on the system listening on port 80. Stop Skype just for any case. Do it from the Apache control Panel or Start->Control Panel->Administrative Tools->Services

2) Stop any running instance of MySQL server Start->Control Panel->Administrative Tools->Services Stop MySQL_Zend... for example

3) Insert your memory stick and make sure it shows up as a device

4) Start a terminal window (console) cmd.exe. Change the drive letter to the one assigned by the system. (for example G:) Type G:

5) type in the console
set PATH=/xampp/php
set ZF_INCLUDE_PATH=/xamp/php/pear
php --help
zf --help
az show version
pear help

make sure all these commands responde properly

you can create project add controllers etc.
zf create project /projects/MyProject
cd /projects/MyProject
zf create module Blog
zf create controller Post -m Blog
...
etc. Check Zend_Tool

6) Start Apache and MySQL by double clicking on the *.bat files from /xampp folder apache-start.bat and mysql-start.bat. You can close the opened by the *.bat files windows.

7) point your browser to 127.0.0.1 or localhost. Use the tools from XAMPP

Tuesday, January 4, 2011

Zend Framework Realy Easy Simple Fast

1) Download and install XAMPP.
2) Start->Accessories->Command Prompt and type
zf create project c:\MyProject
3) Go to XAMPP installation folder and find the file httpd-vhosts.conf
xampp\apache\conf\extra\httpd-vhosts.conf
Add these lines

Listen 10099
<VirtualHost *:10099>
DocumentRoot "c:\MyProject\public"
<Directory "c:\MyProject\public">
Order allow,deny
Allow from all
AllowOverride all
</Directory>
</VirtualHost>

save the file
4) Start Apache from XAMPP Panel or restart it if it is already running to read the configuration file again
5) Point your browser to httP://localhost:10099 You should see the Zend blue new project welcome screen.

For more information read my blog Zend Framework Start in 2 easy steps . It is ready, I may publish it.