Tobi | 2020-10-04 12:54:32 UTC | #1
Po zainstalowaniu silnika forum i przejściu na stronę ze ścieżką /flarum
ukazuje się ten błąd:
<?php
/*
* This file is part of Flarum.
*
* For detailed copyright and license information, please view the
* LICENSE file that was distributed with this source code.
*/
$site = require '../site.php';
/*
|-------------------------------------------------------------------------------
| Accept incoming HTTP requests
|-------------------------------------------------------------------------------
|
| Every HTTP request pointed to the web server that cannot be served by simply
| responding with one of the files in the "public" directory will be sent to
| this file. Now is the time to boot up Flarum's internal HTTP server, which
| will try its best to interpret the request and return the appropriate
| response, which could be a JSON document (for API responses) or a lot of HTML.
|
*/
$server = new Flarum\Http\Server($site);
$server->listen(); <?php
/*
* This file is part of Flarum.
*
* For detailed copyright and license information, please view the
* LICENSE file that was distributed with this source code.
*/
$site = require '../site.php';
/*
|-------------------------------------------------------------------------------
| Accept incoming HTTP requests
|-------------------------------------------------------------------------------
|
| Every HTTP request pointed to the web server that cannot be served by simply
| responding with one of the files in the "public" directory will be sent to
| this file. Now is the time to boot up Flarum's internal HTTP server, which
| will try its best to interpret the request and return the appropriate
| response, which could be a JSON document (for API responses) or a lot of HTML.
|
*/
$server = new Flarum\Http\Server($site);
$server->listen();
Na oryginalnych forach tego silnika, rozwiązaniem jest zmiana w pliku index.php
, jednak u mnie ten plik nie istnieje. Czy wystarczy go stworzyć?
KrEdEnS | 2020-10-04 13:01:07 UTC | #2
@Tobi W poradniku piszą o edycji index.php a następnie site.php
https://github.com/flarum/flarum/tree/master/public
https://share.kredens.ovh/YcIGWJfAtw.png
Źródło: https://docs.flarum.org/install.html#folder-ownership
KMatuszak | 2020-10-04 13:01:48 UTC | #3
W jaki sposób zainstalowałeś serwer WWW oraz PHP?
Tobi | 2020-10-04 13:11:11 UTC | #4
Trochę nie zrozumiałem pytania. Jeśli chodzi o komendę to: sudo apt install apache2
, a PHP komendą sudo apt-get install software-properties-common
i sudo add-apt-repository ppa:ondrej/php
KMatuszak | 2020-10-04 13:42:37 UTC | #5
Podaj wszystkie komendy lub podlinkuj poradnik z którego skorzystałeś :slightlysmilingface:
Tobi | 2020-10-05 10:41:55 UTC | #6
https://websiteforstudents.com/install-flarum-on-ubuntu-16-04-17-10-18-04-with-apache2-mariadb-php-7-1-and-lets-encrypt-ssl-tls-certificates/
blinkz8 | 2020-10-14 13:54:08 UTC | #7
Czy na pewno prawidłowo zainstalowałeś PHP? Wygląda to na to, że kod PHP nie wykonuje się na twoim serwerze Apache. Wykonaj krok, który zresztą był opisany z poradnika, którego używałeś:
i daj znać o rezultatach.
Tobi | 2020-10-14 16:52:02 UTC | #8
Dzięki za zaangażowanie, lecz temat już nieaktualny.
system | 2020-11-15 16:52:08 UTC | #9
Ten temat został automatycznie zamknięty 32 dni po ostatnim wpisie. Tworzenie nowych odpowiedzi nie jest już możliwe.