How to run an existing CakePHP project in xamp(localhost) - cakephp-3.0

i have been assigned to a new project with Cake PHP to do some modifications on it, the project already exists and i'm having trouble run it, i don't know how to run the project on my xamp local server, should i download cakePHP in the project( if so, how to do it ?) or there are some commands i should run to get the dependencies of CakePHP and run the application ( if so, what are these commands). thanks in advance.

be sure that your php version >= 5.6.0
you should firstly install composer https://getcomposer.org/download/
then create new project by composer read the manual https://book.cakephp.org/3.0/en/installation.html
Or
- download the full project of Cakephp 3.0 https://github.com/cakephp/cakephp/archive/master.zip
- unzip the archive in /xampp/htdocs/

if you haven't, install composer https://getcomposer.org/download/
git bash into the directory then you can composer update
and all you need to do is go to localhost/

Related

How to Install CakePHP Console?

I have a CakePHP 3.8 project hosted on github: https://github.com/paultrimor/pecunia
I can successfully clone the project, run composer install & configure app.php to have the application run.
However; the installation does not create a /bin directory, meaning that I cannot use the Console/Shell.
I am looking to install the Console on an existing CakePHP project
I receive the following message when I win composer install and `composer create-project --prefer-source``
> App\Console\Installer::postInstall
Set Folder Permissions ? (Default to Y) [Y,n]? n
Updated Security.salt value in config/app.php
> App\Console\Installer::postInstall
Set Folder Permissions ? (Default to Y) [Y,n]? n
No Security.salt placeholder to replace.
The first command replaces the "SALT" string to an actual hash in app.php; But, the second command tries to do the same thing, which it cannot.
Any pointers are appreciated. Thanks.
I think you already solved it looking at your repo, but the bin/ folder should be part of your repository. It will not be created with a composer install or composer update command.
If you create a new project using composer create-project cakephp/app --prefer-dist the bin/ executables will be placed. If you don't explicitly ignore it in .gitignore it will be available to all developers.
Step 1 : check PHP Version
php -v
Step 2: Install Composer
step 3: create a new CakePHP application using composer.
composer create-project --prefer-dist cakephp/app projectname
while installing it asking permission for folder just give yes
Set Folder Permissions ? (Default to Y) [Y,n]? Y
it will work.

Install Laravel 5 on Openshift - gives blank page

I installed Laravel 5 on Openshift via Git. Hitting my app (the clean install) in a browser returns a blank page. Any idea what could be the cause?
Here is the URL: http://dev-rogercreasy.rhcloud.com/
Looks like you have old composer. I had the same error. To fix it go to your php dir and update composer.
In my case I gone to folder where placed my php.exe and ran command composer self-update:
cd d:\work\OpenServer\modules\php\PHP-5.5>D:\work\OpenServer\modules\php\PHP-5.5\
composer self-update
After it I gone back to folder with project and composer install command completed without any errors.
Check out the Laravel 5 QuickStart. The QuickStart uses a custom version of the standard OpenShift PHP 5.4 cartridge. The only difference is the included version of Composer has been updated.

How to install ioncube Loader in OpenShift with WorkFlow Guide

I create an Application with following cartridges
- PHP 5.4
- MySQL 5.5
- Phpmyadmin 4.0
What is the full workflow to make the ioncube fully function, and each time I push the repo data won't not deleted / reset?
I do read about
https://www.openshift.com/forums/openshift/how-to-install-ioncube-loader
But not really clear for the step.
Credit to cdaley: https://www.openshift.com/forums/openshift/how-to-install-ioncube-loader
First, you have to have created a gear with the Zend cartridge. (why? because you can go to zend/configuration/etc/php.ini to add the php.ini setting)
ssh into your gear and cd app-root/data
wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
tar -xvzf ioncube_loaders_lin_x86-64.tar.gz
You will end up with a
folder called 'ioncube'
Run echo $OPENSHIFT_DATA_DIR and make note of the output
nano $HOME/zend/configuration/etc/php.ini
Add this line to the END of the file you are editing (this one depend your php version, can be 5.3, 5.4, 5.5 or even latest version)
zend_extension=<OPENSHIFT_DATA_DIR>ioncube/ioncube_loader_lin_5.3.so
Where you replace with the path from Step 6.
Put the loader-wizard.php into your $OPENSHIFT_REPO_DIR/php directory
Exit out of your ssh connection
Run rhc app restart $appname where $appname is the name of your application OR you can restart on the web console.
View the $appname-$domain.rhcloud.com/loader-wizard.php in your browser and it should say that the extension is installed correctly now.

Installing behat with mink on windows using composer

I am trying to install mink/behat on windows machine using composer by following the help given on behat page. http://docs.behat.org/cookbook/behat_and_mink.html.
But when I run
php composer.phar install
then I get the error
But I have composer.json(exactly same as described in behat page) file in mentioned directory. Can someone please guide me how can I install it. Thanks
Composer installs packages on project-base. I don't think you have a PHP project inside C:\Windows\system32...
Navigate to your project by using cd (change dir) and be sure the composer.phar file is automatically loaded in every directory (see this answer).
Then create a composer.json file in which you put the things that is stated in the docs.
After that run composer install (or php composer.phar install, depends on which install method you used).

From Winxp to Win7 Need to reinstall all the Rails gems?

I've switched from a winxp box to a new win7 64bit box and i want to get my rails development project running on it. i can copy my project folder to the new box and now i want to migrate all the gems that i used on my winxp to the win7.
do i need to "gem install" all the gems again on the win7? or i can hv an easier way to do it? pls give details on how to do it.
i want to migrate my schema.rb to the newly installed mysql on the win7. how to do it? i installed aptana studio 3 but the rake and generator functions are no longer available.
thanks
batterhead
1) Do you have Gemfile? If so, just run bundle update command at your project's directory.
2) Run rake db:migrate at your project's directory (assuming you already updated a configuration file)
HTH