wardrobecms / wardrobe-archived

A minimal blogging application
http://wardrobecms.com/
MIT License
704 stars 111 forks source link

404 Not Found #13

Closed setkyar closed 11 years ago

setkyar commented 11 years ago

I was installing with composer create-project wardrobe/wardrobe command. And I gave permission

chmod -R 777 app/storage chmod 777 public/images

But when I go to www.mysite.com/public/public/install I found 404 error.

Any idea how to fix this?

ericlbarnes commented 11 years ago

It should be just mysite.com/install as long as you point your vhost to the public dir. Is it redirecting to the double "public" for you or something?

ciruz commented 11 years ago

Hi, maybe you haven't enabled mod_rewrite.

If you are not sure, try this url: http://www.example.com/index.php/install

If you work on your local machine without any vhosts / mod_rewrite, then give this url a try: http://your-ip-adress/your-wardrobe-path/public/index.php/install

good luck

setkyar commented 11 years ago

Yes I already try http://www.example.com/index.php/install and mysite.com/install but it still doesn't work . But when I install at XAMPP. It was fine. So I try configuration like XAMPP installation but it still have same problem :(

ciruz commented 11 years ago

There must be something other wrong. Your vhost configuration is really correct?

Your apache vhost configuration should look like this (to enable mod_rewrite):

<VirtualHost *:80>
    ServerAdmin foobar@example.com
    DocumentRoot /your/wardrobe/path/public
    ServerName www.example.com
    ServerAlias example.com
    <Directory /your/wardrobe/path/public>
        Options FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
</VirtualHost>

and you must have a ".htaccess" file in this public directory

<IfModule mod_rewrite.c>
    Options -MultiViews
    RewriteEngine On

    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]
</IfModule>

Can you access any other file in your document root? Create a simple php file in your document root and try to accessing it.

<?php
phpinfo();
?>

Do you get an error 404 when accessing this php file?

PS: Also check your apache error_log :)

setkyar commented 11 years ago

Yes Thanks ciruz I was fine now because of I need to configuration apache vhost

HeinZawHtet commented 10 years ago

I think setting 777 isn't a good idea :) it's dangerous. chmod -R 777 app/storage chmod 777 public/images