Re: Cake Bake under Ubuntu

2012-05-25 Thread Mike Griffin
On Fri, May 25, 2012 at 3:06 PM, Max Kiehnscherf
 wrote:
> I've got xampp installed. Is that enough?
>

Do you see mysql in the output from phpinfo() ?

Did you install mysql-server and mysql-client?

Mike.

-- 
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


Re: Cake Bake under Ubuntu

2012-05-25 Thread Max Kiehnscherf


On 25 Mai, 15:22, Mike Griffin  wrote:
>
> Have you got the php mysql packages installed? And mysql-server and
> mysql-client?
>
> Mike.


I've got xampp installed. Is that enough?

-- 
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


Re: Cake Bake under Ubuntu

2012-05-25 Thread Mike Griffin
On Fri, May 25, 2012 at 2:19 PM, Max Kiehnscherf
 wrote:
>
> PHP Fatal error:  Call to undefined function mysql_query() in /home/
> max/akk/cake/libs/model/datasources/dbo/dbo_mysql.php on line 613
>
> Fatal error: Call to undefined function mysql_query() in /home/max/akk/
> cake/libs/model/datasources/dbo/dbo_mysql.php on line 613
> max@max-ubuntu:~/akk/app$
>
> What is the problem here?

Have you got the php mysql packages installed? And mysql-server and
mysql-client?

Mike.

-- 
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


Re: Cake Bake under Ubuntu

2012-05-25 Thread Max Kiehnscherf

On 25 Mai, 08:46, luca capra  wrote:
>
> Don't use sudo. Try:
>
> # cd in your app dir
> cd /home/max/akk/app
> # run cake with the full path, or relative like ../cake/console/cake
> /home/max/akk/cake/console/cake bake
>
> Probably you will need to reset permission
>
> sudo chown max.max -r /home/max/akk

Ok, this works so far, but now i get this error:

Welcome to CakePHP v1.3.14 Console
---
App : app
Path: /home/max/akk/app
---
Interactive Bake Shell
---
[D]atabase Configuration
[M]odel
[V]iew
[C]ontroller
[P]roject
[F]ixture
[T]est case
[Q]uit
What would you like to Bake? (D/M/V/C/P/F/T/Q)
> C
---
Bake Controller
Path: /home/max/akk/app/controllers/
---
PHP Fatal error:  Call to undefined function mysql_query() in /home/
max/akk/cake/libs/model/datasources/dbo/dbo_mysql.php on line 613

Fatal error: Call to undefined function mysql_query() in /home/max/akk/
cake/libs/model/datasources/dbo/dbo_mysql.php on line 613
max@max-ubuntu:~/akk/app$

What is the problem here?

-- 
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


Re: Cake Bake under Ubuntu

2012-05-24 Thread luca capra

Il 24/05/2012 23:35, Max Kiehnscherf ha scritto:

Hello guys,

im pretty new to CakePHP and at the moment im trying to bake a user-
system via the console. I used this tutprial for this:
http://insanityville.com/2010/04/how-to-bake-on-ubuntu-using-cakephp/

But everytime I do "cake bake" i get this Error-message:



Don't use sudo. Try:

# cd in your app dir
cd /home/max/akk/app
# run cake with the full path, or relative like ../cake/console/cake
/home/max/akk/cake/console/cake bake


Probably you will need to reset permission

sudo chown max.max -r /home/max/akk

--
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


Cake Bake under Ubuntu

2012-05-24 Thread Max Kiehnscherf
Hello guys,

im pretty new to CakePHP and at the moment im trying to bake a user-
system via the console. I used this tutprial for this:
http://insanityville.com/2010/04/how-to-bake-on-ubuntu-using-cakephp/

But everytime I do "cake bake" i get this Error-message:

max@max-ubuntu:~/akk/cake/console$ sudo cake bake
[sudo] password for max:


Welcome to CakePHP v1.3.7 Console
---
App : console
Path: /home/max/akk/cake/console
---
What is the full path for this app including the app directory
name?
 Example:/home/max/akk/cake/console/myapp
[/home/max/akk/cake/console/myapp] > /home/max/akk
Bake Project
Skel Directory: /usr/share/php/cake/console/templates/skel
Will be copied to: /home/max/akk
---
Look okay? (y/n/q)
[y] > y
Do you want verbose output? (y/n)
[n] > y
---
Created: akk in /home/max/akk
---
/usr/share/php/cake/console/templates/skel/app_model.php copied
to /home/max/akk/app_model.php
/usr/share/php/cake/console/templates/skel/index.php copied to /
home/max/akk/index.php
/usr/share/php/cake/console/templates/skel/app_helper.php copied
to /home/max/akk/app_helper.php
/usr/share/php/cake/console/templates/skel/.htaccess copied to /
home/max/akk/.htaccess
/usr/share/php/cake/console/templates/skel/app_controller.php
copied to /home/max/akk/app_controller.php

Creating file /home/max/akk/views/pages/home.ctp
File `/home/max/akk/views/pages/home.ctp` exists, overwrite? (y/n/
q)
[n] > y
Wrote `/home/max/akk/views/pages/home.ctp`
Welcome page created
Random hash key created for 'Security.salt'
Random seed created for 'Security.cipherSeed'
Unable to set CAKE_CORE_INCLUDE_PATH, you should change it in /
home/max/akk/webroot/index.php
Your database configuration was not found. Take a moment to create
one.
---
Database Configuration:
---
Name:
[default] >
Driver: (db2/firebird/mssql/mysql/mysqli/odbc/oracle/postgres/
sqlite/sybase)
[mysql] >
Persistent Connection? (y/n)
[n] >
Database Host:
[localhost] >
Port?
[n] >
User:
[root] >
Password:
> 
Database Name:
[cake] > akk
Table Prefix?
[n] >
Table encoding?
[n] >

---
The following database configuration will be created:
---
Name: default
Driver:   mysql
Persistent:   false
Host: localhost
User: root
Pass: 
Database: akk
---
Look okay? (y/n)
[y] > y
Do you wish to add another database configuration?
[n] > n
PHP Fatal error:  Class 'DATABASE_CONFIG' not found in /usr/share/
php/cake/console/libs/tasks/db_config.php on line 260

Fatal error: Class 'DATABASE_CONFIG' not found in /usr/share/php/
cake/console/libs/tasks/db_config.php on line 260





What does that mean?

-- 
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