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

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
pwarwick
Forum Members
Forum Members
Posts: 19
Joined: Tue Apr 10, 2007 3:37 pm

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

Post 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.
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm

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

Post 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
Pierre M.

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

Post by Pierre M. »

Yes, pretty URLs allows you to make a web site with the URLs you want. I suggest .html.
Pierre M.
pwarwick
Forum Members
Forum Members
Posts: 19
Joined: Tue Apr 10, 2007 3:37 pm

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

Post 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
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm

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

Post 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
pwarwick
Forum Members
Forum Members
Posts: 19
Joined: Tue Apr 10, 2007 3:37 pm

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

Post by pwarwick »

Thanks, that was the information that I was looking for. I am able to use View Site now. :)
Locked

Return to “[locked] Installation, Setup and Upgrade”