Jump to content

Memcache Stopped Working After Install Of Xdebug


RobertP

Recommended Posts

I had memcache working with php for almost 2 weeks, (since i set up the pc) i installed xdebug via these instructions http://ubuntuforums....ad.php?t=525257

 

now, memcache does not load, I get include(/var/www/sources/Memcache.php): failed to open stream: No such file or directory

 

Its looking for the Memcache class there, as i am using

 

spl_autoload_register(function($class) {
    include(_SOURCES . $class . '.php');
});

 

phpinfo: http://auth.gludoe.com/php-i-n-f-o.php

Edited by RobertP
Link to comment
Share on other sites

robert@ROBERT-PC ~ $ php -m
[php Modules]
bcmath
bz2
calendar
Core
ctype
curl
date
dba
dom
ereg
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
json
libxml
mbstring
mcrypt
memcache
mhash
mysql
mysqli
openssl
pcntl
pcre
PDO
pdo_mysql
Phar
posix
readline
Reflection
session
shmop
SimpleXML
soap
sockets
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
xml
xmlreader
xmlwriter
zip
zlib




[Zend Modules]

Link to comment
Share on other sites

Ok so you definitely have the PHP extension installed, what about the libmemcached library? Does Apache report any errors during start-up? Run this in a terminal:

 

tailf /var/log/apache2/error.log

 

Then restart Apache and observe the log lines. Anything suspect?

Link to comment
Share on other sites

looks like i am missing more then just memcache :o

 

not sure what happen tho..

 

[Fri Nov 30 12:12:17 2012] [notice] caught SIGTERM, shutting down
PHP Warning:  PHP Startup: Unable to load dynamic library './pdo.so' - ./pdo.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library './curl.so' - ./curl.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library './gd.so' - ./gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library './memcache.so' - ./memcache.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library './mysql.so' - ./mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library './mysqli.so' - ./mysqli.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library './pdo_mysql.so' - ./pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library './mcrypt.so' - ./mcrypt.so: cannot open shared object file: No such file or directory in Unknown on line 0
[Fri Nov 30 12:12:18 2012] [notice] Apache/2.2.22 (Ubuntu) PHP/5.4.6-1ubuntu1.1 configured -- resuming normal operations

Link to comment
Share on other sites

Wow omg, from my previous post I realized that php was trying to load the extensions from "./" ... i added xdebug to the php.ini for apache manually, and i uncommented extension_dir = "./", commenting that line out (since extensions are loaded dynamically any ways) has solved my problem.

 

thank you everyone that has helped, my problem is solved; also got xdebug working properly xD

Edited by RobertP
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.