Skip to content
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.

Error loading page on the /bbs page #26

Closed
vore opened this issue Dec 9, 2012 · 20 comments
Closed

Error loading page on the /bbs page #26

vore opened this issue Dec 9, 2012 · 20 comments

Comments

@vore
Copy link

vore commented Dec 9, 2012

Hello to All!
I installed BicBucStriim and everything looks fine so far. Only problem: I need to add " index.php "to the URL. If I just try http:///bbs I can see the nice user interface but clickin on a button only reports "error loading page". Using http:///bbs/index.php does show some text user interface but I can see my books. Any Ideas?
I have added " :/volume1/ebook "to my open_basedir. Calibre database is directly located in /volume1/ebook.

Thank you!

VoRe

@rvolz
Copy link
Owner

rvolz commented Dec 9, 2012

So the initial configuration dialog worked? Were you able to save your configuration correctly, no errors displayed?

To be able to store the configuration properly the data directory must be writeable.

@rvolz
Copy link
Owner

rvolz commented Dec 9, 2012

You could also check that the file .htaccess exists. It is responsible for the path magic with index.php.

PS: Did you try to reboot? I am asking because many strange problems were solved this way. Apparently sometimes the NAS software gets stuck with PHP applications.

@vore
Copy link
Author

vore commented Dec 9, 2012

Hi!
I had some problems when saving the config the first time. But this was because of the missing open_basedir. After adding the path it was Ok.
Data is writable, I check this. Where is the .htaccess located? I could not find it. Could be the problem then. Should it be located in the base dir (just below bbs)?
I already restarted, did not solve the problem. By the way I'm using a Synology NAS.

Regards

@rvolz
Copy link
Owner

rvolz commented Dec 9, 2012

The .htaccess file is located in the bbs directory. It is included in the ZIP archive.If it wasn't unpacked then you should try a different unzip application.

The file should contain this:

  <IfModule mod_rewrite.c>
    Options -MultiViews
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php [QSA,L]
  </IfModule>
´´´

@vore
Copy link
Author

vore commented Dec 9, 2012

That was the problem. .htaccess file was not unpacked properly.
Thanks for your help.

Regards

@rvolz
Copy link
Owner

rvolz commented Dec 10, 2012

Glad to hear that it works. Thanks for the feedback, I'll add a test for htaccess existence to the new installation check in 1.0.
Rainer

@rvolz rvolz closed this as completed Dec 10, 2012
rvolz added a commit that referenced this issue Dec 11, 2012
@getwet
Copy link

getwet commented Aug 11, 2013

Hi,
sorry that i´m answering to a closed issue, but this discription is the same i´ve got.
Unfortunatly this solution doesn´t help´s for me.
I´m happy to found this project and can add my calibre library to my webserver.

Here´re my steps:
Starting http://server/bbs/ shows "The requested URL /bbs/admin was not found on this server.".
Then i try http://server/bbs/installcheck.php
Environment checks
Apache web server? Yes, Apache/2.2.16 (Debian).
PHP version 5.2+? Yes, found version 5.3.3-7+squeeze16.
Does .htaccess exist? Yes.
Is URL rewriting enabled? Yes.
Is Mcrypt enabled? Yes.
Is Sqlite3 installed? Yes.
Is GD version 2 (or higher) installed? Yes, found version 2.0.
Is the open_basedir restriction in effect? No.
Is the data directory writeable? Yes.
Is data/data.db writeable? Yes.
All the installcheck point are green

