i place apache document root inside partition of ubuntu hard drive, keep getting forbidden message, when place home directory woking find, how be? group or owner affected ? here mysite.conf , apache2.conf when place document root in home folder (working) #site-available/mysite.conf documentroot /home/jono/www #/etc/apache2/apache2.conf <directory /home/jono/www/> options indexes followsymlinks allowoverride none require granted </directory> bu when change document root partition keep getting forbidden messasge #site-available/mysite.conf documentroot /media/jono/website_data/www #/etc/apache2/apache2.conf <directory /media/jono/website_data/www/> options indexes followsymlinks allowoverride none require granted </directory> is owner/group access affected ? or there problem ? at last it's working, have grant access www:data accesing whole directory @mark-b, using chown -r www-data:www-data whole directory is...
i working on mongo 2.x , have updated mongo 3.x updated java mongodb client 3.0.3, have js on mongo server needs executed , js requires 2 object parameters done in previous version this: db database = mongoclient.getdb(db); commandresult cr = database.doeval(js, query, collection); // js string, query basicdbobject , collection list<string> need in running same in place of db getting mongodatabase (as getdb has been deprecated) , doeval replaced runcommand you can in code of original doeval method figure out how this, looks like: public commandresult doeval(final string code, final object... args) { dbobject commanddocument = new basicdbobject("$eval", code).append("args", arrays.aslist(args)); return executecommand(wrap(commanddocument)); } that means you'll need like: document commanddocument = new document("$eval", code).append("args", arrays.aslist(args)); return runcommand(commanddocument); note r...
Comments
Post a Comment