Git Product home page Git Product logo

cakephptest's Introduction

cakephpTest

Cake php basic configuration

####Set configuration -Make a folder under /app/ as name 'tmp' and run command in terminal

chmod 777 /var/www/test/cakephp-basic/app/tmp -R

-Change in app/Config/core.php to 'Security.salt' value like DYhG93b0qyJfIxfs2guVoUubWwvniR2G0FgaC9mi2014

-Change in app/Config/core.php to 'Security.cipherSeed' value like 768593096574535424967496836452014

####Create a host in nginx -Set virtual host on /etc/nginx/site-available/default See http://book.cakephp.org/2.0/en/installation/url-rewriting.html or copy bellows code and set root to /app/webroot (here my domain is cakephpbasic.dev and root folder isn cakephp-basic)

 	server {
 		listen 80;
 		server_name cakephpbasic.dev;
 		root /var/www/test/cakephp-basic/app/webroot;

 		access_log /var/log/nginx/cakephp-basic.access.log;
 		error_log /var/log/nginx/cakephp-basic.error.log;

 		location / {
 			index index.php;
 			try_files $uri $uri/ /index.php?$args;
 		}

 		location ~ \.php/?(.*)$ {
 			fastcgi_connect_timeout 300s; # default of 60s is just too long
 			fastcgi_read_timeout 300s; # default of 60s is just too long
 			fastcgi_pass unix:/var/run/php5-fpm.sock;
 			fastcgi_index index.php;
 			include fastcgi_params;
 			fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
 		}
 		#Access phpmyadmin
 		location /phpmyadmin {
 			root /usr/share/;
 			index index.php index.html index.htm;
 			location ~ ^/phpmyadmin/(.+\.php)$ {
 				try_files $uri =404;
 				fastcgi_pass unix:/var/run/php5-fpm.sock;
 				include fastcgi_params;
 			}
 		}

 	}


-Set host ip in /etc/hosts

127.0.1.1	cakephpbasic.dev

cakephptest's People

Contributors

mahedi2014 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.