My Setup

First

On first run, I get an immediate error:

Fatal error: Call to undefined function Phile\openssl_random_pseudo_bytes() in C:\xampp\htdocs\phile10\site1\lib\Phile\Utility.php on line 164

Yes, there are many ways to fix this, spent time googleing, but in the end, I shouldn't have to do this. My purpose is just throw a bunch of markdown files into the content folder and IT SHOULD JUST WORK.

My fix was to change line 164 in the Utility.php:

//jacmgr: error on this line; replaced with below
//$rnd = hexdec(bin2hex(openssl_random_pseudo_bytes($bytes)));  //original
$rnd = hexdec(bin2hex(rand(1, $bytes)));                        //replacement by jacmgr

Second

Great. Problem solved. Should be able to see my markdown now! But No..... I get sent to a SETUP page (setup.md). This is hardwired into phile and apparently tied to the config.php change that you are required to make. If the config file is changed then you can go to index, but if you try to refresh the page, you get 404 error becuase phile has now deleted the SETUP PAGE.

Causes confusion when you are excited to just "GO".

ANd some warning in that setup page. Once you set that salt, don;t change it later. Thoughts going through my head? OMG, what if I change it later, what if i use the same value. What's it really used for? There are no passwords in the standard phile, right?

Why the roadblocks to firing phile up!

OK, so I get past that.

Third

Then it seems to run. My suggestions to removing these hurdles?

  • Remove the openssl_random_pseudo_bytes() or offer it as config option that can be set after I see phile running.

  • If you want the encryptionKey, then make the setup page have an if else block and don't automatically delete it. If encryption key is not set, just show the current warning. If it is SET, and the url is setup.md you should redirect to index. Then when newbie refreshes you won't get a 404.

Four

Throw a bunch of markdown folders into the content folder. Yeah! It works.

FIve

Install the ADMIN Plugin So I have to work with config_default. Should be in config only... Is confusing to have to use BOTH. Why not use config default only as template and copy it all to config. System uses config only?

'phile\adminPanel' => array('active' => true)

I tried in config $config['plugins']['phile\adminPanel'] = true;

if did not work

I also noticed that the default plugins ARE NOT FOLLOWING THE 1.0 reccomended standard. If that is so, then do my new plugins agev to folow the standard?

The ADMIN Plugin seems to follow the standard.

SHOULD BE A PHILE VERSION variable. SO I went back to github and the version I ZIP DOWLAED IS OLD VERSION NOT 1.0 series??

Took me a few minutes to get the proper version from GITHUB.

SIX,

really.... turn the cache off in the base distro. Get rod of persistemntc too.,

seven

There is a folder docs that is parallel to content. Somewhere in phile it is treating the folder "docs" specially. Its not in phile just part of how server works, since the folder docs exists, the htdocs is ignored.

So i just moved philedocs to its own folder outside the site.