I opened the page http://server/bbs/index.php and routed to http://server/bbs/index.php/admin/, filled out the admin form and save the page. All ok, with no error.
Now i goto start (http://server/bbs/index.php/), can see my books with screenshots and can download them. At page http://server/bbs/ i´ve got the cool design, but on every klick i´ve got "Error loading page"!

At my server log i can see:
File does not exist: /var/www/bbs/titleslist
File does not exist: /var/www/bbs/admin
File does not exist: /var/www/bbs/titles

I don´t know what the problem is and need your help.

Thanks

Regards
getwet

@rvolz
Copy link
Owner

rvolz commented Aug 12, 2013

It seems that the configuration in the .htaccess file is not sufficient for your Apache server, so you don't get proper routes and therefore then the loading errors. You could try to add a RewriteBase instruction:

RewriteEngine On
RewriteBase /bbs/   # <--- new
RewriteCond %{REQUEST_FILENAME} !-f

Does that change antything?

@getwet
Copy link

getwet commented Aug 12, 2013

Hallo Herr Volz,

wir können auch auf deutsch schreiben.
Das hat leider nichts gebracht. Fehler bleibt.
Die Server Log zeigt noch einen Fehler mit magic quote:
Deprecated: Directive 'register_long_arrays' is deprecated in
PHP 5.3 and greater in Unknown on line 0



Deprecated: Directive 'magic_quotes_gpc' is deprecated in PHP
5.3 and greater in Unknown on line 0

Vielleicht hat das etwas damit zu tun.

Schönen Gruß
Ralf

Am 12.08.2013 08:59, schrieb Rainer Volz:

It seems that the configuration in the .htaccess file is not
sufficient for your Apache server, so you don't get proper routes and
therefore then the loading errors. You could try to add a
/RewriteBase/ instruction:

|RewriteEngine On
RewriteBase /bbs/ # <--- new
RewriteCond %{REQUEST_FILENAME} !-f
|

Does that change antything?


Reply to this email directly or view it on GitHub
#26 (comment).


Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten dieses Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.

This e-mail contains confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden.

@rvolz
Copy link
Owner

rvolz commented Aug 12, 2013

Die Warnungen betreffen Einstellungen in der php.ini Datei, nicht im Code. Wie wurde denn bbs installiert: aus einem der Installationsarchive, oder via git?

@getwet
Copy link

getwet commented Aug 12, 2013

Aus dem Installationsarchive. Wie im issue angegeben.

Am 12.08.2013 09:35, schrieb Rainer Volz:

Die Warnungen betreffen Einstellungen in der php.ini Datei, nicht im
Code. Wie wurde denn bbs installiert: aus einem der
Installationsarchive, oder via git?


Reply to this email directly or view it on GitHub
#26 (comment).


Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten dieses Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.

This e-mail contains confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden.

@rvolz
Copy link
Owner

rvolz commented Aug 12, 2013

Und die Auswertung der .htaccess Dateien ist beim Server auch sicher eingeschaltet? Installcheck sagt, dass alle nötigen Module da sind. Wenn technisch alles da ist, und eigentlich auch funktionert, das URL-Rewriting aber nicht stattfindet, bleibt eigentlich nur noch so etwas als Fehlerquelle. (Bei NAS-LAufwerken half seltsamerweise manchmal auch ein Neustart.)

@getwet
Copy link

getwet commented Aug 12, 2013

Ich verstehe es auch nicht. Ich habe mir eine phphinfo.php angelegt. Die
listet unter:
Loaded Modules = mod_rewrite
url_rewriter.tags = a=href,area=href,frame=src,input=src,form=,fieldset=

Am 12.08.2013 09:47, schrieb Rainer Volz:

Und die Auswertung der .htaccess Dateien ist beim Server auch sicher
eingeschaltet? Installcheck sagt, dass alle nötigen Module da sind.
Wenn technisch alles da ist, und eigentlich auch funktionert, das
URL-Rewriting aber nicht stattfindet, bleibt eigentlich nur noch so
etwas als Fehlerquelle. (Bei NAS-LAufwerken half seltsamerweise
manchmal auch ein Neustart.)


Reply to this email directly or view it on GitHub
#26 (comment).


Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten dieses Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.

This e-mail contains confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden.

@rvolz
Copy link
Owner

rvolz commented Aug 12, 2013

Das sieht ok aus. WIe ist es mit der httpd.conf? Ist das Override dort eingeschaltet?

<Directory "/var/www">
   AllowOverride All

@getwet
Copy link

getwet commented Aug 12, 2013

Ist gesetzt auf:
DocumentRoot /var/www/

Options FollowSymLinks

AllowOverride None

            AllowOverride All
    </Directory>
    <Directory /var/www/>
            Options Indexes FollowSymLinks MultiViews
            AllowOverride None

AllowOverride All

            Order allow,deny
            allow from all
    </Directory>

Am 12.08.2013 12:11, schrieb Rainer Volz:

Das sieht ok aus. WIe ist es mit der httpd.conf? Ist das Override dort
eingeschaltet?

|<Directory "/var/www">
AllowOverride All
|


Reply to this email directly or view it on GitHub
#26 (comment).


Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten dieses Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.

This e-mail contains confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden.

@rvolz
Copy link
Owner

rvolz commented Aug 12, 2013

Dann ist es wohl das AllowOverride None für "/var/www". Dort sollte All stehen.

@getwet
Copy link

getwet commented Aug 12, 2013

Komischerweise habe ich 2 einträge:

    DocumentRoot /var/www/
    <Directory />
           Options FollowSymLinks

AllowOverride None

            AllowOverride All
    </Directory>
    <Directory /var/www/>
            Options Indexes FollowSymLinks MultiViews
           AllowOverride None

AllowOverride All

            Order allow,deny
            allow from all
    </Directory>

Wenn ich im Abschnitt:
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews

           AllowOverride None

AllowOverride All

            Order allow,deny
            allow from all
    </Directory>

All aktiviere, bekomme ich "Internal Server Error 500"!

Am 12.08.2013 14:23, schrieb Rainer Volz:

Dann ist es wohl das /AllowOverride None/ für "/var/www". Dort sollte
/All/ stehen.


Reply to this email directly or view it on GitHub
#26 (comment).


Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten dieses Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.

This e-mail contains confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden.

@rvolz
Copy link
Owner

rvolz commented Aug 12, 2013

Hm, dann würde ich erst einmal die Serverkonfiguration aufräumen. Sie sollte z.B. so aussehen

    DocumentRoot /var/www
<Directory />
    Options FollowSymLinks
    AllowOverride All
</Directory>
<Directory /var/www/>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride All
    Order allow,deny
    allow from all
</Directory>

Dann ist die Standardkonfiguration von einem Raspberry Pi mit Debian. Dann sollte die Auswertung von lokalen .htaccess Dateien gelingen.

@getwet
Copy link

getwet commented Aug 12, 2013

Die Auswertung der .htaccess Dateien funktioniert.
Wenn ich die AllowOverride All Option in der default config aktiviere
bekomme ich in der error.log die Meldung:
/var/www/.htaccess: AllowOverride not allowed here
Dort ist die Option auf AllowOverride FileInfo gestetzt, die ich für
eine andere Webseite brauche.
Hier sitzt das Huhn im Ei!

Am 12.08.2013 14:56, schrieb Rainer Volz:

Hm, dann würde ich erst einmal die Serverkonfiguration aufräumen. Sie
sollte z.B. so aussehen

| DocumentRoot /var/www

Options FollowSymLinks
AllowOverride All

<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all

|

Dann ist die Standardkonfiguration von einem Raspberry Pi mit Debian.
Dann sollte die Auswertung von lokalen .htaccess Dateien gelingen.


Reply to this email directly or view it on GitHub
#26 (comment).


Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten dieses Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.

This e-mail contains confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden.

@getwet
Copy link

getwet commented Aug 12, 2013

Das Problem lag an der AllowOverride. Ich habe die .htaccess in das
entsprechende Unterverzeichnis verschoben und angepasst. Dann hat auch
die .htaccess im bbs Verzeichnis gewirkt. Jetzt geht´s.

Muchas grazias

Am 12.08.2013 14:56, schrieb Rainer Volz:

Hm, dann würde ich erst einmal die Serverkonfiguration aufräumen. Sie
sollte z.B. so aussehen

| DocumentRoot /var/www

Options FollowSymLinks
AllowOverride All

<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all

|

Dann ist die Standardkonfiguration von einem Raspberry Pi mit Debian.
Dann sollte die Auswertung von lokalen .htaccess Dateien gelingen.


Reply to this email directly or view it on GitHub
#26 (comment).


Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten dieses Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.

This e-mail contains confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants