Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to resolve URL rewriting issue in cakephp?

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 2
    • 0
    • 264
    Comment on it

    Cakephp: URL rewriting is not properly configured on your server error. How to resolve it on Ubuntu 14.04?

    I am posting this blog which will help you to resolve the issue (URL rewriting is not properly configured on your server) while installing cakephp on ubuntu 14.04.

     

    Follow the steps below to fix this issue

    Step 1: Enabling mod_rewrite

    First we need to activate mod_rewrite.

    $ sudo a2enmod rewrite

    This command will activate the module or alert you that the module is already in effect. Restart your Apache in order to put these changes into effect.

    $ sudo service apache2 restart

    Step 2: Configure default Apache

    Open the default Apache configuration file using nano or your favorite text editor.

    $ sudo nano /etc/apache2/sites-enabled/000-default.conf

    Inside that file, you will find the <VirtualHost *:80> block on line 1. Inside of that block, add the following block:

    <VirtualHost *:80>
    ...
    ....
    <Directory /var/www/html>
              Options Indexes FollowSymLinks MultiViews
              AllowOverride All
              Order allow,deny
              allow from all
    </Directory>
    ...
    .....
    </VirtualHost>

     

    To put these changes into effect, restart Apache.

    $ sudo service apache2 restart

     

    All done!. Now refresh your page and you will see following:

    Now you can continue installing cakephp.

    Thanks for reading the blog

    How to resolve URL rewriting issue in cakephp?

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: