Saturday, April 28, 2012

My answer to "Subdirectory installation problems"

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


Actually I looked into this little further and realized that this is not an easy thing to do right now.
The rewrite rules have to be changed as well as a new functionality have to be added to site to automatically
prefix all generated urls with some type of constant like WWW_BASE_DIR

I will treat this as a feature request and will work on it.

Wednesday, April 18, 2012

My answer to "Math symbols support"

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


This has been asked before.

http://support.lampcms.com/q1120/Math-symbols-supported

If you can post a UTF-8 char of math symbol it will be rendered in Lampcms without any problem

I will have to research this further in case it cannot be solved just by using UTF-8

My answer to "Error in Exception handler: : file_put_contents(php.log): failed to open stream: Permission denied"

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


This means that program cannot write to php debug log.
What this also means is that there was some kind of exception thrown, then exception handler tried to write the error message to php debug log and was unable to do it.

The default debug log is located in www dir, which is a bad place to have your log file.
You should set a path to your own writable directory where you want to keep debug log.
Look in your !config.ini file - search for LOG_FILE_PATH setting and edit it.
Set it to full path to your own writable directory anywhere on your server.
For example something like /var/logs/lampcms.log

Sunday, April 8, 2012

My answer to "Right to Left Laguages"

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


Tought question. I have not tried it. You can try creating a translation .xlf file based on the russian translation file and see it it will make any sense.

In translations folder copy messages.ru.xlf to your own language, for example messages.ir.xlf then translate all strings to your language.

You will also have to add your language to the [LOCALES] section of !config.ini
for example, add ir = "Iran"

This will add a language to the drop down language selections. (you may need to also go to settings link and click on clear cache and also may need to logout and log back in to see the changes since translation object is cached and may be stored in session)

Wednesday, March 21, 2012

My answer to "LampCMS vs OSQA.net"

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


Yes, but it's Python and also uses Django framework and MySQL or some other type of Relational database. This program uses php and MongoDB. It's also light, no unnecessary frameworks, I wrote 90% of classes myself, the 10% is paginator from PEAR, EventDispatcher which I rewtore for php 5.3 and ACL from Zend which I also modified to be fully serializable to the ACL object can be stored in cache.

Another class from PEAR is HTML Sanitizer which is pretty good if used together with optional php tidy extension.

This program also has read/write REST API, not documented yet but you can search this forum for API. Basically you can already create some type of APP with it, be it for Android, HTML5 based app or just integrate with another program.

API even has feature to allow developers to register their own app, just you would do on Twitter developer site, can even upload your apps image.

There is still alot of work to be done, I plan to continue working on it every time I have some extra time.

My answer to "What was the motivation behind creating LampCMS?"

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


OSQA is written in Python and uses MySQL. I am not all that good at Python.
But I am pretty good at php, have been using it for almost 14 years now.

I also wanted to go with NoSQL database so that a Q&A site can grow to almost unlimited size without slowing down much. I have been using MySQL for many years, in fact using it daily at my current job and I know that at certain point when database grows in size the performance take a hit. This usually happens very suddenly, not gradually and then it's a never-ending battle to optimize your database, constant tweaking configuration, etc.

I think MongoDB is pretty good for the Q&A site. Q&A sites don't have an overly complicated business logic, no need to complex relational joins in queries.

At the time I started this project there were no other php/mongodb based Q&A sites.



Sunday, March 11, 2012

My answer to "How can i use the api??"

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


More about the API
There is a page that allows a developer to register their app and to get an API key.
Some api methods require an api key and you as admin can also set a daily limit of api requests, this limit is per app. Also admin may be able to disable an access to the api based on the api key.

You can provide a link to register the APP at the /viewapps/ url
If user does not have any apps registered, they are redirected to a page to create their first app.

You can try it here:
http://support.lampcms.com/viewapps/

Once a client has a unique API key, they should add it to api call, like this:
&apikey=theirkey

For POST methods a client must pass apikey as a post parameter

API also supports basic authentication where username and password of actual site user maybe passed in headers - this is based on the HTTP basic authentication RFC.

You are strongly advised to use https ONLY for such requests as username and password will be send over the network in clear text.