Friday, September 27, 2013

My answer to "How to Start the Forum ?"

This is my answer to a Question on Support site for LampCMS project


This means your php installation does not have the 'gd' extension. Do you know how to install or enable the 'gd' extension? It's used for creating the "captcha" image which is used on the registration page.

Friday, September 20, 2013

My answer to "Search Doesn't appear to be searching Titles"

This is my answer to a Question on Support site for LampCMS project


Fist about title search: try searching "searching titles" on this site. You will find this question, confirming that searching by title works.

Second: comments are not added to search index, so searching in comment does not work. This can be changed but will require tweaking indexer and search.

At this time search is powered by MySQL Full text search feature. One thing about MySQL full text search is that it will exclude documents from search results if the results are not unique enough. For example if you have just 3 questions in your new database and 2 of the questiosn have "building widgets" in the title, then searching for 'building widgets' will not return any results because MySQL will consider the results to be too common. I think document must appear in the index in less than 50% of documents to be returned in results.

Read this document:
http://dev.mysql.com/doc/refman/5.0/en/fulltext-natural-language.html

Especially this paragraph:
"The search result is empty because the word "MySQL" is present in at least 50% of the rows. As such, it is effectively treated as a stopword. "

My answer to "lighttpd subdirectory example"

This is my answer to a Question on Support site for LampCMS project


I use lighttpd for hosting this support site and for development I use WAMP at home. So I know it works on Apache and Lighttpd. I have not tried on Nginx myself, just never had time to setup Nginx.

The lighttpd.conf sample file is included with Lampcms distribution, just give it a try. Of cause you must setup php using FPM

Here are some details about FPM
http://php.net/manual/en/install.fpm.php

Saturday, September 7, 2013

My answer to "ACL file for disabling anonymous users to see content"

This is my answer to a Question on Support site for LampCMS project


The viewing of questions and answers is not currently protected by ACL.

What will not logged in user see on the home page? Is user suppose to see list of questions but then clicking on a questions will show some sort of permission error?

If that's what you want you can add this line to the Lampcms/controllers/Viewquestion.php
right about the "protected function main()" line


protected $membersOnly = true;