It was started, today (third day trying...) it worked but i don't know why,
I believe it worked because I created a table on my database ( !!!!!!! ) this is what i did (if anybody needs this kind of help .... ) : #Installing XAMPP (After downloaded) tar xvfz /home/xxx/Downloads/xampp-linux-1.7.7.tar.gz -C /opt #Set some permissions (dont know if necessary): chown -R xxx.xxx /opt/lampp/phpmyadmin/ chmod -R 775 /opt/lampp/phpmyadmin/ #Start XAMPP /opt/lampp/lampp start #Use phpMyAdmin for creating database (WITH A TABLE !) #Download cakePHP git clone https://github.com/cakephp/cakephp.git /opt/cakes/2.0 cd /opt/cakes/2.0 git checkout 2.0 # Bake !!! cd /opt/lampp/htdocs/ /opt/cakes/2.0/lib/Cake/Console/cake bake #Set tmp permission. chmod -R 777 /opt/lampp/htdocs/myapp/tmp/ Go to localhost/myapp !!!! :D Thank you everybody for helping me !!!! El sábado 10 de marzo de 2012 04:19:56 UTC, andrewperk escribió: > > Also, by any chance maybe you didn't start xamp? > > From the command line: > > sudo /opt/lampp/lampp start > > To stop it: > > sudo /opt/lampp/lampp stop > > Of course if you installed xamp somewhere else you'll need to navigate to > the appropriate location before starting it. Mine is under /opt/lampp > > Andrew > > On Tuesday, March 6, 2012 12:28:26 PM UTC-8, Daniel Carrillo Broeder wrote: >> >> Hi, i'm having lots of problems, i don't know what to do.... >> >> This is what i did : >> >> 1.- Installed XAMP >> 2.- Made a new database (called cake) with phpMyAdmin. >> 2.- Downloaded cakePHP 2.0 >> 3.- Bake ! >> 4.- Set permissions to tmp directory >> >> When I requested "localhost" on chrome everything went ok but "Cake is >> NOT able to connect to the database." >> >> This is my database.php : >> >> public $coffeecake = array( >> 'datasource' => 'Database/Mysql', >> 'persistent' => false, >> 'host' => '127.0.0.1', >> 'login' => 'root', >> 'password' => '', >> 'database' => 'cake', >> ); >> >> (localhost does not work) >> I can successfully access my DB with (shell) :"mysql -h 127.0.0.0.1 -u >> root" and then " USE cake;" >> >> I also tried to modify "php.ini" to add extension=/path/pdo_mysql.so and >> it showed this "Warning: PHP Startup: Unable to load dynamic library >> './usr/lib64/php/modules/pdo_mysql.so' - >> ./usr/lib64/php/modules/pdo_mysql.so: wrong ELF class: ELFCLASS64" >> >> Please I really need help !!!!!!!! >> > -- 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 [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
