Question

J'ai installé la dernière version de CakePHP sur une machine Ubuntu 10.10. J'ai pu courir à travers un tutoriel débutant très bien donc je pense que ma configuration est proche d'être correcte. Je ne peux pas cuire le gâteau complètement le travail bien. Ci-dessous ma session. Les choses qui ressemblent à anomolies sont en gras. Je pense que je dois avoir une ou plusieurs petites erreurs dans ma configuration qui manifestons lors de l'exécution de la coque de cuisson. Merci!

ubuntu@myserver.com: ~ $ cd / var / www / app
ubuntu@myserver.com: / var / www / app ../cake/console/cake $ cuire au four -app / var / www / app
Échec du chargement /usr/lib/php5/20090626.so: /usr/lib/php5/20090626.so: ne peut pas ouvrir un objet partagé

fichier: Aucun fichier ou répertoire

Bienvenue sur CakePHP v1.3.2 Console

App: application
Chemin: / var / www / app

interactif Faire cuire Shell

[D] atabase Configuration
[M] odel
[V] IEW
[C] ontroller
[P] rojet
[F] élange
[T] is cas
[Q] uit
Que voulez-vous cuire? (D / M / V / C / P / F / T / Q)

P
Quel est le chemin complet pour cette application, y compris le nom du répertoire de l'application
Exemple: / var / www / app / myapp
[/ Var / www / app / myapp]> / var / www / app
Faire cuire Projet
Répertoire Skel: / usr / share / php / cake / console / templates / skel
Sera copié à: / var / www / app

Regardez bien? (Y / n / q)
[Y]> y
Voulez-vous une sortie verbeuse? (Y / n)
[N]> y

Créé: application dans / var / www / app

/usr/share/php/cake/console/templates/skel/app_controller.php copiés sur

/var/www/app/app_controller.php
/usr/share/php/cake/console/templates/skel/app_model.php à
Copié /var/www/app/app_model.php
/usr/share/php/cake/console/templates/skel/index.php à /var/www/app/index.php
Copié /usr/share/php/cake/console/templates/skel/.htaccess à /var/www/app/.htaccess
Copié /usr/share/php/cake/console/templates/skel/app_helper.php Copié dans /var/www/app/app_helper.php

Création du fichier /var/www/app/views/pages/home.ctp
/var/www/app/views/pages/home.ctp de fichier existe, Overwrite? (Y / n / q)
[N]> y
A écrit /var/www/app/views/pages/home.ctp
Page d'accueil créé
clé de hachage aléatoire créé pour « Security.salt »
Graine aléatoire créé pour « Security.cipherSeed »
Impossible de définir CAKE_CORE_INCLUDE_PATH, vous devez le changer en /var/www/app/webroot/index.php
Impossible de définir des autorisations sur / var / www / app // tmp
chmod -R 0777 / var / www / tmp application //

interactif Faire cuire Shell

[D] atabase Configuration
[M] odel
[V] IEW
[C] ontroller
[P] rojet
[F] élange
[T] is cas
[Q] uit

Que voulez-vous cuire? (D / M / V / C / P / F / T / Q)

q
ubuntu@myserver.com: / var / www / app $

Était-ce utile?

La solution

Mark Murphy,

1.

Failed loading /usr/lib/php5/20090626.so: /usr/lib/php5/20090626.so: cannot open shared object

*.so files are shared libraries. I would try to tackle it be (re-) installing the PHP CLI.

2.

Could not set permissions on /var/www/app//tmp

How could the slash creep in twice? Such a folder should not exist.

Edit0: It is a bit strange, as CakePHP should work right out of the box, but maybe you really should take a look at the specified variable in app/webroot/index.php and see if you can change the CAKE_CORE_INCLUDE_PATH so that the superfluous slash vanishes.

Edit1: For general deployment there is nothing better than this afaik.

Edit2: cake bake help returns: -app Absolute/Relative path to your app folder.

Hence you should call either:

  1. cake bake app /var/www/<your_project_name>/ <---- note the trailing slash or
  2. when in /var/www/ call cake bake app <just_your_project_name>

Edit3: In a nutshell: You could download the CakePHP tar.gz and unzip it in your /var/www/, then rename the folder (having some weird cakePHP-1234... name) into the name of your application, e.g. missioncontrol. Then in your browser: http://localhost/missioncontrol , proceed as instructed. This is a very quick method to get going, but you can develop other methods according to your build process.

After you have developed your app and intend to deploy it on a host different than your local machine, use the link provided under edit1.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top