Dear all,
I had just finished searching the cakephp mailing list, tried the user's
real-time example. But, couldn't get my installation to work properly.
Here is my problem.
*domain: example.com
cakephp (installation): example.com/cakephp/
checked on mod_rewrite if it is loaded: (Yes, it is loaded)
*LoadModule rewrite_module libexec/httpd/mod_rewrite.so
AddModule mod_rewrite.c*
*
*httpd.conf (Alias)*
> Alias "/cakephp" "/www/example.com/cakephp/"
> <Directory "/www/example.com/cakephp/">
> Options Indexes MultiViews FollowSymLinks
> *AllowOverride None*
> Order allow,deny
> Allow from all
> </Directory>
>
Tried visiting example.com/cakephp/ -- it worked! But, the css and favicon
is pointing to the root directory /. Which is wrong.
Then, i changed *AllowOverride None *to* **AllowOverride All* and tried
visiting again example.com/cakephp/. *And the page is gone, 404 - error.*
So, next i *revert* the AllowOverride option *from* *All* to *None* again!
-- *Which is working*.
Now, i edited example.com/cakephp/app/core.php and uncommented this
line: *define
('BASE_URL', env('SCRIPT_NAME'));*
Re-visited my example.com/cakephp/ site and the page worked, even the css is
now pointing to:
/cakephp/app/webroot/css/cake.generic.css
>
Now, i tried this article:
http://bakery.cakephp.org/articles/view/cakephp-in-a-subdirectory-and-no-trailing-slash
Knowingly that AllowOverride is set to None, off course it won't work. I
could not set it to All, because the page will be gone, following a 404 -
error.
I am quite lost. Please help.
--
Louie Miranda ([EMAIL PROTECTED])
http://www.axishift.com
Security Is A Series Of Well-Defined Steps
chmod -R 0 / ; and smile :)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---