Results 1 to 4 of 4

Thread: Cake PHP Trying to enable mod rewrite Apache Ubuntu 9.10

  1. #1
    Join Date
    Oct 2006
    Location
    West Sussex. England
    Beans
    90
    Distro
    Ubuntu Development Release

    Cake PHP Trying to enable mod rewrite Apache Ubuntu 9.10

    Hi,

    I am trying to run Cake PHP with Ubuntu 9.10 Desktop. I have installed the LAMP packages (With the install by type in apt and I chose LAMP server)

    How do I enable mod_rewrite? I have seen various commands mentioned, but also told there is a bug in 9.10.

    Final question - How to I make var/www writable?

    Kind regards

    Peter Jones

  2. #2
    Join Date
    Nov 2009
    Location
    Romania
    Beans
    13
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Cake PHP Trying to enable mod rewrite Apache Ubuntu 9.10

    To make var/www writable:

    sudo chmod 777 /var/www

    And to enable mod-rewrite:

    http://ubuntu-for-humans.blogspot.co...he-ubuntu.html
    or
    http://komunitasweb.com/2009/02/cake...php-on-ubuntu/

  3. #3
    Join Date
    Feb 2010
    Beans
    1

    Re: Cake PHP Trying to enable mod rewrite Apache Ubuntu 9.10

    I have a similar problem and those two tutorials didn't work.

    mod_rewrite is loaded and works for other sites, but not for Cake. I adapted the default file following the tutorial but I get an 500 Error. If I keep "none" instead of the suggested "all" I get a plain HTML page and the links won't work.
    Did the tutorials work for you or has anybody another suggestion for a solution?

    Jane
    Last edited by CalamityJane; February 23rd, 2010 at 11:24 PM.

  4. #4
    Join Date
    Apr 2009
    Beans
    7

    Re: Cake PHP Trying to enable mod rewrite Apache Ubuntu 9.10

    The first blog post worked for me. I didn't need to look at the second. Make sure you Enable mod-rewrite per the instructions. It's easy to overlook.

    sudo a2enmod rewrite

    and dont forget to restart apache

    $ sudo /etc/init.d/apache2 restart

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •