Re: mod_rewrite problem

2012-10-09 Thread lowpass
See here:

https://groups.google.com/forum/?fromgroups=#!topic/cake-php/vay5etTmo5w


On Fri, Oct 5, 2012 at 8:29 PM, Lorenzo Mele lorenzo.m...@gmail.com wrote:
 Hi all,
 I'm having some trouble with mod_rewrite: my local site is showing me the
 message URL rewriting is not properly configured on your server.

 I'm using
 - CakePHP 2.2.2
 - Apache/2.2.22 (Ubuntu)
 - PHP Version 5.3.10-1ubuntu3.4

 These are my files:

 /var/www/friendlistapp/.htaccess (original)
 IfModule mod_rewrite.c
RewriteEngine on
RewriteRule^$ app/webroot/[L]
RewriteRule(.*) app/webroot/$1 [L]
 /IfModule

 /etc/apache2/sites-enabled/fla.local
 VirtualHost fla.local:80
 ServerName fla.local
 DocumentRoot /var/www/friendlistapp
 # Other directives here
 Directory /
 Options FollowSymLinks
 AllowOverride All
 /Directory
 Directory /var/www/friendlistapp
 Options Indexes FollowSymLinks MultiViews
 AllowOverride All
 Order Allow,Deny
 Allow from all
 /Directory
 /VirtualHost

 Although I'm pretty sure this is the right .conf file, I converted every
 AllowOverride in every apache file to All.

 I can find mod_rewrite in Loaded Modules in phpinfo()...

 CakePHP is still raising that error...

 What can I check again?


 Thanks in advance
 Lorenzo

 --
 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 post to this group, send email to cake-php@googlegroups.com.
 To unsubscribe from this group, send email to
 cake-php+unsubscr...@googlegroups.com.
 Visit this group at http://groups.google.com/group/cake-php?hl=en.



-- 
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




mod_rewrite problem

2012-10-06 Thread Lorenzo Mele
Hi all,
I'm having some trouble with mod_rewrite: my local site is showing me the 
message URL rewriting is not properly configured on your server.

I'm using
- CakePHP 2.2.2
- Apache/2.2.22 (Ubuntu) 
- PHP Version 5.3.10-1ubuntu3.4 

These are my files:

*/var/www/friendlistapp/.htaccess (original)*
IfModule mod_rewrite.c
   RewriteEngine on
   RewriteRule^$ app/webroot/[L]
   RewriteRule(.*) app/webroot/$1 [L]
/IfModule

*/etc/apache2/sites-enabled/fla.local
*
VirtualHost fla.local:80
ServerName fla.local
DocumentRoot /var/www/friendlistapp
# Other directives here
Directory /
Options FollowSymLinks
AllowOverride All
/Directory
Directory /var/www/friendlistapp
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order Allow,Deny
Allow from all
/Directory
/VirtualHost

Although I'm pretty sure this is the right .conf file, I converted every 
AllowOverride in every apache file to All.

I can find mod_rewrite in Loaded Modules in phpinfo()...

CakePHP is still raising that error...

What can I check again?


Thanks in advance
Lorenzo

-- 
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Very ( very ) weird mod_rewrite problem. Please help!

2012-07-11 Thread Koray Tugay
Hi,

I have recently installed CakePHP and I am having a very weird problem with 
mode_rewrite.

Well first I am getting the message as I supposed to when I first install 
CakePHP.

URL rewriting is not properly configured on your server. 1) Help me 
configure 
ithttp://book.cakephp.org/2.0/en/installation/advanced-installation.html#apache-and-mod-rewrite-and-htaccess
 2) I don't / can't use URL 
rewritinghttp://book.cakephp.org/2.0/en/development/configuration.html#cakephp-core-configuration
Ok, no problem, I do all the settings as suggested.
Then I get: Your tmp directory is writable. 

The weird thing starts here.. After like 5 minutes or so, when I reload the 
page I again get the error ! And there is nothing I have changed!

Well I just change my DocumentRoot from D:\DocumentRoot to C:\DocumentRoot 
in httpd.conf file, and restart Apache, again success! 
And the weird thing is that this change does not affect my DocumentRoot 
since I include virtual hosts with:

# Virtual hosts
Include conf/extra/httpd-vhosts.conf

and my virtual hosts are:

VirtualHost *:80
DocumentRoot D:/DocumentRoot/
ServerName localhost
ServerName go.go.com
/VirtualHost

And I just go type localhost on my browser, there it is I am getting 
cakephp from D:\DocumentRoot ( NOT C:\DocumentRoot but D) and rewrite works 
just fine..

5 minutes later! Again the warning message.

I change my DocumentRoot from C:\DocumentRoot to D:\DocumentRoot and 
restart Apache, this time and it works again for 5 more minutes.

Can please someone help me? 

Regards!
 

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: Very ( very ) weird mod_rewrite problem. Please help!

2012-07-11 Thread DANNY
Hi Koray 

Maybe you can look for Apache error log file 
http://www.cyberciti.biz/faq/apache-logs/ 
It may help u 




Koray Tugay於 2012年7月11日星期三UTC+8上午3時07分52秒寫道:

 Hi,

 I have recently installed CakePHP and I am having a very weird problem 
 with mode_rewrite.

 Well first I am getting the message as I supposed to when I first install 
 CakePHP.

 URL rewriting is not properly configured on your server. 1) Help me 
 configure 
 ithttp://book.cakephp.org/2.0/en/installation/advanced-installation.html#apache-and-mod-rewrite-and-htaccess
  2) I don't / can't use URL 
 rewritinghttp://book.cakephp.org/2.0/en/development/configuration.html#cakephp-core-configuration
 Ok, no problem, I do all the settings as suggested.
 Then I get: Your tmp directory is writable. 

 The weird thing starts here.. After like 5 minutes or so, when I reload 
 the page I again get the error ! And there is nothing I have changed!

 Well I just change my DocumentRoot from D:\DocumentRoot to C:\DocumentRoot 
 in httpd.conf file, and restart Apache, again success! 
 And the weird thing is that this change does not affect my DocumentRoot 
 since I include virtual hosts with:

 # Virtual hosts
 Include conf/extra/httpd-vhosts.conf

 and my virtual hosts are:

 VirtualHost *:80
 DocumentRoot D:/DocumentRoot/
 ServerName localhost
 ServerName go.go.com
 /VirtualHost

 And I just go type localhost on my browser, there it is I am getting 
 cakephp from D:\DocumentRoot ( NOT C:\DocumentRoot but D) and rewrite works 
 just fine..

 5 minutes later! Again the warning message.

 I change my DocumentRoot from C:\DocumentRoot to D:\DocumentRoot and 
 restart Apache, this time and it works again for 5 more minutes.

 Can please someone help me? 

 Regards!
  


