Web progamming and database development

Diary of problems and solutions related to web programming, database development and related technologies and platforms.

Agriya Groupon Configuration

Following discussion forum and blogs were helpful for me to configure the agriya groupon clone:

http://support.agriya.com/index.php
http://cookingwithcakephp.blogspot.com/2008/04/installing-cakephp-into-subdirectory.html
http://www.bsntech.com/bsntech-blog-mainmenu-321/computers-mainmenu-281/1671-downgrade-from-php-52-to-php-53-on-ubuntu-lucid-1004.html
http://stackoverflow.com/questions/1217096/problem-installing-cake-php
http://mybookworld.wikidot.com/forum/t-307650
http://forums.agriya.com/showthread.php?t=16792

Change in following code helped to configure the system properly. However, the instruction that was given in the installation guide by agriya has also to be followed to make the things happen
-----------------------------------------------------------------------------
This is due to not properly configured database / php ( php.ini).
For database connection you have to check the /app/config/database.php
First we have to set debug mode 2 in /app/config/core.php
( Configure::write('debug', 2); )

No comments :

Post a Comment

Setting up CakePHP in the Windows Console

Following links were useful while setting up:

http://tv.cakephp.org/video/gwoo/2010/12/24/setting_up_the_cakephp_console_on_windows
http://anvilstudios.co.za/blog/php/setting-up-the-cakephp-console-in-windows-7/

Steps:
1. Download the cakephp framework from cakephp.org
2. Unzip and copy that folder inside C:\wamp\www\
3. Set up the environment variables (In windows 7, Do to My Computer>>Prop>>Advanced system settings>>Advanced>>Environment Variables>>Inside system variables, see the path and click on Edit and add following lines (based on the location of the files and folders) )

C:\wamp\bin\php\php5.2.6\;C:\wamp\www\cakephp1.1.3\cake\console\;
Now the actual line becomes:

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\wamp\bin\php\php5.2.6\;C:\wamp\www\cakephp1.1.3\cake\console\;

Click on Ok and Ok.
Now you are done.
4. Go to console (Run>>Type cmd)
5. Type cake as

C:\Users\Suresh>cake
It will run by showing you up welcome messages with some path scripts.

Now change directory to C:\wamp\www as:
C:\Users\Suresh>cd C:\\wamp\www
C:\wamp\www>cake
Now it shows that cake is running from C:\\wamp\www
Happy Coding!!

No comments :

Post a Comment