Questions tagged [cakephp]

CakePHP is an open source web application framework for producing web applications. It is written in PHP, modeled after the concepts of Ruby on Rails, and distributed under the MIT License.

CakePHP is an open source web application framework for producing web applications. It is written in PHP, modeled after the concepts of Ruby on Rails, and distributed under the MIT License.

Official website

44 questions
4
votes
1 answer

Nginx, memcached and cakephp: memcached module always misses cache

I've got a simple nginx configuration; server{ servername localhost; root /var/www/webroot; location / { set_md5 $memcached_key $uri; index index.php index.html; try_files $uri $uri/ @cache; } location @cache { …
Tim
  • 175
  • 8
4
votes
3 answers

compromised site

So, I have a web site that has been compromised twice in two weeks. every index.php and .js file gets a script injecting into the source code of the file. The problem is that I have no idea how they're doing it. I've seen this done via sql injection…
pinniger
  • 53
  • 4
3
votes
3 answers

PHP cli uses different php.ini file when run by cron

My CakePHP console script is having problems executing under cron. It complains about missing Mysql connections and such. After a little investigating I found that php run by cron uses a different php.ini file compared to when I run it in the…
Jelle De Loecker
  • 1,055
  • 6
  • 16
  • 29
3
votes
1 answer

High CPU usage resulting in server crash

running out of ideas to explore. First off - let me warn you - I'm a programmer, not a systech :) Here is the situation. Dedicated server (LAMP) running a fair amount of sites. mySQL server is on a seperate box. Last couple weeks, performance has…
Ryan
  • 53
  • 1
  • 5
3
votes
3 answers

cakephp & nginx config/rewrite rules

Hi somebody please help me out, I've asked this at stackoverflow as well but not got much of a response and was debating whether it was programming or server related. I’m trying to setup a cakephp environment on a Centos server running Nginx with…
seanl
  • 470
  • 5
  • 13
2
votes
0 answers

Nginx, CakePHP: Error: Create the class Index.phpController below in file: App/Controller/Index.phpController.php

I've config nginx 1.4 for running cakephp 2.6, but it can't work. For every page, for example http://my-app/ or http://my-app/admin it always return the error: Error: Create the class Index.phpController below in file:…
2
votes
1 answer

CakePHP and Wordpress on Nginx PHP-FPM

I'm trying to configure both CakePHP and a wordpress blog on the same server. CakePHP here: http://site.com/ Wordpress blog here: http://site.com/blog/ What works: The whole CakePHP app and going to /blog/. What doesn't work: Going to…
iDev247
  • 751
  • 1
  • 11
  • 23
2
votes
1 answer

Why might POSTing cause a blackhole?

I'm developing an app using CakePHP and have encountered a strange problem: When I POST data to a particular method I get a 0 byte response and a simple 404 error in the access log. psycho953.psych.susx.ac.uk - - [11/Oct/2011:10:17:43 +0100] "GET…
Tom Wright
  • 914
  • 3
  • 12
  • 25
2
votes
1 answer

File "/home/v/s/vsdev/web/public_html/index.php" is not in document root of Vhost "/domains/d/e/dev.vacancysoft.com/web/public_html/"

I've got a dev site running under http://dev.vacancysoft.com/ As you go there you can see the error and I really searched the web for the solution but couldn't find any. It all started with the UID and GUID in suphp.conf. When I changed the values…
2
votes
0 answers

Content Encoding Error on new IIS 7 server with PHP

I recently moved a PHP (Cake framework) development site from an IIS 6 (x86) server to an IIS 7 server (x64). The content is all the same and the URL rewriting works, but on the attempt to display the first page I get this error: Error 330…
Ben Brocka
  • 229
  • 1
  • 4
  • 12
2
votes
4 answers

Remove all files by filename (Linux one-liner)

CakePHP has a convention of putting files called "empty" in empty directories. I'm sure they have a reason, but it really bugs me. (Yeah, OCD, I know...) I want a one-line linux shell command that will delete every file with the name "empty" in…
Tom Wright
  • 914
  • 3
  • 12
  • 25
2
votes
2 answers

.htaccess time on godaddy

I'm trying to run a cakephp application on a godaddy linux account. The problem is that i get the error 500. I've read on cakephp discussion group that i have to edit the .htaccess file. 1) How much do i have to wait until i see the result? 2) More…
dole doug
  • 273
  • 1
  • 5
  • 11
1
vote
1 answer

unable to handle user login sessions with nginx caching

We're having problem with user login sessions, those are caching due to nginx config file. Our application developed in cakephp. It is not possible to stop caching the specific file with nginx. Please find the below nginx conf file and please…
1
vote
1 answer

How can I set up another alias like "localhost" to point to a folder within htdocs?

So I have xampp running, localhost or 127.0.0.1 will take me to htdocs within my xampp folder. Is there a way I can use a similar name such as localhost2 on the same machine to take me to folder, lets say its called localhost2, within htdocs. The…
Parris
  • 329
  • 3
  • 16
1
vote
4 answers

Web hosting for websites developed in cake php

I have developed my website using Cake PHP. Now, I am looking for a good webhost for my website. Cake PHP requires mod_rewrite to be enabled and also some changes might be required in the document root(apache servers). Moreover, cake php has it's…
Adit Gupta
  • 123
  • 5
1
2 3