-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: mod_rewrite problem?

2008-10-16 Thread Arndtinho

Hello,

thanks for your answer.
What do you mean with .htaccess in your webroot virtual site?

I have in my apache config following: AccessFileName .htaccess
Or should it be in the virtual host configuration?

Regards
Arndtinho


On 16 Okt., 01:00, francky06l [EMAIL PROTECTED] wrote:
 Usually mod-rewrite is in the htaccess, be sure you have
 proper .htaccess in your webroot virtual site
 (you can also turn on the rewrite log on apache, and check if
 something is wrong)..

 hth

 On Oct 15, 10:13 pm, Arndtinho [EMAIL PROTECTED] wrote:



  Hello,

  I reconfigured my new workstation with Cake.
  Following transfering my projects I tested one.
  But the site is displayed without the CSS definitions and the
  includes.
  I was first exposed mod_rewrite is disabled but it's enabled. And if
  I
  callhttp://myproject/css/main.css, the content of the css file is
  displayed
  at the browser.
  What could be the reason for this behavior?
  Here my virtual host configuration:

  VirtualHost *:80
      ServerAdmin [EMAIL PROTECTED]
      DocumentRoot E:/Pfad/zum/Projekt
      ServerName myproject
      ServerAlias 127.0.0.1
      ErrorLog E:/Pfad/zum/Projekt/logfiles/profil_error.log
      CustomLog E:/Pfad/zum/Projekt/logfiles/profil_access.log common

      Directory E:/Pfad/zum/Projekt/
         AllowOverride All
         Options +FollowSymLinks
         Order deny,allow
         Allow from all
         Satisfy all
      /Directory
  /VirtualHost

  System: WinXP, Apache2 (mod_rewrite enabled), CakePHP 1.1

  Regards
  Arndtinho- Zitierten Text ausblenden -

 - Zitierten Text anzeigen -
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: mod_rewrite problem?

2008-10-16 Thread Arndtinho

Ok. Thanks.
I'll check it out this evening.

Arndtinho


On 16 Okt., 11:03, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
 He wanted you to check if a .htaccess file is present (and readable to
 the webserver)
 E:/Pfad/zum/Projekt/.htaccess

 Another thing that could give a clue is to look at the source of the
 front page of your application.
 Look at where the css, javascript, images and links point.

 I would also suggest you point the DocumentRoot to the app/webroot
 folder of your application. This is generally speaking the best root
 for a Cake app since all application php files will be outside the
 exposed folders. It may also fix your problem... at least that setup
 has never failed to work for me.

 /Martin

 On Oct 16, 8:35 am, Arndtinho [EMAIL PROTECTED] wrote:



  Hello,

  thanks for your answer.
  What do you mean with .htaccess in your webroot virtual site?

  I have in my apache config following: AccessFileName .htaccess
  Or should it be in the virtual host configuration?

  Regards
  Arndtinho

  On 16 Okt., 01:00, francky06l [EMAIL PROTECTED] wrote:

   Usually mod-rewrite is in the htaccess, be sure you have
   proper .htaccess in your webroot virtual site
   (you can also turn on the rewrite log on apache, and check if
   something is wrong)..

   hth

   On Oct 15, 10:13 pm, Arndtinho [EMAIL PROTECTED] wrote:

Hello,

I reconfigured my new workstation with Cake.
Following transfering my projects I tested one.
But the site is displayed without the CSS definitions and the
includes.
I was first exposed mod_rewrite is disabled but it's enabled. And if
I
callhttp://myproject/css/main.css, the content of the css file is
displayed
at the browser.
What could be the reason for this behavior?
Here my virtual host configuration:

VirtualHost *:80
    ServerAdmin [EMAIL PROTECTED]
    DocumentRoot E:/Pfad/zum/Projekt
    ServerName myproject
    ServerAlias 127.0.0.1
    ErrorLog E:/Pfad/zum/Projekt/logfiles/profil_error.log
    CustomLog E:/Pfad/zum/Projekt/logfiles/profil_access.log common

    Directory E:/Pfad/zum/Projekt/
       AllowOverride All
       Options +FollowSymLinks
       Order deny,allow
       Allow from all
       Satisfy all
    /Directory
/VirtualHost

System: WinXP, Apache2 (mod_rewrite enabled), CakePHP 1.1

Regards
Arndtinho- Zitierten Text ausblenden -

   - Zitierten Text anzeigen -- Zitierten Text ausblenden -

 - Zitierten Text anzeigen -
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: mod_rewrite problem?

2008-10-16 Thread [EMAIL PROTECTED]

He wanted you to check if a .htaccess file is present (and readable to
the webserver)
E:/Pfad/zum/Projekt/.htaccess

Another thing that could give a clue is to look at the source of the
front page of your application.
Look at where the css, javascript, images and links point.

I would also suggest you point the DocumentRoot to the app/webroot
folder of your application. This is generally speaking the best root
for a Cake app since all application php files will be outside the
exposed folders. It may also fix your problem... at least that setup
has never failed to work for me.


/Martin

On Oct 16, 8:35 am, Arndtinho [EMAIL PROTECTED] wrote:
 Hello,

 thanks for your answer.
 What do you mean with .htaccess in your webroot virtual site?

 I have in my apache config following: AccessFileName .htaccess
 Or should it be in the virtual host configuration?

 Regards
 Arndtinho

 On 16 Okt., 01:00, francky06l [EMAIL PROTECTED] wrote:

  Usually mod-rewrite is in the htaccess, be sure you have
  proper .htaccess in your webroot virtual site
  (you can also turn on the rewrite log on apache, and check if
  something is wrong)..

  hth

  On Oct 15, 10:13 pm, Arndtinho [EMAIL PROTECTED] wrote:

   Hello,

   I reconfigured my new workstation with Cake.
   Following transfering my projects I tested one.
   But the site is displayed without the CSS definitions and the
   includes.
   I was first exposed mod_rewrite is disabled but it's enabled. And if
   I
   callhttp://myproject/css/main.css, the content of the css file is
   displayed
   at the browser.
   What could be the reason for this behavior?
   Here my virtual host configuration:

   VirtualHost *:80
       ServerAdmin [EMAIL PROTECTED]
       DocumentRoot E:/Pfad/zum/Projekt
       ServerName myproject
       ServerAlias 127.0.0.1
       ErrorLog E:/Pfad/zum/Projekt/logfiles/profil_error.log
       CustomLog E:/Pfad/zum/Projekt/logfiles/profil_access.log common

       Directory E:/Pfad/zum/Projekt/
          AllowOverride All
          Options +FollowSymLinks
          Order deny,allow
          Allow from all
          Satisfy all
       /Directory
   /VirtualHost

   System: WinXP, Apache2 (mod_rewrite enabled), CakePHP 1.1

   Regards
   Arndtinho- Zitierten Text ausblenden -

  - Zitierten Text anzeigen -
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: mod_rewrite problem?

