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.

Filter by
Sorted by
Tagged with
4 votes
1 answer
2k views

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 $...
2 votes
1 answer
2k views

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 ...
1 vote
0 answers
406 views

Number of MySQL connections spikes, but no spike in number of queries

I am running LAMP stack with CakePHP and MySQL compatible AWS Aurora instance. The Aurora instance is set up with a writer and read replica. Using CakePHP request routing, the read replica is only set ...
0 votes
0 answers
3k views

SQLSRV PDO driver on PHP 5.6 with Docker

I am trying to move a legacy application (CakePHP 2.5.5) running on PHP 5.6 to a Docker container but I can't get the PDO driver for Microsoft SQL Server to work. I have been searching around for ...
-1 votes
1 answer
3k views

Using htaccess change the website default index file from root folder to sub folder, site other pages should still work from root folder

Using htaccess how to change the PHP website default home page ie index.php file from root folder ie "html" to sub folder(say it 'subfolder') but site should still work as before ie the home page will ...
1 vote
1 answer
5k views

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. ...
0 votes
1 answer
468 views

nginx + php5-fpm + cifs share + CakePHP timeout

I recently moved my cakephp 3 dev environment onto a network share. The server in question has only had a path change for the nginx webroot (root /var/www/webroot, to root /mnt/dev/webroot). I am ...
0 votes
3 answers
2k views

PDO ODBC error just resets connection

Trying to write an ODBC PDO driver for CakePHP. Seems like I get closer and closer however whenever a PDO function is called that it doesn't like the connection just gets reset immediately and I'm not ...
2 votes
1 answer
1k views

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....
2 votes
1 answer
2k views

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 ...
0 votes
2 answers
494 views

generated .css file in nginx

I developed on an apache, now I need to deploy on ngix and I ran into some difficulties. Because inline-styles are disabled in my project (with cakephp) and there are some colours defined in the ...
0 votes
1 answer
102 views

Add configuration to handle requests for different locations [closed]

