RobertP Posted November 29, 2012 Share Posted November 29, 2012 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 Link to comment https://forums.phpfreaks.com/topic/271349-memcache-stopped-working-after-install-of-xdebug/ Share on other sites More sharing options...
PFMaBiSmAd Posted November 29, 2012 Share Posted November 29, 2012 Is the path displayed in the error message correct? Does the capitalization of the filename match what the actual file is? Link to comment https://forums.phpfreaks.com/topic/271349-memcache-stopped-working-after-install-of-xdebug/#findComment-1396188 Share on other sites More sharing options...
RobertP Posted November 29, 2012 Author Share Posted November 29, 2012 Ok, this is my site http://auth.gludoe.com/ Memcache is not a file, its loaded from an extension.. if i said i was receiving this error Fatal error: Class 'Memcache' not found, would it make more sense? The reason i get a different error is because i use 'spl_autoload_register' Link to comment https://forums.phpfreaks.com/topic/271349-memcache-stopped-working-after-install-of-xdebug/#findComment-1396190 Share on other sites More sharing options...
Adam Posted November 29, 2012 Share Posted November 29, 2012 If you run "php -m" from a terminal, do you see memcache in there? Link to comment https://forums.phpfreaks.com/topic/271349-memcache-stopped-working-after-install-of-xdebug/#findComment-1396256 Share on other sites More sharing options...
RobertP Posted November 30, 2012 Author Share Posted November 30, 2012 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 https://forums.phpfreaks.com/topic/271349-memcache-stopped-working-after-install-of-xdebug/#findComment-1396350 Share on other sites More sharing options...
Adam Posted November 30, 2012 Share Posted November 30, 2012 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 https://forums.phpfreaks.com/topic/271349-memcache-stopped-working-after-install-of-xdebug/#findComment-1396415 Share on other sites More sharing options...
RobertP Posted November 30, 2012 Author Share Posted November 30, 2012 looks like i am missing more then just memcache 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 https://forums.phpfreaks.com/topic/271349-memcache-stopped-working-after-install-of-xdebug/#findComment-1396504 Share on other sites More sharing options...
RobertP Posted November 30, 2012 Author Share Posted November 30, 2012 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 Link to comment https://forums.phpfreaks.com/topic/271349-memcache-stopped-working-after-install-of-xdebug/#findComment-1396505 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.