typemill / typemill

Typemill is a lightweight, flat-file CMS designed for simple, fast, and flexible website and eBook creation using Markdown.
https://typemill.net
MIT License
427 stars 60 forks source link

No /setup folder created on installation #333

Open Der-N opened 2 years ago

Der-N commented 2 years ago

I installed typemill 1.5.3.1using OS: openSuSE LEAP 15.3 Webserver: apache2 with PHP7.4 Websites: only typemill directly in /srv/www/htdocs installed, not in subfolder typemill installed by git clone "https://github.com/typemill/typemill.git" composer update .htaccess modifications: www to non-www htdocs-folder ls-l: drwxrwxr-x 12 wwwrun wwwrun 4096 Apr 17 22:56 htdocs

ISSUE: http://localhost redirects directly to http://localhost/setup, but subfolder "setup" has not been created on first call as described. So, http://localhost/setup shows an "404 error" = "object not found" :-( QUESTIONS: Is there a solution already known? Or how can I trace was is going wrong to try to fix it ??

FILES: /var/log/apache2/error_log shows no hints /var/log/apache2/access_log of course shows no hints at all

trendschau commented 2 years ago

sorry for late answer. There is no subfolder "setup", the /setup-url just displays a form and if you submit that form, then it creates a settings.yaml and user-folder and userfile in the /settings folder.

Strange that you get a 404 error.

You can create the settings.yaml-file manually with only one line in it:

displayErrorDetails: true

Then try to visit the page again. It should not redirect to the /setup url anymore and you will hopefully see some errors.

Der-N commented 2 years ago

Hi trendschau,

 

thanks for your reply. I just wanted to be sure, that there is no easy and well-known solution to my problem, which produces identical error-output on different platforms:

Other php websites have no issues and behave as expected on those machines. So i think, my LAMP setups are correct.

 

I am sorry to say, but your advise did not change anything, the result is exactly the same.

 

So, as i know now, that the solution is no easy one, i can start debugging and hopyfully can give some feedback later.

Which are your favourite tools to debug?

And, do you have some routine, which checks, if all prerequisites are met?

 

btw if you are native german,we could procede in German ;-)

 

Best regards,

Norbert

   

Gesendet: Mittwoch, 20. April 2022 um 16:59 Uhr Von: "trendschau" @.> An: "typemill/typemill" @.> Cc: "Der-N" @.>, "Author" @.> Betreff: Re: [typemill/typemill] No /setup folder created on installation (Issue #333)

 

sorry for late answer. There is no subfolder "setup", the /setup-url just displays a form and if you submit that form, then it creates a settings.yaml and user-folder and userfile in the /settings folder.

Strange that you get a 404 error.

You can create the settings.yaml-file manually with only one line in it:

displayErrorDetails: true

Then try to visit the page again. It should not redirect to the /setup url anymore and you will hopefully see some errors.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

trendschau commented 2 years ago

let's proceed in english, it is more useful for users with the same problem.

The problem is hard to analyse from the distance, two ideas are:

Der-N commented 2 years ago

OK, thanks, but both did not have any effect, totally strange.

In order to do a little debugging i turned it into a NetBeans 13 project, which helps, and also not: Running the code with its php build in web server everything turns out to be fine. So in the end, it might be some configuration issue of my webservers, despite my other php-websites are running fine on debian and opensuse. Don't know if i can get some clue, what's going on, to prepare some detection script.

One last question: editing some of the php-files i saw the CR-LF Windows line breaks. Are all of you guys running typemill on windows-based webserver?

trendschau commented 2 years ago

sorry for late reply, I developed with windows at the beginning but switched to linux years ago, so that might be some old stuff from earlier times.

Could you find the error and solve your problem?

matbgn commented 2 years ago

At the very least I reproduced the error from @Der-N within my Dockerfile second attempt but can't figure out till there what append.

None of your debug options provided any advice.... really, really strange...

I will continue the debug process by next week I hope

trendschau commented 2 years ago

good news that someone could reproduce it. That only happens if you install typemill in the root-folder I suppose? I will try to reproduce it this weekend once again and then debug it in the setup files. Hope to find someting...

matbgn commented 2 years ago

For me at the end (in a docker perspective) it was only an issue with rights on directory /var/www/html and subones.

Hope it helps

marceloxp commented 1 year ago

Create .htaccess on root folder with this file contents: https://github.com/typemill/typemill/blob/master/.htaccess

talalash commented 1 year ago

I know it's a bit late, but I had exactly this on a new install today, on Ubuntu 22.04. Having the .htaccess alone doesn't help: you need to tell your webserver that it needs to process it as well. On Apache, something like this:

<Directory /var/www/YOURSITE>
    Options Indexes FollowSymlinks
    AllowOverride All
    Require all granted
</Directory>

Reload Apache. For me, this worked.