2008-10-16 Thread Arndtinho

Hello,

the .htaccess file is available and readable.
I also changed the webroot path and enable

RewriteLog logs/rewrite.log

but the result is the same and the logfile ist empty.

Regards
Arndtinho


On 16 Okt., 15:50, Arndtinho [EMAIL PROTECTED] wrote:
 Ok. Thanks.
 I'll check it out this evening.

 Arndtinho

 On 16 Okt., 11:03, [EMAIL PROTECTED]

 [EMAIL PROTECTED] wrote:
  He wanted you to check if a .htaccess file is present (and readable to
  the webserver)
  E:/Pfad/zum/Projekt/.htaccess

  Another thing that could give a clue is to look at the source of the
  front page of your application.
  Look at where the css, javascript, images and links point.

  I would also suggest you point the DocumentRoot to the app/webroot
  folder of your application. This is generally speaking the best root
  for a Cake app since all application php files will be outside the
  exposed folders. It may also fix your problem... at least that setup
  has never failed to work for me.

  /Martin

  On Oct 16, 8:35 am, Arndtinho [EMAIL PROTECTED] wrote:

   Hello,

   thanks for your answer.
   What do you mean with .htaccess in your webroot virtual site?

   I have in my apache config following: AccessFileName .htaccess
   Or should it be in the virtual host configuration?

   Regards
   Arndtinho

   On 16 Okt., 01:00, francky06l [EMAIL PROTECTED] wrote:

Usually mod-rewrite is in the htaccess, be sure you have
proper .htaccess in your webroot virtual site
(you can also turn on the rewrite log on apache, and check if
something is wrong)..

hth

On Oct 15, 10:13 pm, Arndtinho [EMAIL PROTECTED] wrote:

 Hello,

 I reconfigured my new workstation with Cake.
 Following transfering my projects I tested one.
 But the site is displayed without the CSS definitions and the
 includes.
 I was first exposed mod_rewrite is disabled but it's enabled. And if
 I
 callhttp://myproject/css/main.css, the content of the css file is
 displayed
 at the browser.
 What could be the reason for this behavior?
 Here my virtual host configuration:

 VirtualHost *:80
     ServerAdmin [EMAIL PROTECTED]
     DocumentRoot E:/Pfad/zum/Projekt
     ServerName myproject
     ServerAlias 127.0.0.1
     ErrorLog E:/Pfad/zum/Projekt/logfiles/profil_error.log
     CustomLog E:/Pfad/zum/Projekt/logfiles/profil_access.log common

     Directory E:/Pfad/zum/Projekt/
        AllowOverride All
        Options +FollowSymLinks
        Order deny,allow
        Allow from all
        Satisfy all
     /Directory
 /VirtualHost

 System: WinXP, Apache2 (mod_rewrite enabled), CakePHP 1.1

 Regards
 Arndtinho- Zitierten Text ausblenden -

- Zitierten Text anzeigen -- Zitierten Text ausblenden -

  - Zitierten Text anzeigen -
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: mod_rewrite problem?

2008-10-16 Thread Arndtinho

Hello,

I find out that's not a mod_rewrite problem.
If I set

?php echo $html-css('global'); ? instead ?= $html-css('global'); ?
 or
?php echo $html-link(... ); ? instead ?= $html-link(... ); ?

the app is working fine. But why?

Regards
Arndtinho


On 16 Okt., 11:03, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
 He wanted you to check if a .htaccess file is present (and readable to
 the webserver)
 E:/Pfad/zum/Projekt/.htaccess

 Another thing that could give a clue is to look at the source of the
 front page of your application.
 Look at where the css, javascript, images and links point.

 I would also suggest you point the DocumentRoot to the app/webroot
 folder of your application. This is generally speaking the best root
 for a Cake app since all application php files will be outside the
 exposed folders. It may also fix your problem... at least that setup
 has never failed to work for me.

 /Martin

 On Oct 16, 8:35 am, Arndtinho [EMAIL PROTECTED] wrote:

  Hello,

  thanks for your answer.
  What do you mean with .htaccess in your webroot virtual site?

  I have in my apache config following: AccessFileName .htaccess
  Or should it be in the virtual host configuration?

  Regards
  Arndtinho

  On 16 Okt., 01:00, francky06l [EMAIL PROTECTED] wrote:

   Usually mod-rewrite is in the htaccess, be sure you have
   proper .htaccess in your webroot virtual site
   (you can also turn on the rewrite log on apache, and check if
   something is wrong)..

   hth

   On Oct 15, 10:13 pm, Arndtinho [EMAIL PROTECTED] wrote:

Hello,

I reconfigured my new workstation with Cake.
Following transfering my projects I tested one.
But the site is displayed without the CSS definitions and the
includes.
I was first exposed mod_rewrite is disabled but it's enabled. And if
I
callhttp://myproject/css/main.css, the content of the css file is
displayed
at the browser.
What could be the reason for this behavior?
Here my virtual host configuration:

VirtualHost *:80
    ServerAdmin [EMAIL PROTECTED]
    DocumentRoot E:/Pfad/zum/Projekt
    ServerName myproject
    ServerAlias 127.0.0.1
    ErrorLog E:/Pfad/zum/Projekt/logfiles/profil_error.log
    CustomLog E:/Pfad/zum/Projekt/logfiles/profil_access.log common

    Directory E:/Pfad/zum/Projekt/
       AllowOverride All
       Options +FollowSymLinks
       Order deny,allow
       Allow from all
       Satisfy all
    /Directory
/VirtualHost

System: WinXP, Apache2 (mod_rewrite enabled), CakePHP 1.1

