Magento/PHP create new session every refresh

I had problem with php session. When I reload the page it create new session ID.  Finally I fixed the problem. If you did not set the session.save_path by default it will be like


session.save_path="/tmp/"

in php.ini. change this to


session.save_path=/tmp

without quote(“”) sign.
 

Share/Bookmark

How to restore Couchbase Views to another Data bucket?

I was Struggling for restoring my couchbase views from one Data Bucket to another. This is useful when you are still in development phase and want to change Data or create new bucket from existing one. Easiest way to do is just copy a file name “master.couch.X” which is located inside the same directory as bucket name. Here is detail how can it be done

Let’s suppose you have bucket name “A”  and data directory is /var/lib/couchbase/data/ inside this there is a directory  A which represent bucket A. let’s suppose you created new data Bucket “B” so there is another directory with name “B”.  stop the couchbase server(service) and copy the file  /var/lib/couchbase/data/A /”master.couch.X”  (here X can be any number)  to   /var/lib/couchbase/data/B/ and  Start Couchbase service.

Now It should shows views in Admin section. :)

Mongo DB: JavaScript execution failed: Error: couldn’t connect to server 127.0.0.1:27017 at src/mongo/shell/mongo.js:L112

if following error appear when try to start mongo in Linux

JavaScript execution failed: Error: couldn’t connect to server 127.0.0.1:27017 at src/mongo/shell/mongo.js:L112

here is the solution:

Open Terminal and type following command
First Stop service

sudo service mongodb stop

Then remove the Mongo log file with following

sudo rm /var/lib/mongodb/mongod.lock

then change the permission of the Mongo Library and give full control to mongodb

sudo chown -R mongodb:mongodb /var/lib/mongodb/

Finally start Mongo service

sudo service mongodb start

(update)

For windows,

  • go to services.msc stop MongoDB service.
  • then go to your data directory of Mongodb
  • there is one “.lock” file, delete it.
  • start MongoDB service
  • Done
eXTReMe Tracker