CakePHP and MongoDB - php

I am new to cakePHP and MongoDB. I encountered some problem while trying to use the MongoDB plugin for CakePHP.
I encountered these error messages while trying to run the application on my server.
Error: The application is trying to load a file from the Mongodb
plugin
Error: Make sure your plugin Mongodb is in the app\Plugin directory
and was loaded
<?php CakePlugin::load('Mongodb');
I tried looking into the app/plugin folder and it is empty.
Is there anything that I can do to resolve the problem?

Hopefully you've done a few of these steps already, but just in case .. here is the full list:
Step 1: Install a MongoDB server and make sure you can connect with the mongo shell
Step 2: Install the PHP mongo driver
Step 3: Download the cakephp-mongodb plugin
cd my/app/plugins
git clone git://github.com/ichikaway/cakephp-mongodb.git mongodb

Related

How to install Laravel on a web server using using softaculous in CPanel

I want to install Laravel on my web server using softaculous available in my Cpanel but I get the following errors:
The following errors were found :
Could not write the Configuration File app.php
Could not write the Configuration File composer.json.
What might I have done wrong?
You are trying to update some files within your laravel application. The problem is that you don't have the right to do so.
What you could do is:
1. Check the file permissions and correct them.
2. Connect to your web server over ssh and try to install it.

Unable To Install Symfony Windows 7

I am trying to install Symfony, but unable to find how can we start with symfony with Xampp. I have already tried on google but there is no proper solution for installation and configuration of Symfony.
As I want to edit a project which is already developed using symfony CMS.
Symfony is not a CMS.
If you need to run a symfony app locally, all you have to do is to copy all files into a project subdirectory inside your Xampp (for example htdocs/symfony).
I assume existing project will have a database, so be sure to import your database locally or use external database. You need to tweak your symfony config file: http://symfony.com/doc/current/configuration.html
I am trying to install Symfony, but unable to find how can we start with >symfony with Xampp. I have already tried on google but there is no proper >solution for installation and configuration of Symfony.
As I want to edit a project which is already developed using symfony CMS.
Hi, for begin Symfony is not a CMS but a framework ^^, it's a little bit (alot) different.
For install Symfony WHY use google O_o ----> http://symfony.com/doc/current/setup.html
After, why Xampp ? for windows use Wamp who do the local server it's more performing :/
And if you want you don't have necessary to install symfony if it's an existing project -> just clone it (if he is on github) ... and just open the complete folder with your IDE or text editor.
You can modify the file without problems, (just you can have a prob for use command php bin/console.
Good luck i hope it's answering all you questions :)

how to run a github pulled project with laravel?

i just cloned a project from bitbucket with sourcetree. Now i am trying to run it with laravel. I started my cmd with administrator rights and i am in the right directory of the project. Now when i try to do the 'composer update' command i get this error in my command line :
i know this topic was been discussed before but i couldn't find the answer in them for me. This must have something to do with the fact that me and my friend are making this laravel project together and we are using source tree with bitbucket as a version control system , he can run the project on his computer but when i pull it , it stopped working. Is there annything i need to keep in in mind when using laravel with git ?
I had the same problem when i cloned the repository from github.
what id did is
Composer Install
using the terminal in my app directory. It worked A1!
hope this helps
You may have to use composer install because laravel by default exludes the following directories from git:
/vendor
/node_modules
.env
Which could be causing your error
Another similar question was asked here covering the same error: Laravel 4: Fatal error: Class 'Patchwork\Utf8\Bootup' not found in autoload.php

Yii - could not open input file yiic for Yii 2.0

So I downloaded a yii archive then extracted it into my xampp htdocs folder.
I wanted to create a new app but tutorials show to use yiic when creating new webapps. The problem is no yiic is found, and even in the directory, I do not see any yiic file to execute the program.
Should there be a yiic.bat?
I download Yii version 2.0 for the latest framework.
I also tried creating via Yii version 1.6 and the command worked.
The problem is i cant find yiic on 2.0.
Please run init command after installing YII from composer
sudo php init
It will ask for setting the environment, for beginning select "Development"

Symfony CMF Sandbox mysql

I'm trying to install Symfony CMF with mysql database.
Can somebody tell me step after step how to do it ?
I've already downloaded project and i'm trying to migrate to mysql from sqlite but i don't know how.
There is a tutorial in the doc: http://symfony.com/doc/master/cmf/cookbook/editions/cmf_sandbox.html . look into the file app/config/phpcr.yml that you create in the configuration step.
The database is configured in app/config/parameters.yml. you will have to modify that file to use MySQL. you will then also have to reinitialize the database etc. note if you want to migrate the data from the sqlite install you should export your data to xml before you switch to mysql using app/console doctrine:phpcr:workspace:export /cms

Categories