Nano's Blog

01/23/2010

Kohana Installation Tutorial

Filed under: programming — Tags: , , — nano @ 15:11

Step1.
Download kohana from : http://v3.kohanaphp.com (Version:3.0.3.zip);
Step2.
Uncompress kohana_3.0.3 and copy kohana folder to C:\xampp\htdocs and rename kohana to ‘home’
Step3.
start XAMPP apache service from XAMPP control panel
Step4.
Input: http://localhost/home/index.php
Show error below
cURL Enabled Kohana requires cURL for the Remote class.
Step5.
Open C:\xampp\php\php.ini file and remove ‘;’ from

extension=php_curl.dll in php.ini

Step6.
Restart Apache service.
Step7.
Input: http://localhost/home/index.php again.
Show Your environment passed all requirements.
Remove or rename the install.php file now.

Step8. Rename install.php to other_Name.php
input: http://localhost/home/index.php again.
Show Kohana_Request_Exception [ 0 ]: Unable to find a route to match the URI: home/index.php
Step9.
Open C:\xampp\htdocs\home\application\bootstrap.php
find

Kohana::init(array('base_url' => '/kohana/'));

Modify the /kohana/ to /home/
Step10.
input: http://localhost/home/index.php again.
Show hello, world!
congratulations!

01/14/2010

XAMPP for windows

Filed under: programming — Tags: , , — nano @ 16:32

new version of XAMPP 1.7.3, including:
Apache 2.2.14 (IPv6 enabled) + OpenSSL 0.9.8l
MySQL 5.1.41 + PBXT engine
PHP 5.3.1
phpMyAdmin 3.2.4
Perl 5.10.1
FileZilla FTP Server 0.9.33
Mercury Mail Transport System 4.72

Download and Install XAMPP 1.7.3
Destination folder: c:\

The perl cgi script could located in
C:\xampp\htdocs\hello.cgi (or hello.pl) recommend.
C:\xampp\cgi-bin\hello.cgi (or hello.pl)

Link: http://www.apachefriends.org/en/xampp-windows.html

09/22/2009

Configuring PHP Development Environment in Windows

Filed under: programming — Tags: , , — nano @ 10:05

Installed Packages

xampp-win32-1.7.1-installer.exe            Path: D:\xampp\…

netbeans-6.7-ml-php-windows.exe         Path: C:\Program Files\NetBeans 6.7\…

php_xdebug-2.0.5-5.2.dll                            Path: D:\xampp\php\ext\…

 

Php.ini Configuration

[Zend]

;zend_extension_ts = “D:\xampp\php\zendOptimizer\lib\ZendExtensionManager.dll”

;zend_extension_manager.optimizer_ts = “D:\xampp\php\zendOptimizer\lib\Optimizer”

;zend_optimizer.enable_loader = 0

;zend_optimizer.optimization_level=15

;zend_optimizer.license_path =

; Local Variables:

; tab-width: 4

; End:

+++++++++++++++++++++++++++++++++++++++
If XAMPP1.7.3 instead of XAMPP1.7.1 or 1.7.2
We can’t find [Zend] in php.ini file.
We can only found the line below:

;zend_extension = “C:\xampp\php\ext\php_xdebug.dll”

We should remove ‘;’ from the top line.

zend_extension = “C:\xampp\php\ext\php_xdebug.dll”

 +++++++++++++++++++++++++++++++++++++++

[XDebug]

;; Only Zend OR (!) XDebug

zend_extension_ts=”D:\xampp\php\ext\php_xdebug-2.0.5-5.2.dll”

xdebug.remote_enable=1

xdebug.remote_host=127.0.0.1
or
xdebug.remote_host=localhost

xdebug.remote_port=9000

xdebug.remote_handler=dbgp

xdebug.profiler_enable=1

xdebug.profiler_output_dir=”D:\xampp\tmp”

+++++++++++++++++++++++++++++++++++++++
If XAMPP1.7.3 instead of XAMPP1.7.1 or 1.7.2
We can find a little different in php.ini file.
We can’t find the line below in php.ini file:
zend_extension_ts=”D:\xampp\php\ext\php_xdebug-2.0.5-5.2.dll”

BTW, we still can find the top ‘xdebug’ lines by each block. Then enabled each of these lines.
such as:

; xdebug.remote_enable
; Type: boolean, Default value: 0
; This switch controls whether Xdebug should try to contact a debug client which is listening on the
; host and port as set with the settings xdebug.remote_host and xdebug.remote_port. If a connection
; can not be established the script will just continue as if this setting was Off.
xdebug.remote_enable = 1

; xdebug.remote_handler
; Type: string, Default value: dbgp
; Can be either ‘php3′ which selects the old PHP 3 style debugger output, ‘gdb’ which enables the GDB
; like debugger interface or ‘dbgp’ – the brand new debugger protocol. The DBGp protocol is more
; widely supported by clients. See more information in the introduction for Remote Debugging.
xdebug.remote_handler = “dbgp”

; xdebug.remote_host
; Type: string, Default value: localhost
; Selects the host where the debug client is running, you can either use a host name or an IP
; address.
xdebug.remote_host = “localhost”

etc…
+++++++++++++++++++++++++++++++++++++++
 

Reference:

Configuring PHP Development Environment in Windows

http://www.netbeans.org/kb/docs/php/configure-php-environment-windows.html

Powered by WordPress