Tuesday, July 30, 2013
Saturday, July 27, 2013
My answer to "How do I generate a sitemap"
This is my answer to a Question on Support site for LampCMS project
First in your www/w directory create subdirectory called 'sitemap'
Make it writable.
Second - from command like issue this command
/path/to/your/php /path/to/your/lampcms/sitemap.php
Here /path/to/your/php is the path to your executable php (cgi version of php) file - usually it is not the same php as used by your web server.
On Windows it will be php.exe file, on Linux it is an executable php file installed with your php installation.
If it does not work look in your logs/cli-php.log file
It should generate the sitemap and index file in the www/w/sitemap/ directory
It will also ping Google, Bing and Yahoo with the locations of you sitemap
If it works then you may want to add this command to your cron file to be executed every day or every week.
You may also add the location of your w/sitemap/index.xml to your robots.txt file
Just add something like this to your robots.txt
Sitemap: http://yoursite.com/w/sitemap/index.xml
Thursday, July 25, 2013
My answer to "LOCALE and LANG problems"
This is my answer to a Question on Support site for LampCMS project
No need to remove database. All you need to do is login to your site as administrator, click on settings and then click on "Clear Cache" link
That will remove all cached translation objects from cache. Translation objects are cached to improve performance because you don't want to parse the xml file on every page load to load translation strings. These are parsed once and then created object is stored in C_Cache mongo collection. It's alot faster to get the object from Mongo then re-create it from xml files on every page load.
Anyway, there is a "Clear Cache" link in settings but it is only visible when you logged in with admin account.
You must clear cache after you change anything in your translation files which are basically xml files with the .xlf extension - in /config/translations/ directory
Wednesday, July 24, 2013
My answer to "What is twitter API_KEY?"
This is my answer to a Question on Support site for LampCMS project
There could be other reasons why twitter login does not appear on your site.
First of all this feature requires the php oauth extension.
If you don't have this extension installed then twitter button will not appear even you you add TWITTER_OAUTH_KEY and TWITTER_OAUTH_SECRET Second - the login block is cached for the duration of the session to optimize performance. You may need to login, then log back out in order to see the changes after you add values forTWITTER_OAUTH_SECRET and TWITTER_OAUTH_KEY
Monday, July 22, 2013
My answer to "Mongo DB in Auth mode"
This is my answer to a Question on Support site for LampCMS project
How does your server config option look like in !config.ini?
Mine is like this: server = "mongodb://127.0.0.1:27017"
To support authentication try something like this:
"mongodb://username:password@127.0.0.1:27017"
If this does not work try replacing this:
in file Lampcms\Mongo\DB.php around line 153
replace $this->conn = new \Mongo($server, $aOptions);
with $this->conn = new \MongoClient($server, $aOptions);
MongoClient was introduced in php mongo driver 1.3.0, so make sure you have at least the 1.3.0 version.
Let me know how it works our for you.
in file Lampcms\Mongo\DB.php around line 153
replace $this->conn = new \Mongo($server, $aOptions);
with $this->conn = new \MongoClient($server, $aOptions);
MongoClient was introduced in php mongo driver 1.3.0, so make sure you have at least the 1.3.0 version.
Let me know how it works our for you.
Wednesday, July 10, 2013
Server was down today due to power supply failure
My Question on Support site for LampCMS project
I noticed that this support site was down this morning, so I opened a ticket with iweb.com and they replied very fast and said that the power supply needed to be replaced.As you can see they have replaced it really fast.
The only thing I had to do was to manually start one process: php-fpm which for some reasons did not start automatically. I was away from my computer for most of the day, that's why it took long.
This is just another proof to me that iweb.com is a pretty good host, seeing how quickly they fixed a server.
Click here to post your reply
My answer to "RSS Feeds Possible?"
This is my answer to a Question on Support site for LampCMS project
What do you want to be included in rss feed?
There is a REST api available for Lampcms, it's part of LampCMS actually, so you can request list of questions and do things like sort by, etc, can even add questions and answers via API using basic authentication.
Subscribe to:
Posts (Atom)