Regards
Arndtinho- Zitierten Text ausblenden -

   - Zitierten Text anzeigen -
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: mod_rewrite problem?

2008-10-16 Thread Arndtinho

Hello,

it's me again.
I find it out!!! The problem is the php short_open_tag-property.
I set it to 'on' and now everything is fine.

Regards
Arndtinho


On 16 Okt., 21:43, Arndtinho [EMAIL PROTECTED] wrote:
 Hello,

 I find out that's not a mod_rewrite problem.
 If I set

 ?php echo $html-css('global'); ? instead ?= $html-css('global'); ? or

 ?php echo $html-link(... ); ? instead ?= $html-link(... ); ?

 the app is working fine. But why?

 Regards
 Arndtinho

 On 16 Okt., 11:03, [EMAIL PROTECTED]

 [EMAIL PROTECTED] wrote:
  He wanted you to check if a .htaccess file is present (and readable to
  the webserver)
  E:/Pfad/zum/Projekt/.htaccess

  Another thing that could give a clue is to look at the source of the
  front page of your application.
  Look at where the css, javascript, images and links point.

  I would also suggest you point the DocumentRoot to the app/webroot
  folder of your application. This is generally speaking the best root
  for a Cake app since all application php files will be outside the
  exposed folders. It may also fix your problem... at least that setup
  has never failed to work for me.

  /Martin

  On Oct 16, 8:35 am, Arndtinho [EMAIL PROTECTED] wrote:

   Hello,

   thanks for your answer.
   What do you mean with .htaccess in your webroot virtual site?

   I have in my apache config following: AccessFileName .htaccess
   Or should it be in the virtual host configuration?

   Regards
   Arndtinho

   On 16 Okt., 01:00, francky06l [EMAIL PROTECTED] wrote:

Usually mod-rewrite is in the htaccess, be sure you have
proper .htaccess in your webroot virtual site
(you can also turn on the rewrite log on apache, and check if
something is wrong)..

hth

On Oct 15, 10:13 pm, Arndtinho [EMAIL PROTECTED] wrote:

 Hello,

 I reconfigured my new workstation with Cake.
 Following transfering my projects I tested one.
 But the site is displayed without the CSS definitions and the
 includes.
 I was first exposed mod_rewrite is disabled but it's enabled. And if
 I
 callhttp://myproject/css/main.css, the content of the css file is
 displayed
 at the browser.
 What could be the reason for this behavior?
 Here my virtual host configuration:

 VirtualHost *:80
     ServerAdmin [EMAIL PROTECTED]
     DocumentRoot E:/Pfad/zum/Projekt
     ServerName myproject
     ServerAlias 127.0.0.1
     ErrorLog E:/Pfad/zum/Projekt/logfiles/profil_error.log
     CustomLog E:/Pfad/zum/Projekt/logfiles/profil_access.log common

     Directory E:/Pfad/zum/Projekt/
        AllowOverride All
        Options +FollowSymLinks
        Order deny,allow
        Allow from all
        Satisfy all
     /Directory
 /VirtualHost

 System: WinXP, Apache2 (mod_rewrite enabled), CakePHP 1.1

 Regards
 Arndtinho- Zitierten Text ausblenden -

- Zitierten Text anzeigen -
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



mod_rewrite problem?

2008-10-15 Thread Arndtinho

Hello,

I reconfigured my new workstation with Cake.
Following transfering my projects I tested one.
But the site is displayed without the CSS definitions and the
includes.
I was first exposed mod_rewrite is disabled but it's enabled. And if
I
call http://myproject/css/main.css, the content of the css file is
displayed
at the browser.
What could be the reason for this behavior?
Here my virtual host configuration:

VirtualHost *:80
ServerAdmin [EMAIL PROTECTED]
DocumentRoot E:/Pfad/zum/Projekt
ServerName myproject
ServerAlias 127.0.0.1
ErrorLog E:/Pfad/zum/Projekt/logfiles/profil_error.log
CustomLog E:/Pfad/zum/Projekt/logfiles/profil_access.log common

Directory E:/Pfad/zum/Projekt/
   AllowOverride All
   Options +FollowSymLinks
   Order deny,allow
   Allow from all
   Satisfy all
/Directory
/VirtualHost

System: WinXP, Apache2 (mod_rewrite enabled), CakePHP 1.1

Regards
Arndtinho

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



Re: mod_rewrite problem?

2008-10-15 Thread francky06l

Usually mod-rewrite is in the htaccess, be sure you have
proper .htaccess in your webroot virtual site
(you can also turn on the rewrite log on apache, and check if
something is wrong)..

hth

On Oct 15, 10:13 pm, Arndtinho [EMAIL PROTECTED] wrote:
 Hello,

 I reconfigured my new workstation with Cake.
 Following transfering my projects I tested one.
 But the site is displayed without the CSS definitions and the
 includes.
 I was first exposed mod_rewrite is disabled but it's enabled. And if
 I
 callhttp://myproject/css/main.css, the content of the css file is
 displayed
 at the browser.
 What could be the reason for this behavior?
 Here my virtual host configuration:

 VirtualHost *:80
 ServerAdmin [EMAIL PROTECTED]
 DocumentRoot E:/Pfad/zum/Projekt
 ServerName myproject
 ServerAlias 127.0.0.1
 ErrorLog E:/Pfad/zum/Projekt/logfiles/profil_error.log
 CustomLog E:/Pfad/zum/Projekt/logfiles/profil_access.log common

 Directory E:/Pfad/zum/Projekt/
AllowOverride All
Options +FollowSymLinks
Order deny,allow
Allow from all
Satisfy all
 /Directory
 /VirtualHost

 System: WinXP, Apache2 (mod_rewrite enabled), CakePHP 1.1

 Regards
 Arndtinho
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Mod_Rewrite problem...

2008-07-11 Thread Hitsugaya

Hey there, im been working on this problem for some time now and i
solved it. It turns out mod_rewrite was working properly from the
verry start accept somehow it is was not property sending me to the
CakePHP mainpage on http://localhost/, i still get the directory
listing.

But when i dit http://localhost/something i get a new page saying
missing somethingcontroller. So i figured...euh...it...it..it´s
working!! Only problem is that i got the directory listing. After some
googling and searching the apache conf i fount the following:
DirectoryIndex. entered index.php there and now all is working. Still
don´t quite know why that change was needed but im not complaining
since its working. Now i can finally start brushing up my PHP skills
and doing some coding.

