I use a virtualhost for my own development.

I'm using apache2, with default config. For my virtualhost this is the config:

/etc/apache2/sites-enabled/php :

<VirtualHost *>
        ServerAdmin [EMAIL PROTECTED]

        ServerName php

        DocumentRoot /home/dardo/php
        <Directory />
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
        </Directory>

        ErrorLog /home/dardo/php/error.log

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn

        CustomLog /home/dardo/php/log/access.log combined
        ServerSignature On
</VirtualHost>


.htaccess is the one that comes with cake.

In /home/dardo/php I have:

cake/ (cake core)
project1 (the app for project1)
project2 (the app for project2)
...

HTH,
- Dardo Sordi.




On Mon, Mar 10, 2008 at 7:20 AM, mcphisto <[EMAIL PROTECTED]> wrote:
>
>  Tried with:
>
> $ sudo a2enmod rewrite
>  $ sudo invoke-rc.d apache2 restart
>
>  but nothing to do. It says that rewrite module is already running.
>
>  I followed the manual to install it. I made everything in that
>  chapter.
>  Is it possible to have a copy of your .htaccess and httpd.conf?
>
>
>
>  On 8 Mar, 16:40, "Dardo Sordi Bogado" <[EMAIL PROTECTED]> wrote:
>  > try:
>  >
>  > $ sudo a2enmod rewrite
>  > $ sudo invoke-rc.d apache2 restart
>  >
>  > HTH
>  >
>  > PD: usingcakephpinkubuntufor 1+ years.
>
> >
>  > On Sat, Mar 8, 2008 at 9:37 AM, Marcos Hernández
>  >
>
> > <[EMAIL PROTECTED]> wrote:
>  >
>  > >  Hi!
>  >
>  > >  I think your problem is the .htaccess file. Read here
>  > >http://manual.cakephp.org/chapter/installing, in section 5. I'm using
>  > >CakePHPin Ubuntu for 5 months now and works fine.
>
> >
>  > >  Good luck!!
>  >
>  > >  Kchopein.
>  >
>  > >  mcphisto escribió:
>  >
>  > >  Hi,
>  > > I'm using cakeph since 1 year and never had problems with windows xp
>  > > and easy php 2.0.1.
>  > > Now I installedkubuntuand I can't get my applications working. I
>
>
> > > only see the home page without any style css and when i try a link it
>  > > says "page not found". The only doubt I've is my httpd.conf file.
>  > > I post here the configuration. I want my applications run under /var/
>  > > www. Is there something wrong.
>  >
>  > > DocumentRoot /var/www/
>  >
>  > > LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so
>  >
>  > > <Directory "/var/www/">
>  > >  #
>  > >  # Possible values for the Options directive are "None", "All",
>  > >  # or any combination of:
>  > >  # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI
>  > > MultiViews
>  > >  #
>  > >  # Note that "MultiViews" must be named *explicitly* --- "Options
>  > > All"
>  > >  # doesn't give it to you.
>  > >  #
>  > >  # The Options directive is both complicated and important. Please
>  > > see
>  > >  #http://httpd.apache.org/docs/2.2/mod/core.html#options
>  > >  # for more information.
>  > >  #
>  > >  Options Indexes FollowSymLinks
>  >
>  > >  #
>  > >  # AllowOverride controls what directives may be placed
>  > > in .htaccess files.
>  > >  # It can be "All", "None", or any combination of the keywords:
>  > >  # Options FileInfo AuthConfig Limit
>  > >  #
>  > >  AllowOverride All
>  >
>  > >  #
>  > >  # Controls who can get stuff from this server.
>  > >  #
>  > >  Order allow,deny
>  > >  Allow from all
>  >
>  > > </Directory>
>  >
>

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

Reply via email to