Re: using cakephp with nginx

2014-10-26 Thread CrotchFrog
When you say i have a redirection to my default login action *my_ip/my_cakephp_project/login* with an* 404 error* ... my first impression would be that your app is working but you are being denied (redirected) by the auth component. Looking at your config I don't think this is the case and

Re: using cakephp with nginx

2014-10-26 Thread CrotchFrog
My bad, I had a copy/paste malfunction :) Here is a basic set-up: server{ listen 80; server_name my_broken_project; rewrite_log on; root/var/www/my_broken_project/webroot; index index.php; error_log

Re: How to check if there is a database (cakephp 2.5.5)

2014-10-26 Thread Salines
I solved the problem, thank you :) == $dbconfig = array( 'datasource'= $data['Database']['datasource'], 'persistent'= $data['Database']['persistent'], 'host' = $data['Database']['host'], 'login' = $data['Database']['login'], 'password' = $data['Database']['password'],

Re: using cakephp with nginx

2014-10-26 Thread flashios09
thanks for all the explanation. i forget to say that with *apache the same project worked correctly* - i don't have the 404 error after being redirected to the default login action . i have two more small question: 1- for the root value in the config i write this root

Re: using cakephp with nginx

2014-10-26 Thread Salines
google nginx wildcard and regular expressions -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving

Re: using cakephp with nginx

2014-10-26 Thread Ed Propsner
So basically you are able to see your project when visiting your server ip but getting a 404 when redirected to the login? My guess is that your login address looks like 192.168.1.123/my_broken_project/login? You actually *can *use an ip address as a *server_name *but only one site will be

Re: using cakephp with nginx

2014-10-26 Thread flashios09
can you give an example of config please ? let's say that my *root* is */home/sites/* my *server_ip* is *192.168.1.123* and i have* 2 cakephp_projects* what i have to write in the config file to have access to my 2 projects using this URLs *my_server_ip/my_cakephp_project1*,

Re: using cakephp with nginx

2014-10-26 Thread Ed Propsner
The only way I know of (off the top of my head) to use the same ip for multiple sites with nginx (besides the working config I already gave you) is to change the port your project listens on. Keep one at 80 and change the other to something like 8080 (or some other port not being used). Your

How to make cakephp 3.x web installer

2014-10-26 Thread Nguyễn Anh Tuấn
Dear all. Please guide me how to make cakephp 3.x web installer and using theme. I did use theme as plugin: /app/plugins/theme01,/app/plugins/theme02 and i wonder is that right? Thanks -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP ---

Re: Cake 2.5 connecting to Oracle

2014-10-26 Thread ProFire
I used to use the attached datasource, heavily modified from Cake1.3 In the config file, these are the settings public $oracle = array( 'datasource' = 'Database/Oracle', 'driver' = 'oracle', 'connect' = 'oci_pconnect', 'persistent' = false, 'host' =

Re: validation criteria at least 3 fileds are not empty

2014-10-26 Thread John Andersen
Good to see that you are trying to solve this :) I would still have gone with rolling my own validation, just by extending the validator, so it can validate a record also, not only fields. Anyway, I am not moving to CakePHP 3.x, so will not be able to give further ideas on that, but I do hope