I just thought i post the solution to support other starting people. I
wanna thank everybody posting in this thread for helping out, hope is
can return the favor sometime. Cheers!

On 8 jul, 19:37, Hitsugaya [EMAIL PROTECTED] wrote:
 I've been trying, yet again, to get mod_rewrite to work. Now i've gome
 accros something that is to me (begin a apache AND mod_rewrite noob)
 quite strange:

 I have the following file:
 C:/Program Files/Apache Group/Apache2/htdocs/cakePHP/app/
 webroot/.htaccess with the following content:
 IfModule mod_rewrite.c
     RewriteEngine On
     RewriteCond %{REQUEST_FILENAME} !-d
     RewriteCond %{REQUEST_FILENAME} !-f
     RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
 /IfModule
 When i hithttp://localhost/i get a directory listing off: :/Program
 Files/Apache Group/Apache2/htdocs/cakePHP/app/webroot
 This i think means that mod_rewrite is not functioning correclty.

 BUT, now comes the crazy thing: when i change the file to:

 C:/Program Files/Apache Group/Apache2/htdocs/cakePHP/app/
 webroot/.htaccess with the following content:
 IfModule mod_rewrite.c
     RewriteEngine On
     RewriteCond %{REQUEST_FILENAME} !-d
     RewriteCond %{REQUEST_FILENAME} !-f
     RewriteRule ^silly\.html$ /exists.html [L]
     RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
 /IfModule

 I've added a second rewrite rule wich is a dummy rule (it makes
 absolutely no sense :P) BUT when i now hithttp://localhost/i get my
 CakePHP mainpage!!!

 That indicates that mod_rewrite now is working. However, with this
 little hack all images and styles dissapear. I googled it and i think
 a .htaccess file can only have one rewrite rule.
 Then howcome that the .htaccess file finally does what i needs to do
 when i add a second rewrite rule? I think that something is wrong with
 that file but i don't know what.

 Help would be GREATLY appriciated!

 On 8 jul, 14:38, Hitsugaya [EMAIL PROTECTED] wrote:



  I think they are. Just to be sure...there are .htaccess files in:

  C:/Program Files/Apache Group/Apache2/htdocs/cakePHP (the root folder
  of cakePHP). Content:
  IfModule mod_rewrite.c
     RewriteEngine on
     RewriteRule    ^$ app/webroot/    [L]
     RewriteRule    (.*) app/webroot/$1 [L]
  /IfModule

  C:/Program Files/Apache Group/Apache2/htdocs/cakePHP/app. Content:
  IfModule mod_rewrite.c
      RewriteEngine on
      RewriteRule    ^$    webroot/    [L]
      RewriteRule    (.*) webroot/$1    [L]
   /IfModule

  C:/Program Files/Apache Group/Apache2/htdocs/cakePHP/app/webroot
  IfModule mod_rewrite.c
      RewriteEngine On
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
  /IfModule

  All are left untouched, and the content seemes allright...

  Tnx for the relpy´s so far guys, hope we can solve this issue!

  On 8 jul, 13:44, Jonathan Snook [EMAIL PROTECTED] wrote:

   Did the .htaccess files get copied properly?

Jonathan // Im sure that the directory is my local cakephp. But the
wierd thing is that withhttp://localhost/igeta directory listing
and the index.php file is in that directory. That should point to
mod_rewrite not being enabled but when i fire up phpinfo it states
that mod_rewrite is one of the loaded modules.- Tekst uit 
oorspronkelijk bericht niet weergeven -

   - Tekst uit oorspronkelijk bericht weergeven -- Tekst uit oorspronkelijk 
   bericht niet weergeven -

  - Tekst uit oorspronkelijk bericht weergeven -- Tekst uit oorspronkelijk 
  bericht niet weergeven -

 - Tekst uit oorspronkelijk bericht weergeven -
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Mod_Rewrite problem...

2008-07-11 Thread Claudia

Just for explanation - I think the following happened:

Your original htaccess:

IfModule mod_rewrite.c
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
/IfModule

This means that
- if the requested file is not a directory (RewriteCond %
{REQUEST_FILENAME} !-d)
- and if the requested file is not a file (RewriteCond %
{REQUEST_FILENAME} !-f)
- then apply the rewrite rule to send everything to htaccess
(RewriteRule ^(.*)$ index.php?url=$1 [QSA,L])

Problem:
The url 'localhost' maps to a directory for apache, so the rewrite
rule was never applied.

Then you added a silly rewrite rule to your htaccess:
IfModule mod_rewrite.c
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^silly\.html$ /exists.html [L]
RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
/IfModule

A rewrite condition always applies just to the first rewrite rule that
comes after the condition(s),
so now the conditions were only applied to the silly rewrite rule.
That again means that everything was now directed to the index.php,
also your pictures and css files.

Now you added index.php as DirectoryIndex. This means that whenever
you supply a directory
without a filename in the url, apache looks for the file index.php in
this directory. So if you now request
http://localhost, the rewrite rule still will not apply, but as apache
uses the index.php anyway,  this does not matter.

When you request any cake url like http://localhost/foo, the rewrite
condition evaluates to true
(as the directory foo is neither a directory nor a file) and thus the
rewrite rule is applied.


Hope it helps you understand what was actually going on.

Claudia


