Page 1 of 1

Problem with missing php extension getting "not found" 404 errors

Posted: Wed Apr 11, 2007 1:49 pm
by pwarwick
It appears that CMSMS uses URLs without the .php extension and in my webserver configuration that results in 404 errors. If I explicitly use .php everything works. So clearly I have two options:

1) Make my webserver search for .php filetypes

2) Make CMSMS add .php to URLs

I don't know which is the right way and how to do it.

Re: Problem with missing php extension getting "not found" 404 errors

Posted: Wed Apr 11, 2007 2:07 pm
by Dee
pwarwick wrote: It appears that CMSMS uses URLs without the .php extension
When does it do that? It should use the .php extension when Pretty URL's aren't enabled.
(the homepage link in the default content points to index.php?page=home for example)

Regards,
D

Re: Problem with missing php extension getting "not found" 404 errors

Posted: Thu Apr 12, 2007 3:47 pm
by Pierre M.
Yes, pretty URLs allows you to make a web site with the URLs you want. I suggest .html.
Pierre M.

Re: Problem with missing php extension getting "not found" 404 errors

Posted: Sat Apr 14, 2007 4:56 pm
by pwarwick
When I click on View Site from the Admin Panel it the URL is http://localhost/~patricia/cmsmadesimple-1.0.5/

This gives me the 404 error because my webserver is only looking for index.html. It does not find that.

I'm very much a NEWBIE as far as CMSMS is concerned so perhaps I am doing something dumb.

Thanks

Re: Problem with missing php extension getting "not found" 404 errors

Posted: Sat Apr 14, 2007 5:36 pm
by Dee
pwarwick wrote: This gives me the 404 error because my webserver is only looking for index.html. It does not find that.
Change theĀ  DirectoryIndex setting of your webserver so it will look for index.php. This is usually done for webservers with PHP support.

Somewhere in the server configuration file (mostly called httpd.conf - assuming it is running apache) you will find a line similar to this:
DirectoryIndex index.html ...
Add index.php to this line (when you place it after index.html the server will first look if a index.html file is present and show that, if not it will try index.php).

Regards,
D

Re: Problem with missing php extension getting "not found" 404 errors

Posted: Sat Apr 14, 2007 6:20 pm
by pwarwick
Thanks, that was the information that I was looking for. I am able to use View Site now. :)