LibArea / libarea

A platform for collective blogs and social media platform, forum, question and answer service (Q&A). Catalog of sites (programs), site navigation and directories - facets. A community based on the PHP HLEB micro-framework.
https://libarea.ru
MIT License
101 stars 26 forks source link

Installation Help #28

Closed uween closed 1 year ago

uween commented 1 year ago

I tried to install this and i'm using cyberpanel and i have made a composer in my public html "composer create-project libarea/libarea . --stability=beta" but the thing is when i open my website using the domain "mydomain.tld or mydomain.tld/public" nothing worked. what is the issue? does any one know how to fix this?

acem702 commented 1 year ago

You need to program your server to access the index.php from the public folder not the root directory I don't know if a .htaccess file can solve it on cyberpanel

uween commented 1 year ago

when i do that there's an error " mydomain.tld is currently unable to handle this request. HTTP ERROR 500"

uween commented 1 year ago

When i Open "mydomain.tld/public" there's an error "mydomain.tld redirected you too many times. Try clearing your cookies. ERR_TOO_MANY_REDIRECTS"

evgip commented 1 year ago

Look at this post:

https://libarea.ru/post/1359/is-it-possible-to-run-libarea-on-shared-host-through-cpanel

If configured correctly, then you can see: mydomain.tld/favicon.ico

Folder vendor you can say already built at: https://libarea.ru/dev/vendor.zip

uween commented 1 year ago

yes i can see the favicon.ico but ui is not loading

evgip commented 1 year ago

@uween

In the start.hleb.php file (it's at the root), change this line to true:

define('HLEB_PROJECT_DEBUG', true);

or look at the logs at: /storage/logs/

There must be some errors. If it doesn't work for you.

uween commented 1 year ago

start.hleb.php

thanks to you i solved out the above mentioned problem. thank you so much!. but i got an another problem

"Fatal error: Uncaught Error: Class "Parsedown" not found in /mydomain/public_html/app/Services/Parser/Filter.php:14 
Stack trace: #0 /mydomain/public_html/app/helpers.php(82): App\Services\Parser\Filter::noHTML()

#1 /mydomain/public_html/app/Controllers/Post/PostController.php(54): fragment() 
#2 /mydomain/public_html/vendor/phphleb/framework/Constructor/Workspace.php(307): App\Controllers\Post\PostController->index() 
#3 /mydomain/public_html/vendor/phphleb/framework/Constructor/Workspace.php(120): Hleb\Constructor\Workspace->getController() 
#4 /mydomain/public_html/vendor/phphleb/framework/Constructor/Workspace.php(97): Hleb\Constructor\Workspace->renderGetMethod() 
#5 /mydomain/public_html/vendor/phphleb/framework/Constructor/Workspace.php(34): Hleb\Constructor\Workspace->create() #6 /mydomain/public_html/vendor/phphleb/framework/Main/ProjectLoader.php(46): Hleb\Constructor\Workspace->__construct() #7 /mydomain/public_html/vendor/phphleb/framework/bootstrap.php(325): Hleb\Main\ProjectLoader::start() 
#8 /mydomain/public_html/public/index.php(26): require('...') 
#9 {main} thrown in /mydomain/public_html/app/Services/Parser/Filter.php on line 14"
evgip commented 1 year ago

What files did you download and how did you even install the script? Did you use the release or download the latest version from the repository?

This error indicates that the versions of the files in the app and vendor folders are different.

Just download the files that are currently in the repository and add the folder from the archive to them: https://libarea.ru/dev/vendor.zip

or, use the composer yourself for assembly.

https://github.com/LibArea/libarea#for-testing-installation

evgip commented 1 year ago

@uween

Did you manage to install? If you have questions, you can write me private messages on the site or in the chat (link at the bottom of the libarea site), I will try to help.

Below is the compiled archive. You can download the script at:

https://libarea.ru/dev/libarea-0.5.5.zip

https://libarea.ru/post/1370/add-skript-soobshchestva-libarea-v0-5-5

evgip commented 1 year ago

Let's assume the issue is resolved.