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
in php.ini. change this to
without quote(“”) sign.
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.
if following error appear when try to start mongo in Linux
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
- 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