thedigicraft / Atom.CMS

Atom.CMS
56 stars 52 forks source link

Clean URLs error #99

Open maaka opened 9 years ago

maaka commented 9 years ago

So I guess you could say this is an extension of my previous issue with Clean URLs https://github.com/thedigicraft/Atom.CMS/issues/98. After some adjustments made for WAMP I am now seeing requested URL /index.php was not found on this server. The URL i have in my browser is http://localhost/atomcms/home

creptor commented 9 years ago

.... this error is common the problem is your index.php file location but it's interesting and i need more info. Do http://localhost/ redirects you to http://localhost/atomcms/home? is atomcms a folder? where is your index.php placed?. Please anwser those questions :+1:.

maaka commented 9 years ago

Every project I have has its own individual folder. So http://localhost just shows some generic WAMP index page with some info. So yes each project I have including atomcms has its own folder and in the root of that folder is an index.php file.

<?php include 'config/setup.php';?>
<!DOCTYPE html>

<html>
    <head>
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <title><?php echo $page['title']. ' | ' .$site_title; ?></title>

        <?php include 'config/css.php'; ?>
        <?php include 'config/js.php'; ?>

        <meta charset="UTF-8">

    </head>
    <body>

        <?php include D_TEMPLATE.'/navigation.php'; //Main Nav?> 

        <div class="container">
            <h1><?php echo $page['header'];?></h1>

            <!--sql query has "<p> included" from function-->  
         <?php echo $page['body_formatted'];?>

        </div>
        </div>

       <?php include D_TEMPLATE.'/footer.php';?>

        <?php if($debug ==1) { include 'widgets/debug.php' ;} ?>

    </body>
</html>
creptor commented 9 years ago

the index.php file MUST be in the folder where the project is building. In your case in http://localhost/atomcms

maaka commented 9 years ago

it is image

creptor commented 9 years ago

could you print your screen to see what error you're getting and what it's displaying? Windows: pres windows+pnt

maaka commented 9 years ago

image

creptor commented 9 years ago

It's impossible to have a index.php in the folder atomcms and to get that error, the only clue I have could be just a mistake. You have to make sure you have correctly call the folder... (for url when finding folder or files you must have heck word match, like capitals letters and simbols) if you're not sure just say it.

maaka commented 9 years ago

Ok I think the issue has gone far beyond going back in forth in a forum. I've been in IT long enough to know the magic of a screen share in resolving issues. I've been meaning to do this for awhile so perfect excuse to setup a helpout with Alan!

creptor commented 9 years ago

allright, have fun programing and developing :see_no_evil:. I'll be here if you need me.(just realized you posted a picture, it wasn't loading :cry: )

ghost commented 9 years ago

I don't mean to intrude on this discussion but I consistently make the mistake of not actually starting apache and sql. This causes the same result for me. Sometimes I get in too big a hurry. Sorry for the intrusion.

maaka commented 9 years ago

cndoke, No intrusion at all my friend. I did check to make sure all services were working. I have other apps I'm developing as well, and those were working fine. I've contacted Alan through helpouts. I don't mind spending because this series as a while has helped me out alot. I'm a data center network guy at a .net software company, and no one there knows php. I've dabbled in php in the past. Some opportunities at work have given me a chance to basically dive head first and finally use PHP in real world apps. @creptor no worries I think this can be solved quickly with a one on one.

ghost commented 9 years ago

Good luck! My first exp with php also. I find myself forgetting to start xampp constantly and then feel foolish when I figure it out. Happy coding!

jihane-bo commented 9 years ago

guys please I still need help in this :p @maaka I have the same issue :( same error message .. and I don't wanna move on and let this issue

creptor commented 9 years ago

what are you using? wampp or xampp?

Chriswilldo commented 9 years ago

im using xammp

--- Original Message ---

From: "creptor" notifications@github.com Sent: March 1, 2015 5:44 PM To: "thedigicraft/Atom.CMS" Atom.CMS@noreply.github.com Subject: Re: [Atom.CMS] Clean URLs error (#99)

what are you using? wampp or xampp?


Reply to this email directly or view it on GitHub: https://github.com/thedigicraft/Atom.CMS/issues/99#issuecomment-76638901

creptor commented 9 years ago

xampp users shouldn't have this problem, maybe it's related to your files, please check that those mach with the ones in this repository.

creptor commented 9 years ago

if not, try re-installing xampp first before continuing

jihane-bo commented 9 years ago

no I'm using wamp actually

creptor commented 9 years ago

go here, i'm explaining how to fix this issue #101

creptor commented 9 years ago

I fixed the wamp error for the wamp users in the post #101 check it out.(the files can't be the same for wamp and xampp so i made 2 different fixing files)

Chriswilldo commented 9 years ago

Awesome. Thanks.

jihane-bo commented 9 years ago

thank you so much our hero