linux,php,memcached,memcacheRelated issues-Collection of common programming errors


  • Yair Karmy
    c linux gcc ld dlsym
    I want to link to a shared lib in C. (on Linux)I want to suppress or handle the:”error while loading shared libraries: libxxxx.so: cannot open shared object file: No such file or directory”and continue loading linking to next lib that might resolve the left unresolved symbols.I guess gcc/ld/dlsym options should be used but can not manage to understand how…Does anyone have a clue?

  • Acceptable
    php mysql linux pdo
    EDIT: Figured it out. Here’s the answer that worked for me. Leaving the question up in case others find this solution helpful.To enable PDO in the system PHP:Login to WHMClick Apache UpdateClick Start Customizing Based on ProfileSelect an Apache versionClick Next StepSelect PHP 5Click Next StepSelect a version of PHP 5Click Next StepClick Exhaustive Options List buttonScroll down to the check box labeled PDOClick Save and Build==============================Original ProblemI have a linux server r

  • hugemeow
    linux emacs gdb hacking
    What does the following segmentation fault mean? Fatal error (11)Segmentation faultWhat is a segmentation fault, and what can cause it to happen?The issue arrises once I type, Mx gdb into Emacs,The inputs are shown in this picture the output is shown here.more details:[a]: i build emacs 24.1 on centos 5.3 from source, this build cannot enter gdb mode[b]: also i build emacs 24.1 on debian 5.0, it can use gdb mode without errorso i really don’t know what happened that i cannot use gdb mode in emac

  • Jonathan
    linux git
    I’m trying to run this command:git filter-branch –force –index-filter ‘git rm –cached –ignore-unmatch filename.js’ –prune-empty –tag-name-filter cat — –allbut I keep getting this error:fatal: ambiguous argument ‘rm’: unknown revision or path not in the working tree . Use ‘–‘ to separate paths from revisions, like this: ‘git <command> [<revision>…] — [<file>…]’

  • d3pd
    linux dual-monitor scientific-linux mirror radeon
    I have Scientific Linux 6.5 (2.6.32-431.11.2.el6.x86_64) installed on a Dell OptiPlex 760 with a Radeon HD 3470 graphics card and two displays hooked up to it. I’m having difficulties setting resolutions appropriate for the displays and having the two displays not show the same screen. I am not an expert in Xorg configuration and I would appreciate some assistance in getting things working.The PCI device listing (lspci | grep VGA) for the graphics card is as follows:01:00.0 VGA compatible contro

  • Mat
    linux elf
    Can anyone tell me which process of the operating system loads the ELF(Executable and Linking format) file into RAM ?

  • wvxvw
    linux virtualbox drivers nvidia
    My luck I had couple of older kernels, which work. The new kernel, probably somehow patched by VirtualBox fails to load. What fails is X-server, when it tries to start, here’s the log:[ 14.284] (II) LoadModule: “nvidia” [ 14.284] (II) Loading /usr/lib64/xorg/modules/drivers/nvidia_drv.so [ 14.285] (II) Module nvidia: vendor=”NVIDIA Corporation” [ 14.285] compiled for 4.0.2, module version = 1.0.0 [ 14.285] Module class: X.Org Video Driver [ 14.294] (EE) NVIDIA: Failed to

  • Mat
    linux boot partition linux-kernel
    What is the difference between a bootable and non-bootable partition? I know that a user cannot boot a system from a partition marked non-bootable and can from one marked bootable. I want to know about the underlying differences between these partition flags.

  • Phpdna
    linux postfix smtp
    I have many forks from smtpd in my process list on my webserver. What does this mean?Is my mailbox full? postfix 2662 0.0 0.9 106336 4856 ? S 17:37 0:00 smtpd -n smtp -t inet -u -c -o stress yespostfix 2800 0.0 0.9 106336 4860 ? S 15:59 0:00 smtpd -n smtp -t inet -u -c -o stress yespostfix 3644 0.0 0.9 106336 4864 ? S 13:47 0:00 smtpd -n smtp -t inet -u -c -o stress postfix 3732 0.0 0.9 106336 4872 ? S 14:36 0:00 smtpd -n smtp –

  • derobert
    linux hardware asterisk
    I have been seeing machine check exceptions when trying to call dahdi_cfg (or, sometimes, even on just loading the kernel module) to configure a Digium Wildcard TE420 Quad-Span T1 PCI-E card. Running Debian Wheezy (kernel 3.2.0-4), dahdi kernel modules 2.6.1.Machine check looks something like this (recovered using netconsole; machine is quite dead after MCE):CPU 1: Machine Check Exception: 5 Bank 5: b200121020080400 RIP !INEXACT! 10:<ffffffff810146a3> {mwait_idle+0x7f/0xac} TSC b773cee10f

  • sarnold
    php cakephp
    When I login to my web application it shows an error like:Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 87 bytes) in /gt/2.ps.fo/home/hft/domains/console.fo.spalgo.com/public_html/cake/libs/model/datasources/dbo/dbo_mysql.php on line 775Is there any solution to solve this problem? Why do I get this error?

  • KingCrunch
    php mediawiki
    I have MediaWiki 1.13.3 installed and it has been working fine for a couple years. My web host just upgraded PHP versions on the server from 5.2.17 to 5.3.5, and now all of a sudden I’m getting this error:Warning: Parameter 2 to Parser::parse() expected to be a reference, value given in /usr/www/users/…/includes/StubObject.php on line 58Fatal error: Call to a member function getCacheTime() on a non-object in /usr/www/users/…/includes/Article.php on line 3387What changed in the new version of

  • Peter Mortensen
    php include
    When should I use require_once vs include?The code is in a custom WordPress theme, if that matters.

  • jww
    php encryption openssl
    Why if i put w3Zho+mol6yATVfhqi8KkQ== (“ln -s”)Then this doesn’t work: function cdecrypt($data) {$key = ‘000000’;$iv = ‘1234567812345678’;$decrypted = openssl_decrypt($data, “aes-128-cbc”, $key, 0, $iv);return $decrypted; }$c = urlencode($_GET[‘c’]); $comm = cdecrypt(urldecode($c)); echo $comm;Error:Fatal error: Allowed memory size of 268435456 bytes exhausted(tried to allocate 3095496193 bytes) in /var/www/ai/service.php on line 7 but if i change encrypted string toQYRiSyTwk4r6Js6jNVlziQ== (“l

  • Wiglaf
    php joomla joomla2.5
    I wrote a simple authentication plugin that uses a SOAP webservice to check the username and the password. That works fine.I wanted to have some parameter like the SOAP password in the admin of joomla. So I have added the params in the xml, it shows fine in the admin. When I try to get the value of it the php, I get:Fatal error: Call to a member function get() on a non-objectSo I compared with other authentication and I do it exactly the same way…. I do not understand why it is so.Here is the

  • ing0
    php try-catch fatal-error
    I’ve been playing around with a system I’m developing and managed to get it to cause this:Fatal error: Maximum execution time of 30 seconds exceededIt happened when I was doing something unrealistic, but nevertheless it could happen with a user.Does anyone know if there is a way to catch this exception? I’ve read around but everyone seems to suggest upping the time allowed.

  • Jason Sturges
    php joomla joomla-extensions
    I have installed joomsocial component but when I try to click the joomsocial menu it shows following error:Fatal error: Class ‘FacebookLib’ not found inC:\xampp\htdocs\jatc\components\com_community\libraries\facebook.php on line 49Please help me any one. I am new to joom social component.

  • PeeHaa
    image wordpress memory php
    Please can you help me. I’ve got this fatal error in WordPress. My site has been on for years and worked until a few days ago, This happened when I updated the network and my wordpress multi user install? It only does it on the main site, as it works fine on the sub sites.Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 4890018 bytes) in /home/artygirl/public_html/wp-includes/media.php on line 258It can’t be the memory limit as I fixed that ages ago.

  • Krish R
    php wamp phpexcel
    I arleady posted this question on the CodePlex forum… but to no avail yet…I have developed code that creates an array to hold a report structure and then dumps it into excel. So far it has been working flawlessly (in Window 7 Ultimate) until I upgraded to Windows 7 Enterprise… I am now getting an error which is echoed onto the xlsx file and therefore renders it totally corrupt. I am wondering at this sudden change of behaviour… I copy the error here below. (I am running PHPExcel 1.7.8, v

  • Hiral
    php codeigniter
    In codeigniter i have started one property related project for my client.I am getting an errorFatal error: Class ‘CI_Controller’ not found in H:\php2\htdocs\property\system\core\CodeIgniter.php on line 233 after i have complete some development.I have really search it for many time in google and in stackoverflow but still didn’t get solved.Thanks in advance,

  • kojiro
    monitoring memcached telnet
    I need a telnet client that can take commands from a file or stdin so I can do some quick-and-dirty automatic monitoring of memcached. I thought plink would be good for this, but it seems to be doing something beyond what I need:If I telnet into localhost 11211 and write stats, I get the memcached stats, like so:$ telnet localhost 11211 Trying 127.0.0.1… Connected to localhost. Escape character is ‘^]’. stats STAT pid 25099 STAT uptime 91182 STAT time 1349191864 STAT version 1.4.5 STAT pointer

  • user1690718
    php memcached
    i am using this classwhen i call it like$mem = memcache::singleton();i get the error Fatal error: Cannot redeclare class memcache in any assistance is appreciated guys :)class memcache { protected $mc_servers = array(); protected $mc_servers_count; static $Instance; static function singleton(){ $servers = array(array(‘localhost’=>’11211’)); if(!isset(memcache::$Instance)){memcache::$Instance = new memcache();}return memcache::$Instance;return memcache::$Instance; } protected function __cons

  • CourtDemone
    php mac memcached memcache lion
    I’ve been asked to launch a site that someone else built. It is a WordPress shop site that needs Memcached to run, and I’ve been having troubles getting Memcached and the memcache php plugin working on my local server. Before installing memcached and the memcache PHP plugin, I would get this error:Fatal error: Class ‘Memcache’ not found in [Path]wp-content/object-cache.php on line 350Now that I have memcached and the memcache PHP plugin installed (via Homebrew), I get a “No data received” page,

  • Saurabh Chandra Patel
    php memcached
    php -v : PHP 5.5.10-1+deb.sury.org~precise+1 (cli) (built: Mar 27 2014 16:18:01) Copyright (c) 1997-2014 The PHP Group Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologieswith XCache v3.1.0, Copyright (c) 2005-2013, by mOowith Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologieswith XCache Optimizer v3.1.0, Copyright (c) 2005-2013, by mOowith XCache Cacher v3.1.0, Copyright (c) 2005-2013, by mOowith XCache Coverager v3.1.0, Copyright (c) 2005-2013, by mOodpkg -l | grep ph

  • shyam
    ubuntu nginx php5 memcached
    I have an Ubuntu machine with nginx and memcache running, and I’m trying to use PHP with Memcached. I’m getting Fatal error: Class ‘Memcached’ not found.The ini file is loaded from /etc/php5/fpm/php.ini, and all other additional .ini files are parsed, except memcached.ini (even after restarting nginx) as seen in phpinfo()’s output.I tried apt-get install php5-memcache and it completed without errors. However, pecl install memcached fails with the below error:In file included from /tmp/pear/temp/

  • Ladadadada
    php memcached gentoo
    I am using Gentoo Base System release 2.0.3, apache-2.2.21-r1, php 5.3.8-pl0 and memcached-1.4.5. I have done the following:emerge dev-php/pecl-memcache emerge dev-php/pecl-memcached emerge dev-libs/libmemcache emerge dev-libs/libmemcached all install just fine. I have started memcached and can telnet on the port and run stats command. Of course, I didn’t forget to restart apache. Now, for the PHP part: ls -lh /etc/php/apache2-php5.3/ext-active/ lrwxrwxrwx 1 root root 41 Jan 6 09:5

  • Thrillho
    modules memcached
    I’m trying to install memcached and having no luck getting the site to run in local development using OS X 10.9 Mavericks. The homepage loads, but that’s it. Everywhere else, I get this error:Fatal error: Maximum execution time of 180 seconds exceeded in /Users/me/Sites/mysite/modules/field/modules/field_sql_storage/field_sql_storage.module on line 352I get the error at the same point, no matter what the max_execution_time is set to.I’d love to get this working, but I’d be content just to uninst

  • britebyte
    caching varnish memcached
    I am noob to using both Varnish and Memcached. I have been following some copy and paste install guides.I have both servers installed and running. Memcached seems to be working fine. Varnish is serving pages but there are a lot of cache misses. I am trying to enable the Drupal module to make Varnish aware to cache the pages, the css etc.However, when I copy the settings.php snippet from the README.txt file in the Varnish module to my own settings.php I get a white page and this message in the Ap

  • Fred Yankowski
    drush memcached
    After updating my Drupal test server to have a fresh copy of the database and code from the production system, “drush cc all” would fail with a message saying PHP Fatal error: Call to undefined function user_load() in /usr/share/pear/drush/includes/drupal.inc on line 138I’m running drush version 6.2.0 with a drupal 7.25 system. I’m using memcache as cache_default_class.

  • user3253414
    memcached gentoo
    TERMINAL> php -m … memcache …> php -i | grep -i memcache /etc/php/cli-php5.3/ext-active/memcache.ini memcache memcache support => enabled memcache.allow_failover => 1 => 1 memcache.chunk_size => 32768 => 32768 memcache.default_port => 11211 => 11211 memcache.default_timeout_ms => 1000 => 1000 memcache.hash_function => crc32 => crc32 memcache.hash_strategy => standard => standard memcache.max_failover_attempts => 20 => 20 Registered save hand

  • CourtDemone
    php mac memcached memcache lion
    I’ve been asked to launch a site that someone else built. It is a WordPress shop site that needs Memcached to run, and I’ve been having troubles getting Memcached and the memcache php plugin working on my local server. Before installing memcached and the memcache PHP plugin, I would get this error:Fatal error: Class ‘Memcache’ not found in [Path]wp-content/object-cache.php on line 350Now that I have memcached and the memcache PHP plugin installed (via Homebrew), I get a “No data received” page,

  • slycat
    linux centos memcached memcache
    I did this:sudo yum install memcachedthen sudo pecl install memcachethen I restarted memcache (which actually only started it) with this:sudo /sbin/service memcached restarti have no idea if it will start when I reboot. How do i set that up?also is there any way to set a password on memcache? I’ve limited it to 127.0.0.1 by editing /etc/sysconfig/memcachedand adding this lineOPTIONS=”-l 127.0.0.1″

  • Rick Scolaro
    video-streaming memcache rtmp apc
    MY BUILDI am using a Linux CENTOS 6 server with Plesk 10.4.4 Apache and Wowza Media Server 3. The server is a quad core and has 12GB RAM.WHAT HAPPENED BEFOREI was having a problem with some WordPress websites that utilize lots of CPU when running custom CRON jobs, so I looked for ways to make the server faster.I first installed eAccelerator, and that caused alot of my MYSQL tables to crash and some other problems arose. I uninstalled it and everything went back to normal.Next, I found people w

  • WayneDV
    apache2 php memcache segfault
    Three Apache2 web servers running a PHP 5.2.3 web site. We’re using Memcache to cache rendered pages but also as the storage engine of the PHP Sessions.At peak traffic times we’re getting Apache segmentation faults on all three web servers and all HTTPD child processes segfault. My gut tells me that the increased Memcache traffic is stopping PHP sessions from being created or cleaned up and thus the processes die. Is it possible for someone to confirm that from the following? :#0 _zend_mm_fr

  • Kundra
    php memcache session
    Until recently our setup consisted of 4 web-servers sharing sessions to a single server running memcache. We are hosted on Amazon cloud and had a crash at peak load on 2 consecutive days. The problem was that the memcache service crashed (the load to our site has been increasing steadily).So, we took the following measures:1) Added 2 more servers for storing sessions2) Set following variables in php ini file on all web-serverssession.save_handler = memcachesession.save_path = tcp://ip1.port, tcp

  • user1179459
    linux php memcached memcache
    I have chat engine which is based on the Memcached variables, putting them into arrays and reading them in other end via jquery, which works fine 95% of the times, however when the server load is high memcached (presume its the memcached) the crash and browser gets stucks up.I dont think its jquery issue since this only happens when the server load is very high.I need a way to monitor the memcached servers or somehow write a log file into where the fails/errors comes in…Any idea on how i can d

  • bryan_ruiz
    mysql memcache magento tmpfs
    I have an application (Magento) that has an abstracted session storage layer. I’m trying to visualize the best way to store sessions.mysql Database? I’m thinking a dedicated database with a very large innodb_buffer_pool_size so its basically like RAM Cache with disk backup. I’m thinking of having a seperate DB just for sessions and put the other DB stuff on a separate DB/DB Server.Memcache? This is great but I am a bit concerned with what happens if the server crashes? I would lose that parti

  • quanta
    php redundancy debian-squeeze memcache session
    os: debian squeeze (up2date) 2 apache mod php webserver 2 memcache serveri have to apache mod_php nodes which use two memcache server for redundant session storage (used variant 3 from http://serverfault.com/a/165584). memcache.iniextension=memcache.so[memcache] memcache.dbpath=”/var/lib/memcache” memcache.maxreclevel=0 memcache.maxfiles=0 memcache.archivememlim=0 memcache.maxfilesize=0 memcache.maxratio=0memcache.allow_failover=1 memcache.hash_strategy=consistent memcache.session_redundancy=3ph

  • Sparsh Gupta
    memcache
    We rely heavily on memcache and are serving a few billion requests per month. We have 5 memcache servers. Last night, we saw an 25% increase in our traffic. The graphs show that requests and data transfered by each memcache increased and made them crash. It started a chain reaction and each memcache server crashed one after another (Load per server increased).We found no logs in syslog, messages, memcache log file (Verbose settings was off).I have two questions:How can I find out why exactly thi

  • Citricguy
    performance memcache
    Running seige (load tester) without memcache enabled I see stats similar to this:Transactions: 560 hits Availability: 100.00 % Elapsed time: 59.42 secs Data transferred: 6.25 MB Response time: 1.56 secs Transaction rate: 9.42 trans/sec Throughput: 0.11 MB/sec Concurrency: 14.71 Successful transactions: 543 Failed transactions: 0 Longest tran

Web site is in building