Hi,

*1.* Point a virtual host to your web folder 
in xampp\apache\conf\extra\httpd-vhosts.conf:
<VirtualHost *:80>
    ##ServerAdmin postmaster@dummy-host2.localhost
    DocumentRoot "PATH/TO/YOUR/CAKEPHP/ROOT"
    DirectoryIndex index.php index.html
    AccessFileName .htaccess
    ServerName #MYDOMAIN#
    ServerAlias #MYDOMAIN#
    <Directory " PATH/TO/YOUR/CAKEPHP/ROOT ">
        Options Indexes FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
    ErrorLog "logs/#SOMETHING#/error.log"
    CustomLog "logs/ #SOMETHING# /custom.log" combined
</VirtualHost>
*2.* Create a copy of app\Config\database.php.default and rename it to 
database.php then set up your DB configuration. For instance:
<?php
class DATABASE_CONFIG {

public $default = array(
'datasource' => 'Database/Mysql',
'persistent' => false,
'host' => 'localhost',
'login' => 'root',
'password' => 'securepassword',
'database' => 'myhugedatabase',
);
}

*3.* Then start xampp and open localhost in a browser. You should see the 
cake php default start page.
If you rather use some custom domain name instead of localhost you can 
define it in your local DNS file which is located in:
c:\Windows\System32\drivers\etc\hosts 
You must edit this as system administrator and the syntax is as follows:
127.0.0.1    #MYDOMAIN#
Now you can enter  #MYDOMAIN# to your brower and you should see the same 
default start page as I mentioned above.

Hope this will solve your problem.

2012. május 25., péntek 7:48:52 UTC+2 időpontban madhuri yewale a 
következőt írta:
>
> how to run simple hello world cake php program using xampp?
>

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to