WonderCMS / wondercms

Fast and small flat file CMS (5 files). Built with PHP, JSON database.
https://wondercms.com
MIT License
642 stars 163 forks source link

Can't install #303

Closed storyandfortune closed 7 months ago

storyandfortune commented 11 months ago

I get the following Fatal Error after unzipping.

Fatal error: Uncaught Exception: Could write to data folder. in /Users/chilelimemango/Sites/local-rick-truhls/index.php:428 Stack trace: #0 /Users/chilelimemango/Sites/local-rick-truhls/index.php(894): Wcms->checkFolder('/Users/chilelim...') #1 /Users/chilelimemango/Sites/local-rick-truhls/index.php(106): Wcms->getDb() #2 /Users/chilelimemango/Sites/local-rick-truhls/index.php(14): Wcms->__construct() #3 {main} thrown in /Users/chilelimemango/Sites/local-rick-truhls/index.php on line 428

running on PHP Version 8.1.16

Jan69 commented 9 months ago

did you correct file permissions to 644 and folder permissions to 755 (and possibly Give correct ownership of the directory where WonderCMS is installed, most likely www-data) ? it certainly sounds like simply wrong file/folder permissions to me, with a typo in the error message

storyandfortune commented 9 months ago

Yeah. I even tried correcting everything to 777 the install would just never complete all the way.

On Oct 3, 2023, at 12:21 PM, jan6 @.***> wrote:

did you correct file permissions to 644 and folder permissions to 755 https://github.com/WonderCMS/wondercms/wiki/500-internal-server-error (and possibly Give correct ownership of the directory where WonderCMS is installed https://github.com/WonderCMS/wondercms/wiki/Other-errors, most likely www-data) ? it certainly sounds like simply wrong file/folder permissions to me, with a typo in the error message

— Reply to this email directly, view it on GitHub https://github.com/WonderCMS/wondercms/issues/303#issuecomment-1745580983, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVSWXKGO3KLR6MRS4IR7PW3X5RQUHAVCNFSM6AAAAAA22W5WUKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBVGU4DAOJYGM. You are receiving this because you authored the thread.

storyandfortune commented 8 months ago

Just tried again…

On Oct 3, 2023, at 12:21 PM, jan6 @.***> wrote:

did you correct file permissions to 644 and folder permissions to 755 https://github.com/WonderCMS/wondercms/wiki/500-internal-server-error (and possibly Give correct ownership of the directory where WonderCMS is installed https://github.com/WonderCMS/wondercms/wiki/Other-errors, most likely www-data) ? it certainly sounds like simply wrong file/folder permissions to me, with a typo in the error message

— Reply to this email directly, view it on GitHub https://github.com/WonderCMS/wondercms/issues/303#issuecomment-1745580983, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVSWXKGO3KLR6MRS4IR7PW3X5RQUHAVCNFSM6AAAAAA22W5WUKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBVGU4DAOJYGM. You are receiving this because you authored the thread.

robiso commented 8 months ago

@storyandfortune this is almost surely related to write permissions for your user. Do you own the host yourself? If not, I would suggest you contact your hosting provider, since this is not a WonderCMS issue, but rather than a PHP configuration with permissions.

storyandfortune commented 8 months ago

I’m running on local host. Could be my install of PHP?

On Nov 1, 2023, at 7:04 AM, Robert Isoski @.***> wrote:

@storyandfortune https://github.com/storyandfortune this is almost surely related to write permissions for your user. Do you own the host yourself? If not, I would suggest you contact your hosting provider, since this is not a WonderCMS issue, but rather than a PHP configuration with permissions.

— Reply to this email directly, view it on GitHub https://github.com/WonderCMS/wondercms/issues/303#issuecomment-1789014483, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVSWXKG2WATFC7GKFXP4CMTYCJJFBAVCNFSM6AAAAAA22W5WUKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBZGAYTINBYGM. You are receiving this because you were mentioned.

robiso commented 8 months ago

This might be helpful: https://duplicator.com/knowledge-base/how-to-fix-file-permissions-issues/

The issue could be that PHP does not have permissions. It might also take some trial and error.

As previously stated by @Jan69, make sure that: the correct ownership of folder is www-data. You can also do some Googling if you need help on how to do that.