Re: Trouble configuring cakephp in ubuntu 10

2010-08-25 Thread Zaky Katalan-Ezra
Place the source under your home tree.
in /var/www run sudo ln -s /home/.../.../source myapp
test it with http://localhost/myapp
Now you can change the source with your logged in user.


On Wed, Aug 25, 2010 at 5:17 AM, janani  wrote:

> Hi,
>
> I am a new user to cakephp.I have installed cakephp,apache,php and
> mysql.
>
> Now I have a test application which needs to be placed in cakephp.The /
> var/www folder has no write permissions.So I couldnt place test files
> there.Can anyone tell me how to get the test application working?
>
> Regards,
> Janani
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their CakePHP related questions.
>
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.comFor
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>



-- 
Regards,
Zaky Katalan-Ezra
QA Administrator
www.IGeneriX.com
Sites.IGeneriX.com
054-7762312

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Trouble configuring cakephp in ubuntu 10

2010-08-25 Thread janani
Hi,

I am a new user to cakephp.I have installed cakephp,apache,php and
mysql.

Now I have a test application which needs to be placed in cakephp.The /
var/www folder has no write permissions.So I couldnt place test files
there.Can anyone tell me how to get the test application working?

Regards,
Janani

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


AW: configuring cakePHP,

2008-11-04 Thread Liebermann, Anja Carolin

Hi Janis,
 
example.com is a placeholder for the domain name which will host your
future application. Just ignore this as long as you application isn't
running on your final webserver.
 
If you put your cake folder in the document root ( = htdocs) your
application should show up when you request http://localhost/

Later when it is running on your real webserver in the wild you will get
it when you type in your own registered domain name like e.g.
www.janisrough.org

Anja
 



Von: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] Im
Auftrag von Janis Rough
Gesendet: Mittwoch, 5. November 2008 05:01
An: cake-php@googlegroups.com
Betreff: configuring cakePHP,


I am using Xampp  I put the unpacked cake folders in the htdocs folder.
I restarted it after I did the following in httpd.conf:



LoadModule rewrite_module modules/mod_rewrite.so

AllowOverride  All

I typed http://localhost/example.com.  I didn't get an example page but
I did get this message:



CakePHP Rapid Development


Not found


The requested address example.com was not found on this server.







I am using a PC with Windows Vista.  I noticed that after I opened the
.htaccess file and the httpd.conf files in Notepad that the name of the
files diappeared next to the picture of the file although the name looks
right in the properties.   I guess Windows hid the filename.  I guess I
didn't need to open the httpd.conf files except to try to figure out
what mod rewrite is all about.




In any case my basic question is why can't I get the example.com to see
if the configuration works or not and since I did get some information
about CAke does that mean it might be working and what else do I need to
do to get it working.




thanks,










--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



configuring cakePHP,

2008-11-04 Thread Janis Rough
I am using Xampp  I put the unpacked cake folders in the htdocs folder.  I 
restarted it after I did the following in httpd.conf:



LoadModule rewrite_module modules/mod_rewrite.so

AllowOverride  All

I typed http://localhost/example.com.  I didn't get an example page but I did 
get this message:


CakePHP Rapid Development
Not found
The requested address example.com was not found on this server.


I am using a PC with Windows Vista.  I noticed that after I opened the 
.htaccess file and the httpd.conf files in Notepad that the name of the files 
diappeared next to the picture of the file although the name looks right in the 
properties.   I guess Windows hid the filename.  I guess I didn't need to open 
the httpd.conf files except to try to figure out what mod rewrite is all about.

In any case my basic question is why can't I get the example.com to see if the 
configuration works or not and since I did get some information about CAke does 
that mean it might be working and what else do I need to do to get it working.

thanks,
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Help configuring CakePHP 1.1 or 1.2 for a total CakePHP newbie

2008-02-24 Thread George C

Hello!

I'd like to get started using Cake, but so far I haven't had a lot of
luck.  I've been attempting to follow the excellent "Cook up Web sites
fast with CakePHP, Part 1" hosted at: 
http://www-128.ibm.com/developerworks/edu/os-dw-os-php-cake1.html

My first attempt involved using CakePHP 1.2, beta version 6311.  After
downloading it, unpacking it in a folder beneath my webroot, changing
the permissions to 777 on /app/tmp and attempting to visit
http://www.myurl.com/cake12/ (which should bring up the configuration/
welcome page) my browser hangs for a minute before spitting out:

Fatal error: Maximum execution time of 60 seconds exceeded in /var/
www/
html/cake12/cake/libs/view/view.php on line 634

Fatal error: Call to a member function on a non-object in /var/www/
html/cake12/cake/libs/cache.php on line 208

Undeterred, I switched to CakePHP 1.1.9.6305, upacked in a folder
beneath my webroot called cake11, changed the permissions of the /app/
tmp folder, and tried to visit http://www.myurl.com/cake11/ - this
time with some success, although I don't see any section about my
cache being set up properly or my tmp directory being writable.
Nonetheless I plowed ahead through the tutorial, and created the files
listed on page 3 of the tutorial.  So, when I visited
http://www.myurl.com/cake11/users/register I saw the registration page
and filled it out.  When I hit the registration button, my URL is
changed to http://www.myurl.com/users/register and I'm told that page
doesn't exist, which makes sense.

