croot / my-imouto-booru

Automatically exported from code.google.com/p/my-imouto-booru
0 stars 0 forks source link

404 Not Found after clicking any link or doing a search on the front page #229

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
** If you can, please create one issue entry per error **

What steps will reproduce the problem?
1.Visit the booru's frontpage
2.Click any link (Post, Comments Tags or Wiki, etc.) or do a search on the 
front page
3.showing 404 not found

What is the expected output? What do you see instead?

I expect the booru works properly when I visit 127.0.0.1:3000 or from other 
client. The front page looks fine, but all the hyperlinks or the search button 
on the page don't work. The apache error log says: 

        File does not exist: /home/pi/myimouto/public/post, referer: http://192.168.0.106:3000/

What version of the product are you using? On what operating system?

I'm trying to use a Raspberry pi to set up a local booru site to manage my CG 
collection. The software versions are:

2014-01-07-wheezy-raspbian + Apache 2.2 + PHP 5.4.4-14 + mysql Ver 14.14 
Distrib 5.5.35

Please provide any additional information below.

I followed the step-to-step guide to configure the booru. One problem is that 
Debian's Apache has a different layout, so I'm not sure if I did the right 
thing. I have added a configuration file in /etc/apache2/sites-available 
containing
        <VirtualHost *:3000>
                ServerAdmin webmaster@localhost
                DocumentRoot "/home/pi/myimouto/public"
                <Directory "/home/pi/myimouto">
                        Options Indexes FollowSymLinks MultiViews
                        AllowOverride None
                        Order allow,deny
                        allow from all
                </Directory>

,and built a symbolic link to it in /etc/apache2/sites-enabled. I also made 
changes in /etc/apache2/ports.conf to have it listen to port 3000.

I also set all files in /home/pi/myimouto as 777 permission, because I have got 
the error message saying 

"PHP Fatal error:  Uncaught exception 'ErrorException' with message 
'fopen(/home/pi/myimouto/log/production.log): failed to open stream: Permission 
denied'"

, and a blank front page. I have fixed it by changing the permission of all 
files. I don't know if this relates to the problem or not, just mention it and 
hope this could help.

Thanks!

Original issue reported on code.google.com by ShiPei....@gmail.com on 3 Mar 2014 at 9:54

GoogleCodeExporter commented 9 years ago
The "404 not found" page, is it generated by your web server? (because the 
booru has its own 404 page too) If it's generated by your web server, then 
something is wrong with your server configuration; there's no redirection to 
index.php. Check if the .htaccess file is being read and used by your server.

Setting 777 to all files is dangerous... but if you're using the files locally, 
it should be fine. The folders that must be writeable are "tmp", "log" and 
"public".

Original comment by asterixvader on 4 Mar 2014 at 3:44