Error: "The requested URL /private was not found on this server."
I installed a new fork installation by copying the contents of
default-www into my server, which is
/var/www/, and then copied the library
folder into /var/www/.
The installation went fine.
However, now it's telling me that "The requested URL /private was
not found on this server."
My latest error log is File does not exist:
/var/www/private
So I can't log into the back end.
What's going on?
Attached it my ls -all directory tree.
Comments are currently closed for this discussion. You can start a new one.
Support Staff 2 Posted by tijs on 06 Oct, 2011 07:10 PM
Jaime, are you sure mod_rewrite is enabled?
3 Posted by Jaime on 06 Oct, 2011 07:54 PM
Yep - I'm attaching my virtualhost config entry, and my check to make sure mod_rewrite is enabled.
Support Staff 4 Posted by tijs on 06 Oct, 2011 08:06 PM
Is the error page one that is handled by fork, or is it something that is handled by the web server? If it is handled by the web server, can you check your servers error log?
5 Posted by Jaime on 06 Oct, 2011 09:09 PM
It's a browser error (well, apache).
Here's the log report:
Thanks!
Support Staff 6 Posted by tijs on 07 Oct, 2011 06:14 AM
Seems like your .htaccess isn't used. Can you remove the lines below from the .htaccess file:
7 Posted by Jaime on 07 Oct, 2011 04:41 PM
I've removed everything BUT:
Options -Indexes Options +FollowSymlinksfrom my .htaccess file.
Attached is my .htaccess file, and my vhost configuration.
This is very confusing...don't know why this isn't working. It makes sense in theory.
8 Posted by Dek on 09 Oct, 2011 11:23 AM
I was banging my head on this issue as well. Here was my problem:
a. I had a pre-existing .htaccess file that activated the necessary items (like the Rewrite Engine).
b. I didn't see the .htaccess file included in the ZIP archive from Fork, because my computer automatically unzipped all the files but naturally hides any file whose name begins with a period.
In other words, I didn't have the right htaccess file, and I kept getting this error. Once I figured out there was an .htaccess file hidden in the Fork directory on my computer, I was able to locate it and copy it up to my server.
I suggest to the Fork maintainers that they include the htaccess information in a non-period-prefixed file (perhaps "copy-to-htaccess.txt"), or on a web page, for those of us who have this issue and are either too dull or too tired to figure it out in advance.
9 Posted by Dek on 09 Oct, 2011 12:59 PM
Alternatively, perhaps the installer code could check the htaccess file to make sure it's correct and, if it's not, either install the correct code or suggest it.
Support Staff 10 Posted by tijs on 09 Oct, 2011 03:18 PM
Dek, will be included in the next release, see: https://github.com/forkcms/forkcms/commit/1c01f133f43550745a5ad0885...
tijs closed this discussion on 09 Oct, 2011 03:18 PM.
Jaime re-opened this discussion on 11 Oct, 2011 02:11 PM
11 Posted by Jaime on 11 Oct, 2011 02:11 PM
Confirmed.
I didn't try copying the .htaccess file that was bundled with the download.
I copied the contents of the downloaded .htaccess file into my current, and that fixed it.
It would be helpful to mention it, I'm glad you're looking at it in the next release.
Thanks
12 Posted by Dek on 11 Oct, 2011 04:14 PM
Glad it will be in the next release, tijs.
Also glad this fixed it for you, Jaime.
tijs closed this discussion on 11 Oct, 2011 07:38 PM.