I tried changing the ROOT and APP_DIR values in /app/webroot/
index.php, but that only seemed to break everything, so I changed it
back.  My next attempt was to copy all of the files in /webroot/cake11
directly into /webroot.  This works to some degree - I quickly defined
a index() function in /app/controllers/users_controller this displays
a small message using $this->flash, so when I retrieve 
http://www.myurl.com/users
I see the message, but attempting to visit http://www.myurl.com/users/register
gives me the same "page doesn't exist" message, even though I know
that register.ctp is there.

So, my questions are:
1) Can anyone make sense of the error I'm getting with 1.2?  I'm happy
to stick with 1.1, if need be, but I'd be glad to get it working.

2) What is the correct way to tell CakePHP to use a certain path?
Leaving files in /webroot/cake11 works until it needs to (I'm
guessing) build a URL, at which point it assumes the Cake files should
be in the /webroot folder; and moving them to /webroot seems to make
the register.ctp view seem to not exist at all as far as the web
server is concerned.

Thanks in advance!

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Help configuring CakePHP 1.1 or 1.2 for a total CakePHP newbie

2008-02-24 Thread George C

Hello!

I'd like to get started using Cake, but so far I haven't had a lot of
luck.  I've been attempting to follow the excellent "Cook up Web sites
fast with CakePHP, Part 1" hosted at: 
http://www-128.ibm.com/developerworks/edu/os-dw-os-php-cake1.html

My first attempt involved using CakePHP 1.2, beta version 6311.  After
downloading it, unpacking it in a folder beneath my webroot, changing
the permissions to 777 on /app/tmp and attempting to visit
http://www.myurl.com/cake12/ (which should bring up the configuration/
welcome page) my browser hangs for a minute before spitting out:

Fatal error: Maximum execution time of 60 seconds exceeded in /var/www/
html/cake12/cake/libs/view/view.php on line 634

Fatal error: Call to a member function on a non-object in /var/www/
html/cake12/cake/libs/cache.php on line 208

Undeterred, I switched to CakePHP 1.1.9.6305, upacked in a folder
beneath my webroot called cake11, changed the permissions of the /app/
tmp folder, and tried to visit http://www.myurl.com/cake11/ - this
time with some success, although I don't see any section about my
cache being set up properly or my tmp directory being writable.
Nonetheless I plowed ahead through the tutorial, and created the files
listed on page 3 of the tutorial.  So, when I visited
http://www.myurl.com/cake11/users/register I saw the registration page
and filled it out.  When I hit the registration button, my URL is
changed to http://www.myurl.com/users/register and I'm told that page
doesn't exist, which makes sense.

I tried changing the ROOT and APP_DIR values in /app/webroot/
index.php, but that only seemed to break everything, so I changed it
back.  My next attempt was to copy all of the files in /webroot/cake11
directly into /webroot.  This works to some degree - I quickly defined
a index() function in /app/controllers/users_controller this displays
a small message using $this->flash, so when I retrieve 
http://www.myurl.com/users
I see the message, but attempting to visit http://www.myurl.com/users/register
gives me the same "page doesn't exist" message, even though I know
that register.ctp is there.

So, my questions are:
1) Can anyone make sense of the error I'm getting with 1.2?  I'm happy
to stick with 1.1, if need be, but I'd be glad to get it working.

2) What is the correct way to tell CakePHP to use a certain path?
Leaving files in /webroot/cake11 works until it needs to (I'm
guessing) build a URL, at which point it assumes the Cake files should
be in the /webroot folder; and moving them to /webroot seems to make
the register.ctp view seem to not exist at all as far as the web
server is concerned.

Thanks in advance!

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



configuring cakephp

2007-11-26 Thread GunabalanS

configuring cakephp

Refer:
http://manual.cakephp.org/chapter/installing

point no
5) Configuring Apache and mod_rewrite

when put the cakePHP folder in doc root
if the following  error comes

Warning: session_start() [function.session-start]: open(/var/lib/php/
session/sess_fkfel4sr31ee3qb4i5a0birqj6, O_RDWR) failed: Permission
denied (13) in /home/gunabalans/public_html/website/cake/cake/libs/
session.php on line 484

solution:

cd var/lib/php/


sudo /bin/chown -R apache:apache session/

make sure in

cd etc/httpd/conf

sudo vi httpd.conf

# this setting for php-smarty
#User nobody
#Group nobody

#this setting for php-cake or other defalult setting for apache
User apache
Group apache




###AllowOverride is set to All for the correct
Directory.##

Make sure that an .htaccess override is allowed: in your httpd.conf,
you should have a section that defines a section for each Directory on
your server. Make sure the AllowOverride is set to All for the correct
Directory.
#

## httpd.conf     file  ##


# Each directory to which Apache has access can be configured with
respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
#
# First, we configure the "default" to be a very restrictive set of
# features.

# do the following changes or just copy and replace


Options FollowSymLinks
#AllowOverride None #this part has been commented
 AllowOverride All  #this line is newly added




LoadModule rewrite_module modules/mod_rewrite.so

##
to check that

cd etc/httpd/modules/
ls

you can see the list of modules


*

now you will be fine


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---