On Jul 11, 3:05 pm, Hitsugaya [EMAIL PROTECTED] wrote:
 Hey there, im been working on this problem for some time now and i
 solved it. It turns out mod_rewrite was working properly from the
 verry start accept somehow it is was not property sending me to the
 CakePHP mainpage onhttp://localhost/, i still get the directory
 listing.

 But when i dithttp://localhost/somethingi get a new page saying
 missing somethingcontroller. So i figured...euh...it...it..it´s
 working!! Only problem is that i got the directory listing. After some
 googling and searching the apache conf i fount the following:
 DirectoryIndex. entered index.php there and now all is working. Still
 don´t quite know why that change was needed but im not complaining
 since its working. Now i can finally start brushing up my PHP skills
 and doing some coding.

 I just thought i post the solution to support other starting people. I
 wanna thank everybody posting in this thread for helping out, hope is
 can return the favor sometime. Cheers!

 On 8 jul, 19:37, Hitsugaya [EMAIL PROTECTED] wrote:

  I've been trying, yet again, to get mod_rewrite to work. Now i've gome
  accros something that is to me (begin a apache AND mod_rewrite noob)
  quite strange:

  I have the following file:
  C:/Program Files/Apache Group/Apache2/htdocs/cakePHP/app/
  webroot/.htaccess with the following content:
  IfModule mod_rewrite.c
  RewriteEngine On
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
  /IfModule
  When i hithttp://localhost/iget a directory listing off: :/Program
  Files/Apache Group/Apache2/htdocs/cakePHP/app/webroot
  This i think means that mod_rewrite is not functioning correclty.

  BUT, now comes the crazy thing: when i change the file to:

  C:/Program Files/Apache Group/Apache2/htdocs/cakePHP/app/
  webroot/.htaccess with the following content:
  IfModule mod_rewrite.c
  RewriteEngine On
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^silly\.html$ /exists.html [L]
  RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
  /IfModule

  I've added a second rewrite rule wich is a dummy rule (it makes
  absolutely no sense :P) BUT when i now hithttp://localhost/iget my
  CakePHP mainpage!!!

  That indicates that mod_rewrite now is working. However, with this
  little hack all images and styles dissapear. I googled it and i think
  a .htaccess file can only have one rewrite rule.
  Then howcome that the .htaccess file finally does what i needs to do
  when i add a second rewrite rule? I think that something is wrong with
  that file but i don't know what.

  Help would be GREATLY appriciated!

  On 8 jul, 14:38, Hitsugaya [EMAIL PROTECTED] wrote:

   I think they are. Just to be sure...there are .htaccess files in:

   C:/Program Files/Apache Group/Apache2/htdocs/cakePHP (the root folder
   of cakePHP). Content:
   IfModule mod_rewrite.c
  RewriteEngine on
  RewriteRule^$ app/webroot/[L]
  RewriteRule(.*) app/webroot/$1 [L]
   /IfModule

   C:/Program Files/Apache Group/Apache2/htdocs/cakePHP/app. Content:
   IfModule 

Re: Mod_Rewrite problem...

2008-07-08 Thread Hitsugaya

Jonathan // Im sure that the directory is my local cakephp. But the
wierd thing is that with http://localhost/ i get a directory listing
and the index.php file is in that directory. That should point to
mod_rewrite not being enabled but when i fire up phpinfo it states
that mod_rewrite is one of the loaded modules.

francky06l // The following actions give the following results:
http://localhost/ : Directory listing for the /app/webroot folder
http://locahost/index.php : The main CakePHP page saying my temp dir
is writeable and my db connection is OK.
http://locahost/app/index.php : The main CakePHP page saying my temp
dir is writeable and my db connection is OK.


On 7 jul, 23:27, francky06l [EMAIL PROTECTED] wrote:
 What append if you do localhost/app/index.php ?

 On Jul 7, 10:28 pm, Jonathan Snook [EMAIL PROTECTED] wrote:



  Are you sure you're hitting the local PHP install and not the local
  IIS install? with the index.php file in webroot, it'd be unlikely to
  get a directory listing.

  On Mon, Jul 7, 2008 at 4:07 PM, Hitsugaya [EMAIL PROTECTED] wrote:

   Hello all, im a new CakePHP user. Im setting up for my first project,
   but im running into some trouble with mod_rewrite.

   Now for the problemwhen i use:http://localhost/iget a list of
   the files from:
   C:/Program Files/Apache Group/Apache2/htdocs/cakePHP/app/webroot/
   If mod_rewrite was configured the right way i should be directed
   stright to index.php...right?- Tekst uit oorspronkelijk bericht niet 
   weergeven -

 - Tekst uit oorspronkelijk bericht weergeven -

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



Re: Mod_Rewrite problem...

2008-07-08 Thread Jonathan Snook

Did the .htaccess files get copied properly?

 Jonathan // Im sure that the directory is my local cakephp. But the
 wierd thing is that with http://localhost/ i get a directory listing
 and the index.php file is in that directory. That should point to
 mod_rewrite not being enabled but when i fire up phpinfo it states
 that mod_rewrite is one of the loaded modules.

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



Re: Mod_Rewrite problem...

2008-07-08 Thread Hitsugaya

I think they are. Just to be sure...there are .htaccess files in:

C:/Program Files/Apache Group/Apache2/htdocs/cakePHP (the root folder
of cakePHP). Content:
IfModule mod_rewrite.c
   RewriteEngine on
   RewriteRule^$ app/webroot/[L]
   RewriteRule(.*) app/webroot/$1 [L]
/IfModule

C:/Program Files/Apache Group/Apache2/htdocs/cakePHP/app. Content:
IfModule mod_rewrite.c
RewriteEngine on
RewriteRule^$webroot/[L]
RewriteRule(.*) webroot/$1[L]
 /IfModule

C:/Program Files/Apache Group/Apache2/htdocs/cakePHP/app/webroot
IfModule mod_rewrite.c
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
/IfModule

All are left untouched, and the content seemes allright...

Tnx for the relpy´s so far guys, hope we can solve this issue!


On 8 jul, 13:44, Jonathan Snook [EMAIL PROTECTED] wrote:
 Did the .htaccess files get copied properly?



  Jonathan // Im sure that the directory is my local cakephp. But the
  wierd thing is that withhttp://localhost/i get a directory listing
  and the index.php file is in that directory. That should point to
  mod_rewrite not being enabled but when i fire up phpinfo it states
  that mod_rewrite is one of the loaded modules.- Tekst uit oorspronkelijk 
  bericht niet weergeven -

 - Tekst uit oorspronkelijk bericht weergeven -
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Mod_Rewrite problem...

2008-07-08 Thread Hitsugaya

I've been trying, yet again, to get mod_rewrite to work. Now i've gome
accros something that is to me (begin a apache AND mod_rewrite noob)
quite strange:

I have the following file:
C:/Program Files/Apache Group/Apache2/htdocs/cakePHP/app/
webroot/.htaccess with the following content:
IfModule mod_rewrite.c
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
/IfModule
When i hit http://localhost/ i get a directory listing off: :/Program
Files/Apache Group/Apache2/htdocs/cakePHP/app/webroot
This i think means that mod_rewrite is not functioning correclty.

BUT, now comes the crazy thing: when i change the file to:

C:/Program Files/Apache Group/Apache2/htdocs/cakePHP/app/
webroot/.htaccess with the following content:
IfModule mod_rewrite.c
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^silly\.html$ /exists.html [L]
RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
/IfModule

