Hi support,
Pls help to resolve this problem. Thank you so much for the best forum open source.
I got this below error:
[Mon Jan 18 08:00:12.764277 2021] [php7:error] [pid 25353] [client 202.176.105.195:57706] PHP Fatal error: Uncaught Error: Class 'Flarum\Foundation\Site' not found in /var/www/html/web/site.php:46\nStack trace:\n#0 /var/www/html/web/public/index.php(10): require()\n#1 {main}\n thrown in /var/www/html/web/site.php on line 46
Server Information
Google Cloud: Ubuntu 18.04.5 LTS (GNU/Linux 5.4.0-1032-gcp x86_64)
Apache/2.4.29
PHP 7.4.14 (cli) (built: Jan 13 2021 08:04:06) ( NTS )
Directory Structure
surachart.mac@instance-3:/var$ cd /var/www/html/
surachart.mac@instance-3:/var/www/html$ ls -ltr
total 4
drwxrwxr-x 5 www-data www-data 4096 Jan 18 07:54 web
surachart.mac@instance-3:/var/www/html$ cd web
surachart.mac@instance-3:/var/www/html/web$ ls -ltr
total 40
drwxrwxr-x 10 www-data www-data 4096 Dec 21 04:53 storage
-rwxrwxr-x 1 www-data www-data 1800 Dec 21 04:53 site.php
drwxrwxr-x 3 www-data www-data 4096 Dec 21 04:53 public
-rwxrwxr-x 1 www-data www-data 634 Dec 21 04:53 flarum
-rwxrwxr-x 1 www-data www-data 265 Dec 21 04:53 extend.php
-rwxrwxr-x 1 www-data www-data 2022 Dec 21 04:53 composer.json
-rwxrwxr-x 1 www-data www-data 2630 Dec 21 04:53 README.md
-rwxrwxr-x 1 www-data www-data 1168 Dec 21 04:53 LICENSE
-rwxrwxr-x 1 www-data www-data 1060 Dec 21 04:53 CHANGELOG.md
drwxrwxr-x 3 www-data www-data 4096 Jan 18 07:48 vendor
httpd.conf
DocumentRoot /var/www/html/web/public
.htaccess
<Directory "/var/www/html/web/public">
AllowOverride All
</Directory>