开发者

Where should my system and addons folders reside for PyroCMS?

开发者 https://www.devze.com 2023-03-31 20:21 出处:网络
I have just completed a fresh install of PyroCMS on a开发者_StackOverflow dev server and it appears that the system and addons folder reside above the document root folder within \"public_html\".

I have just completed a fresh install of PyroCMS on a开发者_StackOverflow dev server and it appears that the system and addons folder reside above the document root folder within "public_html".

PyroCMS is based off of CodeIgniter and every time I did a CodeIgniter install it always had me place the system folder below the document root for security purposes. Shouldn't this be true with the PyroCMS install?


Modules require assets, which of course means HTTP access is required. We plan to eventually improve the Asset helper to GZIP/minify/combine everything and pass it through an "asset" controller, meaning images can be cached and resized, javascript can be squashed, etc.

Putting everything through a PHP file in this way means eventually you'll be able to have everything outside of the public folder, but for now you need direct access or you are entirely screwing with your chances of having a theme with images, css, javascript or icons.

Just don't tell Apache to serve PHP files as text/plain and you'll be absolutely fine. ;-)

0

精彩评论

暂无评论...
验证码 换一张
取 消