I've added a second rewrite rule wich is a dummy rule (it makes
absolutely no sense :P) BUT when i now hit http://localhost/ i get my
CakePHP mainpage!!!

That indicates that mod_rewrite now is working. However, with this
little hack all images and styles dissapear. I googled it and i think
a .htaccess file can only have one rewrite rule.
Then howcome that the .htaccess file finally does what i needs to do
when i add a second rewrite rule? I think that something is wrong with
that file but i don't know what.

Help would be GREATLY appriciated!




On 8 jul, 14:38, Hitsugaya [EMAIL PROTECTED] wrote:
 I think they are. Just to be sure...there are .htaccess files in:

 C:/Program Files/Apache Group/Apache2/htdocs/cakePHP (the root folder
 of cakePHP). Content:
 IfModule mod_rewrite.c
    RewriteEngine on
    RewriteRule    ^$ app/webroot/    [L]
    RewriteRule    (.*) app/webroot/$1 [L]
 /IfModule

 C:/Program Files/Apache Group/Apache2/htdocs/cakePHP/app. Content:
 IfModule mod_rewrite.c
     RewriteEngine on
     RewriteRule    ^$    webroot/    [L]
     RewriteRule    (.*) webroot/$1    [L]
  /IfModule

 C:/Program Files/Apache Group/Apache2/htdocs/cakePHP/app/webroot
 IfModule mod_rewrite.c
     RewriteEngine On
     RewriteCond %{REQUEST_FILENAME} !-d
     RewriteCond %{REQUEST_FILENAME} !-f
     RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
 /IfModule

 All are left untouched, and the content seemes allright...

 Tnx for the relpy´s so far guys, hope we can solve this issue!

 On 8 jul, 13:44, Jonathan Snook [EMAIL PROTECTED] wrote:



  Did the .htaccess files get copied properly?

   Jonathan // Im sure that the directory is my local cakephp. But the
   wierd thing is that withhttp://localhost/iget a directory listing
   and the index.php file is in that directory. That should point to
   mod_rewrite not being enabled but when i fire up phpinfo it states
   that mod_rewrite is one of the loaded modules.- Tekst uit oorspronkelijk 
   bericht niet weergeven -

  - Tekst uit oorspronkelijk bericht weergeven -- Tekst uit oorspronkelijk 
  bericht niet weergeven -

 - Tekst uit oorspronkelijk bericht weergeven -
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Mod_Rewrite problem...

2008-07-07 Thread Hitsugaya

Hello all, im a new CakePHP user. Im setting up for my first project,
but im running into some trouble with mod_rewrite.

Now for the problemwhen i use: http://localhost/ i get a list of
the files from:
C:/Program Files/Apache Group/Apache2/htdocs/cakePHP/app/webroot/
If mod_rewrite was configured the right way i should be directed
stright to index.php...right?

I have checked google, this google group and the CakePHP official
docs been trying for some hours now with no result. Im running my
CakePHP on a Windows Server 2003 virtual machine. Web server apache
2.0.63 and php 5.2.6 with the newest version of cake(1.2.0.7296).

My apache config file (i have LoadModule rewrite_module modules/
mod_rewrite.so loaded):

DocumentRoot C:/Program Files/Apache Group/Apache2/htdocs/cakePHP
Directory C:/Program Files/Apache Group/Apache2/htdocs/cakePHP
Options Indexes MultiViews FollowSymLinks
# override required for the cake supplied .htaccess files to work
AllowOverride All
Order allow,deny
Allow from all
/Directory

phpinfo says that mod_rewrite is enabled.

My CakePHP implemtation is located in:
- C:/Program Files/Apache Group/Apache2/htdocs/cakePHP
I kept the normal folder structure, so my application to be will be
located in:
- C:/Program Files/Apache Group/Apache2/htdocs/cakePHP/app/webroot/
I kept my .htaccess files as they come with the fresh copy of cakePHP.

I hope you guys can direct a new user like me in the right direction.
Thanks in advance!



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



Re: Mod_Rewrite problem...

2008-07-07 Thread Jonathan Snook

Are you sure you're hitting the local PHP install and not the local
IIS install? with the index.php file in webroot, it'd be unlikely to
get a directory listing.

On Mon, Jul 7, 2008 at 4:07 PM, Hitsugaya [EMAIL PROTECTED] wrote:

 Hello all, im a new CakePHP user. Im setting up for my first project,
 but im running into some trouble with mod_rewrite.

 Now for the problemwhen i use: http://localhost/ i get a list of
 the files from:
 C:/Program Files/Apache Group/Apache2/htdocs/cakePHP/app/webroot/
 If mod_rewrite was configured the right way i should be directed
 stright to index.php...right?


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



Re: Mod_Rewrite problem...

2008-07-07 Thread francky06l

What append if you do localhost/app/index.php ?


On Jul 7, 10:28 pm, Jonathan Snook [EMAIL PROTECTED] wrote:
 Are you sure you're hitting the local PHP install and not the local
 IIS install? with the index.php file in webroot, it'd be unlikely to
 get a directory listing.

 On Mon, Jul 7, 2008 at 4:07 PM, Hitsugaya [EMAIL PROTECTED] wrote:

  Hello all, im a new CakePHP user. Im setting up for my first project,
  but im running into some trouble with mod_rewrite.

  Now for the problemwhen i use:http://localhost/i get a list of
  the files from:
  C:/Program Files/Apache Group/Apache2/htdocs/cakePHP/app/webroot/
  If mod_rewrite was configured the right way i should be directed
  stright to index.php...right?
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Mod_ReWrite Problem

2008-02-04 Thread gripusa

Hi all! I am just trying work through the Cake Framework.
I have installed and configues following
Abyses Server
PHP 5
and Cake is installed at my document root i.e. wwwroot\cake
When i try to browse using http://localhost/cake/ i got the welcome
page but could not see fancy CSS so got to know that mod-rewrite is
not working.
Therefore, i followed the instructions from posts and groups and
removed the .ht files along with uncomment the
define ('BASE_URL', env('SCRIPT_NAME')); line from the core.php.
Now I am still getting Page Not Found errors, i tried to raise the
Debug Level but no error seems to show up. Can you guys figure out
what i am missing at ?

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



mod_rewrite problem

2007-07-07 Thread Dia

hi

I use Ubuntu 7.04 + Apache 2

when I install CakePHP, the CSS is not applied

I installed mod_rewrite, it is now listed in the phpinfo page
then I put AllowOverride to all for Directory /var/www/
finally I restarted Apache