I use cakephp for my projects.I have made local dns in etc/hosts for folders in /var/sites.My nginx config looks like location /{ add_header 'Access-Control-Allow-Origin' '*'; ...
2 votes
0 answers
640 views

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....
-1 votes
1 answer
2k views

how to install cakephp on cpanel? [closed]

I tried to install cakephp om cpanel, but it does not work because of directory sturucture as i think if you provide me with guide line
0 votes
1 answer
1k views

How to use nginx point to different applications while using the same domain

I have 2 cakephp applications: one is using cake 2 and the other is using cake 3. This is my nginx config server { listen 80; client_max_body_size 2M; server_name cake.dev; ...
0 votes
3 answers
204 views

where is cakephp installed ubuntu10.10

I just did apt-get install cakephp and it installed cake php but I have no idea where the root directory is. How can I find that? I'm using ubuntu 10.10
-1 votes
1 answer
1k views

How to stop Nginx sending static file requests to the CakePHP app controller when running Cake in a subdirectory?

I'm trying to run a CakePHP app from within a subfolder on Nginx, but the static files are not being found and are instead being passed to the app controller. Here's my current config: location /...
1 vote
1 answer
210 views

Apache serving modified static assets incorrectly: serves obsolete file with sizes adjusted to match that of the new file [duplicate]

I've got a CakePHP project running in a CentOS VirtualBox. The website is served with Apache 2.2.15. There are JS files in the document root folder. Apache seemed to serve them file. But after i ...
1 vote
0 answers
345 views

How to add "List-Unsubscribe" in email header using CakeEmail component

I've tried the below, but it didn't works $email = new CakeEmail(); $email->addHeaders(array("List-Unsubscribe"=>"<$url>")); Any suggestion? Thank you
3 votes
3 answers
5k views

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 ...
0 votes
1 answer
238 views

A subdomain not loading

On my newserver i set up a subdomain patientslife.linf.in. But when i try to set up another subdomain pmr.linf.in it shows the page The connection was reset in Mozilla and No data received in chrome. ...
0 votes
1 answer
322 views

CakePHP Issue - site errors up

I have a cakePHP site and I moved the site over to a new server today and for some reason I keep getting errors. It works fine on another server but this new one that has cpanel does not seem to be ...
3 votes
3 answers
10k views

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 ...
3 votes
1 answer
1k views

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 ...
0 votes
1 answer
592 views

Need help translating this htaccess rewrite rule to Nginx

Hi – I've been struggling with this for days. It seems simple but I just can't get it done. I have a site developed in CakePHP. There's a script that responds to /css/profiles/g/whatever.css ("...
1 vote
0 answers
1k views

mysql error on xampp 1.7.7 for windows

All of a sudden my XAMPP installation is playing silly buggers when I try to Cake bake. I get a recurring error: SQLSTATE[HY000]: General error: 6 Error on delete of 'C:\xampp\tmp\#sql...MYD' (...
0 votes
3 answers
1k views

How to setup multiple subdomains on lampp?

down vote favorite Hi , I need to set up multiple projects on lampp. How can i create sub domains for these multiple projects. My projects are in cakePHP. Can anyone help me?
0 votes
1 answer
1k views

Critical Virus infection with PHP website. What are the options to remove Virus? [duplicate]

Possible Duplicate: My server's been hacked EMERGENCY I have a critical virus infection to one of my website. There is a additional script found added at footer of few web pages . the pages ...
1 vote
2 answers
5k views

CakePHP in a subdirectory using nginx (Rewrite rules?)

I managed to get this to work a while back, but on returning to the cakephp project I had started it seems that whatever changes I've made to nginx recently (or perhaps a recent update) have broken my ...
0 votes
2 answers
2k views

Trying to connect to mysql via php command line through XAMPP (ubuntu/cakephp)

I am trying to run the cake shell through xampp and I am running into some issues. What works I can connect PHP to Mysql while running through apache (in web browser) I can run the PHP CLI in bash ...
0 votes
2 answers
404 views

why mod_rewrite is not working

I enabled the mod_rewrite in apache by following this article : http://www.lavluda.com/2007/07/15/how-to-enable-mod_rewrite-in-apache22-debian/ but still when i run the cake php folder it say : URL ...
2 votes
0 answers
1k views

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 ...
0 votes
3 answers
4k views

Steps to optimize an IIS server for PHP

I've inherited a very slow PHP site running on IIS and I'm trying to maximize it's performance. The issue is all in the Time to First Byte (TTFB), with 1500ms TTFB for an almost empty page and an ...
1 vote
4 answers
1k views

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 ...
1 vote
4 answers
2k views

Web server is extremely slow

My web server is running on PHP 5 and MySQL 5.0. When I copied an application developed in CAKE PHP, the server is extremely slow. The organization who provides the files are running the same ...
0 votes
1 answer
593 views

When I try to access a website without www I get access denied

I have an apache web server on a debian machine. I'm using virtualmin to administer virtual hosts. I have two sites on this server right now, when I try to access one site without the www in the URL I ...
0 votes
1 answer
826 views

How does everyone set up AWS for PHP with a git workflow while worrying about distributing EC2?

I have been looking for something like heroku but for php, and after much frustration (and almost finding what I need, but not quite) we decided to just go with AWS without any other abstraction. We ...
4 votes
3 answers
308 views

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'...
2 votes
2 answers
3k views

.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 ...
1 vote
1 answer
822 views

Migration to Media Temple (dv) from (gs) - 777 Permissions issue

I just migrated my website (built on CakePHP) from Media Temple's (gs) server to (dv). I got an error that the /tmp/cache folder is not writable. Changing the permissions to 777 fixes this error - ...
1 vote
1 answer
2k views

Cakephp, App's folder not in the webroot why?

Why store the CakePHP files outside of the webroot? For example, this is the way way that I have always been told to do it. /home/username /app /cake /public_html index.php I know its ...
0 votes
1 answer
4k views

setting up cake on hostgator

So i have been reading forum after forum and my bakery is still not functional. Here is my folder tree: /home/jja/public_html/ there i have: app, cake, index.php and one .htaccess that looks like: ...
1 vote
1 answer
8k views

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 ...
2 votes
4 answers
2k views

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 ...