apache2,php,memcached,mongodb,mpm-workerView the original page-Collection of common programming errors

UnKnown Error


  • Saravanan
    apache apache2 ofbiz 2014-2-11 21:57:56
    I have downloaded ofbiz-trunk folder for my ERP project work.I think i downloaded the 9.04 version.Actually downloaded folder has name contains its version.But my colleque has renamed the folder.So, i could not able to identify the version of my ofbiz trunk.Is there any way to find out its version or is it possible at runtime?Is there any config file that mention the version?Please guide me to get out of this issue?

  • Xavier Monfort
    eclipse tomcat apache2 mod-jk 2014-2-11 18:56:34
    I have to work with an apache server connected to tomcat using mod_jk and the apache configured to work with another folder as root folder. In this situation, do you now how how I can configure the Eclipse IDE to be able to edit all java and jsp files in the same IDE ?How can I add a runtime evironment in eclipse to run jsp edited with Eclipse ?best wishes.Xavier Monfort

  • Mike Fullerton
    apache apache2 ubuntu-12.04 phpexcel phabricator 2014-2-8 18:46:52
    I’m trying to install PHPExcel on my Ubuntu server (Ubuntu 12.04.1 LTS – hosted by Amazon EC2). I ran the following commands:sudo pear channel-discover pear.pearplex.net sudo pear install pearplex/PHPExcelThese seem to have installed PHPExcel here: /usr/share/php/PHPExcelI tried adding this include path to /etc/php5/cli/php.ini:include_path = “.:/usr/share/php/PHPExcel”But the module doesn’t seem to be installed? I rebooted the server, apache2, etc.. I’m afraid of killing my webserver by randoml

  • Brad
    apache apache2 apache2-module 2014-2-2 8:09:56
    I’ve looked all over and can’t really find much of anything. I need three basic things:Good API reference Some sort of a tutorial Good architectural overviewI have the module source code and am going through it – but I really don’t have much of any context for most of the things its doing.Any suggestions?

  • msahil
    apache2 2014-1-28 14:06:44
    is there a way to send apache access log entries to oracle database at runtime…analyzing those entries from database instead of parsing access.log file is far better…i found some modules for logging this to myssql database but has somebody done that for oracle?

  • haltabush
    php apache symfony1 apache2 2014-1-27 3:18:56
    I’m trying to change the size limit of an upload. I know I have to change those directive, in Apache configuration (some can’t be changed using ini_set)php_value session.gc_maxlifetime 3600 php_value max_input_time 3600 php_value max_execution_time 3600 php_value upload_max_filesize 10M php_value post_max_size 110MUnfortunately, I can’t do that directly in a <Directory> of my virtualhost, since the directory is always the same (I’m using a front controller, thus all

  • Fiona
    ssl apache2 2014-1-24 1:21:47
    does anyone know the command to determine if OpenSSL and mod_ssl are installed on apache2?Regards, Fiona

  • bybe
    security apache2 httpd.conf 2014-1-15 16:34:19
    I’ve been battle tested on this and failed to achieve my goal which is to deny all access to all directories except the Public directory and only allow access to all all other directories with specific IP addresses.To get Railo+Apache+Tomcat installed I pretty much followed this script: https://github.com/talltroym/Railo-Ubuntu-Installer-Script then verified settings with this tutorial: http://blog.nictunney.com/2012/03/railo-tomcat-and-apache-on-amazon-ec2.htmlFrom the installation script these

  • gsingh2011
    php apache apache2 virtualhost httpd.conf 2014-1-15 16:18:31
    I have my site and it’s staging subdomain running on the same CentOS machine running apache. The subdomain is created using a VirtualHost, and I use it to find any bugs before I push to production. I want the php.ini file for the staging VirtualHost to be a development one, and the production site will use a production php.ini. How can I configure apache to use different php.ini files? I don’t want to use php_value/php_flag for everything, I’d rather just use the php.ini file I already have avai

  • Aleks
    linux debian java apache2 tomcat 2014-1-15 8:43:10
    On http://site.local/java/ need to execute jsp.apt-get update & apt-get upgrade apt-get install sun-java6-jdk \tomcat6 tomcat6-admin tomcat6-common \tomcat6-docs tomcat6-examples \tomcat6-user \libapache2-mod-jkBelow contents configuration filesjk.conf<IfModule jk_module>JkWorkersFile /etc/libapache2-mod-jk/workers.propertiesJkLogFile /var/log/apache2/mod_jk.logJkLogLevel errorJkShmFile /var/log/apache2/jk-runtime-statusJkWatchdogInte

  • Jeff
    php quotes cpanel 2014-2-17 0:21:06
    I have a vps with cPanel/Whm/CentOS 5.5 and the problem is that all parameters sent to my server are being addslashed, I’ve checked out the PHP configuration and i found out that all the magic quotes are turned off and i don’t know what causes this.My code is so clean and i know every bit of it and i don’t have any addslashes() or some sort of these functions. i only want to receive the parameters as they are.URL: test.php?text=blah” ‘ ” ‘blah<?php echo $_GET[“text”]; // Output blah\” \’ \” \

  • Prince Ehsham
    php 2014-2-16 23:53:22
    How to do this by for loop ? I wants to set variable according to their existence in array …if (isset($sort[3])) $c = 3; if (isset($sort[4])) $d = 4; if (isset($sort[5])) $e = 5; if (isset($sort[6])) $f = 6; if (isset($sort[7])) $g = 7; if (isset($sort[8])) $h = 8; if (isset($sort[9])) $i = 9; if (isset($sort[10])) $j = 10; if (isset($sort[11])) $k = 11; if (isset($sort[12])) $l = 12; if (isset($sort[13])) $m = 13; if (isset($sort[14])) $n = 14; if (isset($sort[15])) $o = 15;

  • hakiko
    php windows browser 2014-2-16 20:34:07
    I have an idea, and i have a single php local web page running on localhost and i want to use GUI for 3 buttons : shut down , sleep and restartIs PHP allows to me for these operations? Are there ready to write classes, methods in PHP?

  • Jack
    php upload 2014-2-16 19:44:07
    I am uploading profile images to a directory on the server. The script works fine, however I can’t seem to get anything but small file size images to upload. Anything above about 2mb fails. I don’t have access to the php.ini but I have added the following to htaccess with no luck. I have tried every other solution I can find online with no luck. Any ideas?php_value upload_max_filesize 10M php_value post_max_size 10M php_value max_input_time 400 php_value max_execution_time 400

  • Abilash Amarasekaran
    php google-app-engine sdk 2014-2-16 17:01:53
    I installed the latest SDK for php 1.8.1 and I am having trouble getting it to run locallyD:\google_appengine 1.8.1>dev_appserver.py –php_executable_path=D:\PHP\php-cgi.exe \Testing –port=5000INFO 2013-06-13 03:16:30,931 sdk_update_checker.py:244] Checking for updates to the SDK.INFO 2013-06-13 03:16:32,851 sdk_update_checker.py:260] Update check failed: HTTP Error 404: Not Found**WARNING 2013-06-13 03:16:32,861 api_server.py:314] Could not initialize images API; you are likely missin

  • user2400390
    php windows dll php-extension php-internals 2014-2-16 15:34:41
    I’ve been attempting for a last few days to make use of the operator overloading extension (pecl.php.net/package/operator), which has apparently been updated recently to be compatible with 5.3 and 5.4.I’ve tried compiling it in windows (64-bit Windows 7) using this guide, with PHP 5.4 and Windows SDK 7.1 without luck. So I tried doing it with PHP 5.3 and Windows SDK 6.1 and I can get it to successfully compile with the config “configure –disable-all –enable-cli –enable-operator” and then “nma

  • Christian
    php str-replace 2014-2-16 12:59:48
    I am working on a file that should replace a variable in another file. So far I tried:$File = “$dir/submit.php”; $fh = fopen($File, ‘r’) or die(“Couldn’t edit the Config-file. Please report to admin.”); $chosendb = str_replace(‘$chosendb = comments;’,’$chosendb = wuhuws_$dir;’,’$chosendb’); fclose($fh);$dir is a user input. comments is a table in the database that need to replaced with the prefix_$dir.What do I do wrong?

  • hakre
    php oop 2014-2-16 10:42:35
    I want to call a function every time a method call is made in PHP.Example :$a = new a(); $a->function1();this would make 2 function calls: basicFunction() and then function1()Same would be the case for any subsequent method calls of that class. is this possible in object oriented PHP?

  • Jerome WAGNER
    php configuration precompiling 2014-2-16 9:49:14
    My application gets configured via a lot of key/values (let’s say 30.000 for instance)I want to find the best deployment method for these configurations, knowing that I want to avoid DEFINEs to allow for runtime re-configuration.I have thought ofpre-compiling them into an array via a php file pre-compiling them into a tmpfs sqlite database pre-compiling them into a memcached dbwhat are my options for the best random access time to these configuration (memory is not an issue) ? the best structure

  • Anu
    php mysql 2014-2-16 8:43:48
    I am trying to create a view from another view from php and im not getting any error but it simple does not create a view. I can manually create view from another in the mysql console but not from php. Any idea where I am going wrong?function createTransaction_file($db,$file_id){$sql = “CREATE VIEW transaction_file AS SELECT context,transaction_type,starttime,stoptime,stoptime – starttime AS runtime,correlator,parent_correlator,iteration FROM transactions WHERE file_id =” . $file_id . ” ORDER BY

  • Fernando
    python memcached 2014-2-14 5:00:19
    I need to return a rather big file (11MB) to the user. For certain reasons, I can’t just provide a direct url to the file (http://www.sample.com/mybigfile.exe); instead it must be accessed through code.Instead of having to read it from disk over and over, I thought of saving it in memcached (if this is not a good idea, let me know). Everything seems to work, fine (no errors), but when I try to retrieve the file from memcached I always get None, as if the file wasn’t cached. Is there a size limit

  • Miles Chen
    session tomcat memcached replication cluster-computing 2014-2-13 7:40:05
    I’m looking for Java (Tomcat) equivalent for HttpApplication in ASP.NET. My business requires to store some temporary data globally at runtime. I would like to do it in HttpApplication if I’m using ASP.NET. What is the Java approach with Tomcat?Furthermore, I’m using Tomcat cluster + memcached session manager with non-session sticky in backend. Both session and application data are expected to be replicated in realtime.Any comments? Thanks.

  • StackOverflowNewbie
    php memcached accelerator eaccelerator 2014-2-10 6:03:39
    I am about to launch a CodeIgniter web application. Any recommendations on what I should do to maximize performance of my application? I’m thinking memcached and an accelerator (though I am not sure which one). Suggestions?

  • joseph.ferris
    java memcached abstraction ehcache distributed-caching 2014-2-8 1:42:07
    I plan to use a distributed cache in my load-balanced webapp. So I’m going to try to abstract out the common functions between apache ehcache and memcached.My goal is to be able to make a simple configuration switch to select the caching solution to use. Should I go the SPI route e.g. like how XML parsers are wired in ?

  • Claudiu
    php apache codeigniter persistence memcached 2014-2-6 12:16:51
    I have a CodeIgniter project. I want to use Memcache, but I don’t want to create a new connection every time index.php is loaded (which is on every page load). How can I set up Apache / CodeIgniter so that I always have access to a memcache connection, without having to re-establish it all the time?

  • Chad Johnson
    php memcached 2014-2-5 18:25:47
    I have a class with static methods, and I would like to intercept method calls before the methods are called.So if I call $model = DataMapper::getById(12345);then I want some method in DataMapper to be called before this method is called, and then optionally this intercepting method can subsequently call self::getById(12345). Is there a way to do this?I am implementing Memcache on my server, so that is why I want to intercept method calls. I don’t want the static methods to query the database if

  • ram
    c# serialization caching memcached 2014-1-31 6:27:46
    I have this huge domain object(say parent) which contains other domain objects. It takes a lot of time to “create” this parent object by querying a DB (OK we are optimizing the DB). So we decided to cache it using memcached (with northscale to be specific)So I have gone through my code and marked all the classes (I think) as [Serializable], but when I add it to the cache, I see a Serialization Exception getting thrown in my VS.net output window.var cache = new NorthScaleClient(“MyBucket”); cache

  • lxcid
    php memcached profile execution 2014-1-29 5:26:44
    As all my requests goes through an index script, I tried to time the respond time of all my requests.Its simply the difference between the start time (start of the script) and end time (end of the script).As I cache my data on memcached and user are all served using memcached.I mostly get less than a second respond time but at times there’s wierd spike of more than a seconds. the worse case can go up to 200+ seconds.I was wondering if mobile users had a slow connection, does that reflect on my r

  • Evgeniy Labunskiy
    asp.net-mvc entity-framework memcached 2014-1-28 19:03:55
    We are trying to cache Entities retrived from IDbSet in Memcached with binary serializer. Everything works fine until we try to deserialize entity from cache on subsequent request. Unable to load type System.Data.Entity.DynamicProxies.users_131D253E3297AF73E52D604FD8627E3CE98FBA26BF1FBA904A6774E41F3D1550 required for deserialization.Anybody have any ideas? Do you need code examples?

  • sharru
    asp.net .net caching redis memcached 2014-1-26 11:41:00
    I’m working on asp.net 4 web project , The project is build with 3 sub projects:Site.Admin – Admin Website – ASP.NET Project Site.Core – DB & BL – C# Library Site.Web – Frontend Website. – ASP.NET ProjectThe project is hosted on a Single windows server 32 bitI’m currently using ASP.NET Cache (HttpRuntime.Cache) to cache objects but the problem is that i cant share the cache between Frontend & Admin Websites.From reading StackOverflow and other posts , i understand that the following opt

  • seanhodges
    java mongodb junit integration-testing embedded-database 2014-2-14 8:50:25
    My question is a variation of this one.Since my Java Web-app project requires a lot of read filters/queries and interfaces with tools like GridFS, I’m struggling to think of a sensible way to simulate MongoDB in the way the above solution suggests.Therefore, I’m considering running an embedded instance of MongoDB alongside my integration tests. I’d like it to start up automatically (either for each test or the whole suite), flush the database for every test, and shut down at the end. These tests

  • Jose Sosa
    node.js mongodb express nosql 2014-2-13 20:33:54
    This question already has an answer here:MongoDB Regular Expression Search – Starts with using javascript driver and NodeJS1 answeri am trying to do the equivaleny in mongodb to sql LIKE search, but i cant have the results that i expected, i am follow this mappig sql to monog, but the result json is always empty. if i use a literal string works , but when pass a variable nothing happensapp.get(“/questions/search/:query”, function(req,res){var querySearch = req.params.query;//res.send(querySearc

  • Salman Khalid
    mongodb grails grails-plugin 2014-2-13 8:01:42
    How can I use Aggregation framework in Grails 1.3.7. At the moment i can’t migrate into new version of grails. I have tried grails mongodb plugin 1.0.0.GA but it is using old java driver and gmongo libs. I have also tried to add dependencies for new libs/jars in build-config.groovy but still it is giving me error at runtime for aggregate method. Any help is highly appreciated.

  • illathruz
    mongodb hosting godaddy meteor mongolab 2014-2-12 19:10:48
    I want to use meteor from my own domain.I have a mongoDB hosting account (free via https://mongolab.com/) and a regular GoDaddy shared hosting account. I was a little confused by the documentation at Meteor.com and was hoping somebody could provide steps on how to stop using myapp.meteor.com for example and instead myapp.mydomain.comA link to a tutorial or walkthrough or a even step by step explanation would be great.Even a list of which documentation I should read in a step by step order would

  • I3arnon
    mongodb windows-phone-7 mongodb-csharp 2014-2-11 23:49:02
    I use MongoDb in my Windows Phone project, and I want to connect MongoDB.Bson.dll and MongoDB.Driver.dll. But I have error “Can not add a link because the project was not built with runtime Windows Phone. Projects Windows Phone can only work with assemblies Windows Phone”. I add with button Add reference.. What am I doing wrong? Thank you in advance.

  • Sean Green
    mongodb mongodb-csharp dynamic-linq fluent-mongo 2014-2-11 6:57:59
    I’m using dynamic link to run mapreduce queries and I’m running into a problem when trying to group by multiple values. Check this out:This works fine:var query = contentDeliveryAggregates.AsQueryable().Where(“_id.CId == 1 && _id.CdaId == 1 && _id.From >= @0 && _id.To <= @1”, reportRequest.FromDate, reportRequest.ToDate). GroupBy(“_id.CdaId”, “it”). Select(“new(key,Sum(value.BW) as Bandwidth)”);This does not:var query = contentDeliveryAggregates.AsQueryable().Where(“_

  • Andrey

  • mu is too short
    javascript mongodb nosql 2014-2-10 16:49:59
    I’ve got some dates in my documents and trying to manipulate them. I was expecting the JavaScript to support standard date methods such as the toISOString(), but to my surprise I get an error Database command ‘mapreduce’ failed: (assertion: ‘invoke failed: JS Error: TypeError: entry.start.toISOString is not a function nofile_b:0’; assertionCode: ‘9004’; errmsg: ‘db assertion failure’; ok: ‘0.0’).How can I find out what is supported by the Map Reduce runtime environment?

  • tiran
    mongodb casbah 2014-2-10 15:16:25
    In casbah, there are two methods called .getAs and .getAsOrElse in MongoDBObject, which returns the relevant fields’ values in the type which given as the type parameter. val dbo:MongoDBObject = … dbo.getAs[String](param)This must be using type casting, because we can get a Long as a String by giving it as the type parameter, which might caused to type cast exception in runtime. Is there any other typesafe way to retrieve the original type in the result? This must be possible because the type

  • Amr ElGarhy
    sql database mongodb nosql 2014-2-10 7:42:17
    I am new to NOSQL world and still comparing between nosql and sql databases, I Just tried making few samples using mongodb. I am asking about stored procedures when we send few parameters to one stored procedure and this procedure execute number of other stored procedures in the database, will get data from stored procedures and send data to others.In other words, will make the logic happen on the database side using sequence of functions and stored procedures.Is that behavior or something the

  • Franz See
    apache2 performance-tuning ulimit mpm-worker 2013-12-14 3:11:53
    This question already has an answer here:Can you help me with my capacity planning?2 answersGood day, I want to be able to serve at least 7000 (preferably 10k) concurrent requests from my Apache Httpd. I have configured my httpd.conf with MPM worker with the following setupServerLimit 330 StartServers 25 ThreadsPerChild 25 MaxClients 7500My Apache Httpd server does nothing except do a reverse proxy against a cluster of java app servers and some (disk) caching on

  • user1287874
    apache2 memory mod-fcgid mpm-worker 2013-12-13 19:52:00
    I have spent a week or two researching and setting up my server to run Apache with the Worker MPM and FCID. I am trying to optimize it to allow for the most concurrent connections possible. It has been a nightmare to find good info on the Worker MPM.Server – VPS with 1GB RAM (With Apache off its only using about 150MB of RAM) I would like Apache to have a memory usage CAP of about 750MB – so that my server will never run out of RAM.I have been running the server for about 2 years without any pro

  • dtbarne
    apache2 php memcached mongodb mpm-worker 2013-6-29 19:20:58
    I’m looking to switch a Fedora server running Apache from prefork to worker. Everything seems to be fine except the php libraries for Mongo and Memcache. Has anyone had any success getting these to work with the httpd worker mpm?Note that I installed memcache and mongo like this:yum install php-pecl-memcache php-pecl-mongoOn a whim, I tried copying the .so’s from /usr/lib64/php/modules/ to /usr/lib64/php-zts/modules/, but I got these errors:PHP Warning: PHP Startup: Unable to load dynamic libra