but nothing to do...
1 hour I read tutorials on Internet and find nothing

help please
thanks


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



Re: mod_rewrite problem

2007-07-07 Thread Dia

ok, dun take care

it's now ok

dunno exactly why

just downloaded cake again and it worked


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



Re: mod_rewrite Problem

2007-04-22 Thread aldo.nievas

You could try defining something like this in your httpd.conf. You
must have mod_rewrite enabled.

VirtualHost *:80
DocumentRoot dir to your app document root
ServerName sandbox --or the name you want for your app example
Directory dir to your app document root
AllowOverride all
/Directory
/VirtualHost

Then you need to define sandbox as alias of your localhost in /etc/
hosts or c:\windows\system32\drivers\hosts.
Restart apache and voila.

Aldo.

On Apr 21, 4:12 pm, cake php [EMAIL PROTECTED] wrote:
 Hi i also have one problem with mod_rewrite( i am not sure).

 i use iis5 and apache, both disable mod_rewrite.

 i delete .htaccess files. and uncomment DEFINE in core.php.

 The same blog tutorial in cakephp manual.

 routes.php: $Route-connect('/', array('controller'='posts',
 'action'='index'));

 My problem is;

 The URL:http://localhost/index.phpcan be accessed.

 But link in this page can not be accessed: page not found

 the links are:

 http://localhost/index.php/posts/view/1http://localhost/index.php/posts/delete/1http://localhost/index.php/posts/view/3

 is there any stange about those URL?

 i don't know what happened.

 mod_rewrite issure? or other configure error?

 Thanks

 On 4月17日, 下午3时56分, jyrgen [EMAIL PROTECTED] wrote:

  For testing purposes you can disable the mod_rewrite
  feature by renaming the .htaccess files to _.htaccess
  with the DEFINE in app/config/core.php uncommented.

  if it works, than you have to check your apache conf
  to see if it allows overwriting settings by htaccess files at all.

  greetings, jyrgen


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



Re: mod_rewrite Problem

2007-04-21 Thread cake php

Hi i also have one problem with mod_rewrite( i am not sure).

i use iis5 and apache, both disable mod_rewrite.

i delete .htaccess files. and uncomment DEFINE in core.php.


The same blog tutorial in cakephp manual.

routes.php: $Route-connect('/', array('controller'='posts',
'action'='index'));

My problem is;

The URL: http://localhost/index.php can be accessed.

But link in this page can not be accessed: page not found

the links are:

http://localhost/index.php/posts/view/1
http://localhost/index.php/posts/delete/1
http://localhost/index.php/posts/view/3

is there any stange about those URL?

i don't know what happened.


mod_rewrite issure? or other configure error?

Thanks

On 4月17日, 下午3时56分, jyrgen [EMAIL PROTECTED] wrote:
 For testing purposes you can disable the mod_rewrite
 feature by renaming the .htaccess files to _.htaccess
 with the DEFINE in app/config/core.php uncommented.

 if it works, than you have to check your apache conf
 to see if it allows overwriting settings by htaccess files at all.

 greetings, jyrgen


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



Re: mod_rewrite Problem

2007-04-17 Thread jyrgen

For testing purposes you can disable the mod_rewrite
feature by renaming the .htaccess files to _.htaccess
with the DEFINE in app/config/core.php uncommented.

if it works, than you have to check your apache conf
to see if it allows overwriting settings by htaccess files at all.

greetings, jyrgen


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



mod_rewrite Problem

2007-04-16 Thread Vishal

Hi there,

This is my forst time with cake PHP and this what I have done so far
1. I have unzip the cakePHP package under /var/www/html/cake...
2. I have change the database.php file and now when I go to URL
www.**.com/cake, it shows me the index page (without CSS and
images) which says Your database configuration file is present. and
Cake is able to connect to the database.
To see the CSS and image on the index page I uncomment the line
DEFINE.. from app/config/core.php

Now to learn more about the cakePHP, I went through the blog tutorial.
I have copied all the files as given in the tutorial and change their
permission but still I can't access the files...
I am trying www.**.com/cake/posts but the web server simply shows
the 404 not found page.

Is it because of mod_rewrite or something else...

Please Help!

Vishal


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



mod_rewrite problem solved (for me anyways)

2007-02-05 Thread [EMAIL PROTECTED]

I am running PHP5 on Gentoo(Linux) with Apache 2.x.  I have
mod_rewrite installed.

I recently started working with CakePHP and could not get the
mod_rewrite to work.  I kept getting a 404 error when I would do the
example of the blog.  (http://localhost/posts/view/1).

After MUCH searching I finally solved my own problem and am writing
here so that it may help everyone else.

Make sure that Directory / AllowOvveride is set to All.

I did this and still no go.  After an hour of mulling, I realized that
I was running apache in virtualhost mode.

So, change your /etc/apache2/vhosts.d/00_default_vhosts.conf
Directory / AllowOvveride to All and I was golden.

If you don't have this specific directory structure, do a ?
phpinfo(); ? and look at the 5th line down for
Virtual Directory Support.  If it is enabled, you are running
virtual so you need to do the second AllowOverride.
This is the only other way I know how to tell you to check for this.

I know I am not well spoken but, I do hope this helps someone having
the same problem as me.
I had seen a LOT of people having problems with mod_rewrite and cake.

Sorry for my sloppy writing!


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



Solution to CakePHP mod_rewrite problem on 1and1

2006-07-10 Thread ahmed.kamel

I all, i was asked about how i got cakephp to work on 1and1. I can not
take credit for the solution, becaue it took me hours to find it online
(and i no longer have the link); but as posted on my site
http://ahmedkamel.net/2006/07/03/rails-vs-cake-which-one-should-i-chose/
here goes.

---
I found the solution some where online after long hours of searching,
and indeed mod_rewrite is the problem on 1and1. It seems that for
things to work on 1and1 you have to add a / at the beginning of the url
specified in the RewriteRule (.htaccess).

So, you cake/app/.htaccess file should look like this:

RewriteEngine on
RewriteRule ^$ /webroot/ [L]
RewriteRule (.*) /webroot/$1 [L]

Note, that you would have to make the same change to all your .htaccess
files.

In my case, I decided to work with the bakery, so I only bothered
making the changes to the /cake/bakery/webroot/.htaccess file (given
that my sub domain points to that folder).

Cheers and hope that helps.


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