Page 1 of 1

Installed ok, but I get 404 for index.php. Update: fixed it!

Posted: Fri Sep 08, 2006 10:31 pm
by WebGirl
Hi there, I got the 'install complete' message, but continue to get a 404.

I created an index.html with a redirect to index.php

still doesn't work

and I just noticed this on the install 'complete' page:
Thanks for installing CMS: CMS Made Simple.

Importing initial data...Invalid query: INSERT INTO cms_additional_htmlblob_users ( ADDITIONAL_HTMLBLOB_USERS_ID, USER_ID, HTMLBLOB_ID ) VALUES ( 6, 1, 5 );
Could this be why I can't see the index page yet?

Also, I have installed CMSMS just once before, over another website I had created in a web builder online.

I've looked at the files in the root level of that other install to see what's different, and the only thing I can see is an additional 3 files -  3 .htaccess files - I opened one and it mentioned the web builder I had previously used.

Being adventurous :) I copied these 3 files over and changed the url ... but nope, didn't work.

Any ideas?

I also tried to get into the Admin area and got this msg:
Not Found
The requested URL /admin/login.php was not found on this server.
Just checked permissions on 'admin' folder - 755.

login.php is 644.

Hmmm, I followed the install user manual and changed the chmod for folders specified.

Help! :)

Re: Installed ok, but I get 404 for index.php

Posted: Sun Sep 10, 2006 5:33 am
by WebGirl
Over the past 24 hrs I've read all the forum posts about 404, and install problems, but still can't solve this or get it to work. :(

Re: Installed ok, but I get 404 for index.php

Posted: Sun Sep 10, 2006 8:38 am
by ID2020
You said that you have a htaccess file. Delete it and see if it works.
Worked for me.

Then make a new htaccess file and put the lines of code back one by one.

Here is an example how my htaccess file looks.

# Options +FollowSymLinks
RewriteEngine on
RewriteBase /

# Rewrites urls in the form of /parent/child/
# but only rewrites if the requested URL is not a file or directory
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteRule ^(.+)$ index.php?page=$1 [QSA]

hope it helps.

Greetz ID2020

Re: Installed ok, but I get 404 for index.php

Posted: Sun Sep 10, 2006 11:27 am
by WebGirl
Hi there ID2020,

I was just logging back in to say I managed to get it to work!

I deleted all files, deleted the database, and started from scratch.

Except ... I left 3 htaccess files in the root directory, as that worked for my last successful install.

I proceeded with each of the steps and voila! it worked!

I've been adding content the past hour, very happy.

And thanks too for your tip on the htaccess file - I'll save that for next time, it might be better just to copy that than to have the 3 files I copied over this time.

WebGirl is happy!  ;D