This Script Will Simplify Running CakePHP on EasyEngine (Nginx)

cakephp on easy engine

cakephp on easy engine

A few months ago I wrote about Cakephp and nginx running on easyengine. Easyengine is a collection of scripts to facilitate the VPS users to install wordpress and other scripts on a web server nginx. Unfortunately for running Cakephp, it takes one line of the script so that all are running perfectly.

[code tipe=”336″]

Here are the steps to run CakePHP.

  1. Create site with mysql support (ee site create example.com –mysql)
  2. Upload your cakephp website. Or download it with wget command.
  3. Modify cakephp temporary and web root directory in order
    chmod -R 777 /var/www/yoursite.com/htdocs/app/webroot/
    chmod -R 777 /var/www/yoursite.com/htdocs/app/tmp/
  4. This is one line code that very crusial. Open website nginx config file with nano /etc/nginx/sites-available/yoursite.com
  5. Find and change
    root /var/www/yoursite.com/htdocs;
    to
    root /var/www/yoursite.com/htdocs/app/webroot/;
  6. Then restart your nginx server with command
    service nginx restart

Please check your site. This tutorial tested work on cakephp 2.x, I have not tried to version 3.x

[code tipe=”336″]

Please share this article, it will help many developer

One thought on “This Script Will Simplify Running CakePHP on EasyEngine (Nginx)

  1. Crowdsource jobs for your company or business on Freelancer. We provide access to over 18.0 million freelancers with specific skills from around the world without the need to place job ads or provide work space, insurance, etc. Whether you are looking for qualified workers or looking to reduce costs and raise profit, we have the freelancers for you.

    You can hire a freelancer for any kind of job such as: Logo Design, Business Cards, Graphic Design, Website Design, Market Research, Telemarketing, Search Engine Optimization of your Website, Typesetting of Brochures and Catalogues, Translation of Website Content or other Documents and Data Entry.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.