archive-com.com » COM » 2 » 2BITS.COM

Total: 372

Choose link from "Titles, links and description words view":

Or switch to "Titles and links view".
  • Setting up xdebug/DBGp for PHP on Debian/Ubuntu | 2bits.com, Inc. - Drupal Performance Tuning and Optimization, Managed Hosting and Consulting
    command completes you will have an xdebug so library You now need to configure apache to use it To do this edit your PHP configuration file etc php5 apache2 php ini and add in it the following section just before the Date heading zend extension usr lib php5 20051025 xdebug so debug Remote settings xdebug remote autostart off xdebug remote enable on xdebug remote handler dbgp xdebug remote mode req xdebug remote host localhost xdebug remote port 9000 General xdebug auto trace off xdebug collect includes on xdebug collect params off xdebug collect return off xdebug default enable on xdebug extended info 1 xdebug manual url http www php net xdebug show local vars 0 xdebug show mem delta 0 xdebug max nesting level 100 xdebug idekey Trace options xdebug trace format 0 xdebug trace output dir tmp xdebug trace options 0 xdebug trace output name crc32 Profiling xdebug profiler append 0 xdebug profiler enable 0 xdebug profiler enable trigger 0 xdebug profiler output dir tmp xdebug profiler output name crc32 If you are using this on a server that is separate from the machine that you run the IDE in then change the host name in xdebug remote host from localhost to the name of your server You can now use an IDE that supports DBGp to debug PHP applications including Drupal Contents Articles Developing tracing and debugging Drupal up Using vim and xdebug DBGp for debugging Drupal or any PHP application Add new comment Comments Another HOWTO Submitted by Visitor not verified on Tue 2007 01 16 04 12 There is another HOWTO that describes a bunch of useful Ubuntu apps configs including XDebug for Drupal devs You can see it at Free development environment reply Memory limit Submitted by Visitor not verified on Tue 2007 04 24 10 22 I got an error message about the memory limit being exceeded when running pecl to fix this open usr bin pecl and change the line exec PHP C n q INCARG d output buffering 1 d safe mode 0 INCDIR peclcmd php to exec PHP C n q INCARG d output buffering 1 d safe mode 0 d memory limit 24M INCDIR peclcmd php reply Error in Configuration chapter Submitted by Visitor not verified on Thu 2009 03 26 11 29 It reads If you are using this on a server that is separate from the machine that you run the IDE in then change the host name in xdebug remote host from localhost to the name of your server Should be If you are using this on a server that is separate from the machine that you run the IDE in then change the host name in xdebug remote host from localhost to the name of your machine where you run your IDE in reply xdebug code coverage Submitted by Visitor not verified on Wed 2010 03 17 09 33 Profiling worked just by following the steps It seems xdebug also does code coverage how do we

    Original URL path: http://2bits.com/articles/setting-up-xdebug-dbgp-for-php-on-debian-ubuntu.html (2016-05-02)
    Open archived version from archive

  • Using vim and xdebug DBGp for debugging Drupal (or any PHP application) | 2bits.com, Inc. - Drupal Performance Tuning and Optimization, Managed Hosting and Consulting
    in Preferences Debugging called Try to find files on the local filesystem when remote debugging this should work in cases where you are running Apache localhost As for the Vim implementation if you can get ahold of the developer or are interested in fixing the proxy issues yourself let me know and I can get you in contact with Shane Caraveo and or Derick Rethans the authors of the DBGP protocol reply Tried it Submitted by Visitor not verified on Sun 2006 12 10 17 29 I tried that before but it did not work Just to confirm I downloaded the latest Komodo beta and gave it a try again For remote files I used what is in the window title for example Remote URI file home blah drupal Local path home blah drupal So I set this in Komodo and use XDEBUG SESSION START Komodo breaks at the beginning of index php I then open feature module which I know where the current page load will go and set a break point I know that the mapping works because now I don t get a lock read only file from the server but the same file I opened I see the break point set but Komodo just whizzes over it and does not stop What is even more puzzling is that the breakpoints are ignored even in the index php If I set a breakpoint a few lines after the start Komodo does not break at that point either It makes no difference whether I set this mapping in the global Preferences or in the project itself 2bits Drupal consulting reply use an http url Submitted by Visitor not verified on Mon 2006 12 11 11 33 For the Remote URI field you should use the HTTP address So for example if my Apache docroot is var www I would do this Remote URI http localhost Local Path var www reply Nope Submitted by Visitor not verified on Tue 2006 12 12 20 10 No go This one makes the lock icon to come back meaning that the file is not successfully mapped I had better luck mapping it as in the previous reply Quanta Plus KDE s web development IDE maps it correctly but also does not support a proxy Not sure what else to try If you are interested to pursue this further email me at kb at this site 2bits Drupal consulting reply Still an Issue Submitted by Visitor not verified on Tue 2008 10 21 15 11 Has anyone figured out this issue here File Applications MacVim app Contents Resources vim runtime plugin debugger py line 1078 in debugger run debugger run File Applications MacVim app Contents Resources vim runtime plugin debugger py line 928 in run self protocol accept File Applications MacVim app Contents Resources vim runtime plugin debugger py line 560 in accept self stop I noticed a few people here who are having that issue Any help is much appreciated reply Re Still an Issue Submitted by Visitor not verified on Tue 2008 10 21 17 45 I hope this helps someone out there I figured out the issue This was probably pretty obvious to everyone else but in case there is a lonely googler out there like me searching for this answer here it is Apparently that error is generated when the connection to the remote session has failed it s not very descriptive obviously Paul reply Thanks Submitted by Visitor not verified on Fri 2006 12 29 00 26 Just wanted to say thanks for writing this extremely helpful article I m using gvim xdebug on my Mac with MAMP reply Andrei Zmievski VIM for PHP Programmers Submitted by Visitor not verified on Sun 2007 03 04 20 39 Andrei Zmievski is a technical Yahoo at Yahoo Inc In his talk VIM for PHP Programmers given in Vancouver s PHP conference February 2007 he links to this article about using xdebug DBGp to debug PHP applications He also repackages the debugging scripts in his vim configuration files 2bits Drupal consulting reply luck with vim7 Submitted by Visitor not verified on Fri 2007 03 23 02 21 just thought i d make a note here that this xdebug script seems to be generally incompatible with vim7 when i rolled back to vim6 4 i got it working generally well and it s been really useful unfortunately i don t know anything about the vim scripting language to figure how to update the script for the new vim version reply Not true Submitted by Visitor not verified on Fri 2007 03 23 10 41 I am using vim 7 0 35 and it works fine for me Ubuntu Edgy if anyone cares 2bits Drupal consulting reply still trouble here Submitted by Visitor not verified on Sat 2007 04 07 21 00 here on gentoo and when i was on windows i was having a heck of a time getting it to work especially with vim7 right now i m getting error code 5 Command not available errors thrown at me anyone know why that is reply figured it out Submitted by Visitor not verified on Wed 2007 04 11 01 41 finally figured out why i kept seeing this error i was trying to run the debugger when my breakpoints were in code that was not being called therefore it couldn t find anywhere to stop when hitting and yelled with this error posting to help anyone who like me was confused by this for a while reply tnx it helped me Submitted by Visitor not verified on Sat 2007 04 14 11 56 tnx it helped me reply Hello My configuration Submitted by Visitor not verified on Sat 2007 04 21 09 05 Hello My configuration is Apache 2 0 59 Win32 PHP 5 2 0 mod python 3 2 10 Python 2 4 3 Xdebug php xdebug 2 0 0rc3 5 2 1 dll Vim7 gvim WinXP Pro SP2 I ve setup xdebug as confirmed by phpinfo I ve also commented out all Zend Optimizer stuff in php ini I m successfully getting a connection to the debugger client debugclient 0 9 0 from xdebug However when I hit from within gvim and browse a web page I get this error in vim E499 Empty file name for or only works with p h silent edit D 3A 5Cwamp 5Cwww 5Cprojectname 5Cindex php File line 1 in File C Documents and settings Nasko vim local vimfiles plugin debugger py line 983 in debugger run debugger ui tracewin write sys ex info File C Documents and settings Nasko vim local vimfiles plugin debugger py line 137 in write self buffer append str msg split n vim error I ve googled for this error message unsuccessfully and I ve no idea what to try further Perhaps it is related to the strange directory delimiters in the file path I ll be thankful for any hints on this one Cheers Nasko reply Empty file name error fix Submitted by Visitor not verified on Thu 2007 06 14 14 58 The problem is that the filename is coming across the wire with special characters replaced by the xx notation The solution is to add the following snippet to the bottom of debugger py import urllib import os def fixFileName fileName fileName urllib unquote fileName if os name nt and fileName 0 fileName fileName 1 strip off initial slash char return fileName then filter the file name in handle init around line 735 like this file res firstChild getAttribute fileuri 7 file fixFileName file self ui set srcview file 1 I m still working through this so there may exist other file names that need to be fixed up as well reply another file name to be cleaned up Submitted by Visitor not verified on Thu 2007 06 14 15 14 also add a call to fixFileName to handle response stack get around line 769 for s in stacks self stacks append file fixFileName s getAttribute filename 7 line int s getAttribute lineno reply This last change was enough Submitted by Visitor not verified on Fri 2007 06 15 10 02 This last change was enough to get it to run I had some problems stepping over required files in the php source but stepping into those files seemed to not cause the error Anyway it was enough to do the debugging I needed Thanks for a great article reply Extra whitespace fix Submitted by Visitor not verified on Mon 2007 07 09 07 10 I ve applied your changes also but though they allow for special characters they still don t support spaces in filenames I ve put up a fix here http katherina student utwente nl matthijs cgi bin blosxom software PHP XDebug html reply asking for help with installation Submitted by Visitor not verified on Sun 2007 04 22 19 11 I d like to ask for some help with with installing xdebug I ve installed python and vim although I think my server might already have had it since I have been using the vi editor and then I have the extracted xdebug files debugger py and debugger vim at home myusername vim plugin but now what I ve tried running vim by typing vim at the command line and then hitting but that doesn t seem to do anything Am I missing a step here reply Key bindings not working Submitted by Visitor not verified on Mon 2007 07 23 06 11 Hey i tried running following your guide but It s not quite working I m running Debian and vim 7 0 122 xdebug is running correctly And when i try to execute python debugger run it actually starts the debugger but throws an exception if no connection is made This is not that big a problem The real issue is that all the key bindins in debugger vim aren t binded so starting the debugger by pressing F5 does not work and all the other bindings which is highly frustrating I guess the problem is really some sort of error in debugger vim I just don t know how do fix it Hope you guys can help regards Simon reply Complimentary Howto Guide Submitted by Visitor not verified on Wed 2007 08 01 08 55 I ve written a complimentary article to this one Easy PHP Debugging in Ubuntu using Xdebug and Vim I ve linked to this article from mine as it was a fantastic resource that and the setting up Xdebug article when getting this working on my machine My article aims to be a bit simpler aiming for people who know about PHP but not necessarily GNU Linux Thanks for the fantastic articles reply maybe the URL is wrong Submitted by Visitor not verified on Fri 2007 08 31 09 07 I click the article url and get a error page So I try to search the title inside the blog and get the right one http www apaddedcell com easy php debugging ubuntu using xdebug and vim reply Fixed Submitted by Visitor not verified on Fri 2007 08 31 10 01 I added the URL you pointed out Thanks 2bits Drupal consulting reply Another article Submitted by Visitor not verified on Sun 2007 09 30 11 53 An article on how to debug PHP with vim and xdebug 2bits Drupal consulting reply Can t get it to work at all Submitted by Visitor not verified on Thu 2007 11 01 01 57 Not sure if anyone is still looking at these comment posts but I ve got a question if someone is there to help I m running ubuntu gutsy 7 10 vim7 1 xdebug v2 0 2 dev installed as a zend extension using pecl and I m using Sam Ghoads version of the vim debugger that he modified from Seung Woo Shin For the life of me no matter what I do I always get this very unhelpful error message after hitting F5 and then refreshing the browser page to connect waiting for a new connection on port 9000 for 5 seconds Connection closed stop debugging AttributeError DbgProtocol instance has no attribute stop File usr share vim vim71 plugin debugger py line 1078 in debugger run debugger run File usr share vim vim71 plugin debugger py line 928 in run self protocol accept File usr share vim vim71 plugin debugger py line 560 in accept self stop My problem is that I don t even know where to start in figuring out how to troubleshoot this I ve gone and tried re installing xdebug in various ways and I definitely have xdebug working because it shows up in my phpinfo as well as it works for general profiling of php scripts I have vim with the python and signs flags compiled so I know python is working I even tried some python from the command mode inside vim It seems like a very simple process to set up I ve got the vim and py debugger files in my vim plugin directory so I haven t the slightest idea where to go for help on this If anyone on here has any ideas or knows where I should go to find help I d be much abliged reply I have the exact same Submitted by Visitor not verified on Sat 2007 11 03 23 04 I have the exact same problem So you are not alone reply I have gutsy it s working for me Submitted by Visitor not verified on Fri 2008 03 28 12 29 vim compiled from svn i don t think it matters though zeus web server php cgi stock gutsy i m using the stock vim plugin haven t tried his modified version php ini make sure you put this in the right php ini as shown by phpinfo Zend xdebug zend extension usr lib php5 20060613 lfs xdebug so xdebug remote enable 1 xdebug remote port 9000 xdebug remote host localhost reply Same problem Submitted by Visitor not verified on Tue 2009 01 06 08 54 I have pretty much the same config as the Gutsy example above I tried http localhost php1 php XDEBUG SESSION START 1 I get after 5 seconds AttributeError DbgProtocol instance has no attribute s File usr share vim vim71 plugin debugger py line 1078 in debugger run debugger run File usr share vim vim71 plugin debugger py line 928 in run self protocol accept File usr share vim vim71 plugin debugger py line 560 in accept self stop Running vim apache and xdebug from distro packages on Hardy 8 04 Phpinfo shows Xdebug installed and functional Jim reply watch closer Submitted by Visitor not verified on Tue 2009 02 17 01 32 I spend a lot of time with the same error but I fixed it when I realized that I have been written a wrong url in my case with like this http localhost php1 php XDEBUG SESSION START 1 I hope that helps reply In case this helps anyone Submitted by Visitor not verified on Sun 2009 12 06 20 46 In case this helps anyone else you will need to add the following line to your php ini file if it is not already there xdebug remote handler dbgp reply These three settings were the key for me Submitted by Visitor not verified on Fri 2010 08 06 20 02 I finally got this working because of the three settings mentioned above xdebug remote enable 1 xdebug remote port 9000 xdebug remote host localhost Running with MAMP 1 9 PHP 5 2 Mysql 5 1 44 Mac OSX 10 6 4 Mac Vim 7 2 Many thanks reply Try this Submitted by Visitor not verified on Mon 2008 05 19 14 19 May be you forgot XDEBUG SESSION START 1 in your url Try the following formats immediately after pressing F5 in Vim For clean URLs use http example com admin feature XDEBUG SESSION START 1 Otherwise use http example com q admin feature XDEBUG SESSION START 1 reply Attribute error Submitted by Visitor not verified on Sat 2008 10 11 08 59 Has anyone figured this one out I have the same exact line 1078 issue Ubuntu 8 0 4 Vim 71 XDEBUG 2 0 installed properly Using the XDEBUG START 1 just fine The connection debugging works fine with Eclipse and with Spectator so everything in the pipe is clean Why isn t this Vim capability working Thanks in advance id id invisionix com reply I was having the same Submitted by Visitor not verified on Wed 2009 03 04 09 38 I was having the same problem Reasons for me was using the old script not the Sam Ghods one http www vim org scripts script php script id 1929 selinux was stopping httpd connecting back to port 9000 solution setsebool P httpd can network connect 1 I just wasn t refreshing the page fast enough after hitting F5 Testing using the xdebug debugclient helped make it clear if when it was the script or something else reply xdebug problems with SELinux Submitted by Visitor not verified on Wed 2009 12 09 22 31 How to know SELinux enabled check in apache error log for the following statemetn notice SELinux policy enabled httpd running as context user u system r httpd t s0 Xdebug not getting loaded Failed loading usr lib64 php modules xdebug so usr lib64 php modules xdebug so cannot open shared object file Permission denied Failed loading usr lib64 php modules xdebug so usr lib64 php modules xdebug so cannot open shared object file Permission denied Failed loading usr lib64 php modules xdebug so usr lib64 php modules xdebug so cannot open shared object file Permission denied Command to be executed getsebool a grep httpd disable trans httpd disable trans off setsebool P httpd disable trans 1 getsebool a grep httpd

    Original URL path: http://2bits.com/articles/using-vim-and-xdebug-dbgp-for-debugging-drupal-or-any-php-application.html (2016-05-02)
    Open archived version from archive

  • Resources and links on debugging, tracing and profiling Drupal | 2bits.com, Inc. - Drupal Performance Tuning and Optimization, Managed Hosting and Consulting
    form values Drupal s trace module provides tracing for hooks database queries and errors Read the author s article on it Simple debugging tips for Drupal that does not involve an IDE nor a real debugger but worth reading and using Article on Debugging Drupal with ActiveState Komodo on drupal org uk This is a well written article covering local debugging Remote debugging is a bit more tricky to get going and setting it up with multiuser debugging is more challenging Article on setting Komodo for PHP on Mac OSX Although the article says this is remote debugging everything is running on the same box and no need to map local files to remote ones Debugging Drupal 6 x with Eclipse and Xdebug Another Eclipse and Xdebug article Debugging PHP on php net An somewhat old forum post on drupal org on debugging PHP An article by Steve M of OpenConcept on Debugging PHP on Ubuntu Feisty Fawn Adam Harvey is being mentored by Derick Rethans during the Google Summer of Code 2007 to develop a platform independent Xdebug client for PHP Got a good article about debugging Drupal or hints and tips on that Post it as a comment below Contents Articles Using vim and xdebug DBGp for debugging Drupal or any PHP application up Add new comment Comments debugging resource Submitted by rcross not verified on Thu 2013 07 04 02 36 http www lullabot com blog articles quick and dirty debugging is a good one to add reply Is your Drupal or WordPress site slow Is it suffering from server resources shortages Is it experiencing outages Contact us for Drupal and WordPress Performance Optimization and Tuning Consulting Contents Services Clients Testimonials News FAQ Payments Site Map Navigation Payment Recent content Do you use any of our Drupal

    Original URL path: http://2bits.com/articles/resources-and-links-on-debugging-tracing-and-profiling-drupal.html (2016-05-02)
    Open archived version from archive

  • PHP op-code caches / accelerators: Drupal large site case study | 2bits.com, Inc. - Drupal Performance Tuning and Optimization, Managed Hosting and Consulting
    runs php applications For example if I have a multi site drupal and civicrm install should I install opcode cache on just the domain holding the drupal civicrm codebase or on each domain that runs off the single codebase Thanks Venkat reply Once is enough Submitted by Visitor not verified on Sun 2007 03 04 12 11 This is on the PHP level and not on the Drupal level So doing it once on the VPS is enough for all domains 2bits Drupal consulting reply Thanks for the clarfication Submitted by Visitor not verified on Mon 2007 03 05 03 48 Thanks for the clarfication Khalid This set of articles on optimization are much appreciated Venkat reply op code caches and php as cgi Submitted by Visitor not verified on Thu 2007 04 26 11 52 Is it true that eaccelerator will not work if php is run as cgi I recompiled apache through WHM to run php with phpsuexec This changed php from running as an apache module to running as cgi and although a phpinfo php showed eaccelerator as installed all its values were disabled A quick check on webhostingtalk and other forums confirmed this Venkat reply can small sites benefit Submitted by Visitor not verified on Wed 2007 06 13 10 22 I see large scale sites mentioned a few times What basic tests can we run to see what if any optimization is beneficial in our individual situations I run a number of low volume small sites on a single linux box two in Drupal 4 7 and several in 5 1 both Drupal instances multisite I am also serving up a few low volume standard php sites with minimal processing header footer includes etc off the same box reply Depends Submitted by Visitor not verified on Wed 2007 06 13 11 22 Yes small sites can benefit if there are many of them on a single server Opcode caches do two things Speed the processing of PHP scripts including Drupal Reduce the memory consumption per Apache process Depending on how many pages you serve whether you get spikes in traffic e g be on Digg s front page it may be worth considering 2bits Drupal consulting reply drupal cache is a great place to begin Submitted by Visitor not verified on Wed 2007 06 13 12 10 Thanks for the great info and followup confidence in opcode caching for a multisite albeit small setup Before I can dive into setting up my opcode cache I wanted to share my glowing delight in Drupal core caching alone Normal setting Improvements went down from 1782 4614ms request to 132 249ms request on a particular drupal page built on a view CPU spiked but not really long enough for top to catch it over 60 I m thrilled with Drupal cache reply Different areas of optimization Submitted by Visitor not verified on Wed 2007 06 13 12 24 Drupal s cache and PHP s op code cache optimize different areas PHP op code cache optimize CPU utilization for PHP code load parse tokenize and the memory associated with these Drupal s cache optimizes database queries So the entire page is stored in a table and the next time a request comes in a single query is done rather than many Note that this only works for anonymous users not for authenticated logged in users It also gets cleared every time a node or comment is posted So depending on which area is the bottleneck in your site one would help or the other or both It is important to know where the bottleneck s are before optimizing Otherwise you are like barking the wrong tree 2bits Drupal consulting reply How often do seg faults occur Submitted by Visitor not verified on Tue 2007 07 24 03 12 It s described as once in a while that these seg faults occur Understood the size of the site matters but on average how often can one expect a crash Thanks Jay reply Hi Submitted by Visitor not verified on Mon 2008 02 11 08 46 Hi I am receiving following errors in my apache logs Mon Feb 11 00 36 28 2008 notice child pid 5751 exit signal Segmentation fault 11 Mon Feb 11 00 36 29 2008 notice child pid 14333 exit signal Segmentation fault 11 Mon Feb 11 00 36 31 2008 notice child pid 5750 exit signal Segmentation fault 11 Mon Feb 11 00 38 15 2008 notice child pid 30220 exit signal Segmentation fault 11 Mon Feb 11 00 38 18 2008 notice child pid 30225 exit signal Segmentation fault 11 Mon Feb 11 00 38 30 2008 notice child pid 14318 exit signal Segmentation fault 11 The error occurs when I enable comment module in my Drupal CMS installation the error only occurs while comment module is enabled and a blank page is served by apache to any blog post having comments the problem started when I got a cpanel backup restored as posted here http drupal org node 209107 Do you think this could be because of op code caches My webhosting provider and drupal support forum seem to be clueless reply Oh man yeah Thank Submitted by Visitor not verified on Sat 2008 04 19 01 47 Oh man yeah Thank you Not just for the graphs but for the munin link I kept trying to remember what it s name was but I couldn t quite place it INSTALLING reply APC and Disk Cache Submitted by Visitor not verified on Thu 2010 07 29 07 09 hi i ve been experimenting with disk cache and APC using my dedicated server and it seems disk caching is faster in one of the site we handle we have seen that in using disk caching enhanced the homepage load for only 3ms when we requested APC installed in our server and used it in caching our database loads slower 118ms although this is like you

    Original URL path: http://2bits.com/articles/php-op-code-caches-accelerators-a-must-for-a-large-site.html%20 (2016-05-02)
    Open archived version from archive

  • Abuse Drupal Best Practices at your own peril: Poor Performance | 2bits.com, Inc. - Drupal Performance Tuning and Optimization, Managed Hosting and Consulting
    and tricks on Drupal and WordPress Performance Contact us for Drupal and WordPress Performance Optimization and Tuning Consulting In Depth Articles Client Testimonials Developing tracing and debugging Drupal Drupal Performance Tuning and Optimization for large web sites PHP op code caches accelerators Drupal large site case study Abuse Drupal Best Practices at your own peril Poor Performance Admin Menu module Popular yet occasionally problematic Another botnet spamming Drupal web sites causing performance issues Apache 2 and PHP5 on Ubuntu Feisty bloated Apache with fcgid acceptable performance and better resource utilization Avoid excessive disk writes by avoiding PHP errors in your code Benchmarking APC vs eAccelerator using Drupal Benchmarking Drupal 5 x vs 6 x which one is faster Benchmarking Drupal from the shell command line Benchmarking Drupal with PHP op code caches APC eAccelerator and XCache compared Benchmarking PostgreSQL vs MySQL performance using Drupal 5 x Benchmarking Zend Server Community Edition with Drupal Benchmarking strings overrides vs locale module Beware of Drupal modules that disable the page cache Beware when Drupal Pressflow displays messages for anonymous users Botnet hammering web site causing outages Bottleneck Replacing taxonomy term count nodes in taxonomy dhtml Bypassing Drupal core Node Access table joins to avoid outage caused by slow queries Can a Drupal web site handle a million page views a day Case study Views Quicktabs and template php Common Issues and Solutions for Dealing with Cloud Computing and VPS performance issues for Drupal Configuring Apache Solr 3 6 for Drupal on Ubuntu 14 04 with password authentication Configuring Apache Solr 4 x for Drupal with password authentication Configuring Drupal with multiple bins for memcached Correct Client IP Address with a Reverse Proxy or Content Delivery Network CDN Do not configure the Service Links module with TinyURL com Drupal 7 x and Pressflow pitfalls can reduce your site s performance Drupal core caching and contributed content caching modules Drupal not saving admin pages with large number of input fields Drupal on a dedicated servers vs Amazon AWS EC2 Drupal performance tuning and optimization userpoints seminar at Open Craft Drupal site excessive memory usage traced to APC and php5 memcached Examples for Drupal custom caching Adding a cache timestamp to cached pages and HTTP headers Fast Parallel MySQL Backups and Imports with Mydumper Free your content of PHP Moving PHP code out of blocks views and nodes Google Crawler hitting your site too aggressively High PHP execution times for Drupal and tuning APC for include once performance High Performance Drupal with Apache MPM Worker Threaded Server and PHP FPM High server load because of repeating queries too many times Hosting Virtualization Virtuozzo OpenVZ vs Xen which is best How Drupal s node access table can negatively impact site performance How Google and Bing crawlers were confused by quicktabs How relying on connections to third party servers can be detrimental to performance How to reduce page load times by sending emails via cron rather on page submission Identifying aggressive crawlers using Go Access Improve Your Drupal

    Original URL path: http://2bits.com/api/abuse-drupal-best-practices-your-own-peril-poor-performance.html (2016-05-02)
    Open archived version from archive

  • Admin Menu module: Popular yet occasionally problematic | 2bits.com, Inc. - Drupal Performance Tuning and Optimization, Managed Hosting and Consulting
    457384 Eric reply Context module not very performant anyway Submitted by domidc not verified on Fri 2012 12 21 06 30 The context module isnt very performant when you have a large sets of contexts It has to loop through all its context to see if anything has to be triggered Better is page manager which just reacts to the path and has a far powerful context system reply Module for Drupal Submitted by Tyler Smith not verified on Mon 2013 08 12 04 58 Hy Why you dont try to use a module there are many usefull menu modules for drupal reply Is your Drupal or WordPress site slow Is it suffering from server resources shortages Is it experiencing outages Contact us for Drupal and WordPress Performance Optimization and Tuning Consulting Contents Services Clients Testimonials News FAQ Payments Site Map Navigation Payment Recent content Do you use any of our Drupal modules Did you find our Drupal WordPress and LAMP performance articles informative Follow us on Twitter 2bits for tips and tricks on Drupal and WordPress Performance Contact us for Drupal and WordPress Performance Optimization and Tuning Consulting In Depth Articles Client Testimonials Developing tracing and debugging Drupal Drupal Performance Tuning and Optimization for large web sites PHP op code caches accelerators Drupal large site case study Abuse Drupal Best Practices at your own peril Poor Performance Admin Menu module Popular yet occasionally problematic Another botnet spamming Drupal web sites causing performance issues Apache 2 and PHP5 on Ubuntu Feisty bloated Apache with fcgid acceptable performance and better resource utilization Avoid excessive disk writes by avoiding PHP errors in your code Benchmarking APC vs eAccelerator using Drupal Benchmarking Drupal 5 x vs 6 x which one is faster Benchmarking Drupal from the shell command line Benchmarking Drupal with PHP op code caches APC eAccelerator and XCache compared Benchmarking PostgreSQL vs MySQL performance using Drupal 5 x Benchmarking Zend Server Community Edition with Drupal Benchmarking strings overrides vs locale module Beware of Drupal modules that disable the page cache Beware when Drupal Pressflow displays messages for anonymous users Botnet hammering web site causing outages Bottleneck Replacing taxonomy term count nodes in taxonomy dhtml Bypassing Drupal core Node Access table joins to avoid outage caused by slow queries Can a Drupal web site handle a million page views a day Case study Views Quicktabs and template php Common Issues and Solutions for Dealing with Cloud Computing and VPS performance issues for Drupal Configuring Apache Solr 3 6 for Drupal on Ubuntu 14 04 with password authentication Configuring Apache Solr 4 x for Drupal with password authentication Configuring Drupal with multiple bins for memcached Correct Client IP Address with a Reverse Proxy or Content Delivery Network CDN Do not configure the Service Links module with TinyURL com Drupal 7 x and Pressflow pitfalls can reduce your site s performance Drupal core caching and contributed content caching modules Drupal not saving admin pages with large number of input fields Drupal on a dedicated

    Original URL path: http://2bits.com/admin-menu/admin-menu-module-popular-yet-occasionally-problematic.html (2016-05-02)
    Open archived version from archive

  • Another botnet spamming Drupal web sites, causing performance issues | 2bits.com, Inc. - Drupal Performance Tuning and Optimization, Managed Hosting and Consulting
    small png jpg In that instance I would configure varnish to pass through that particular item and let apache handle it Basically whatever caching system you have set up means you need to have to make an exception for that one file reply SWEET Submitted by Visitor not verified on Fri 2014 06 06 04 35 Sweet Thanks mate Based on your idea regex cleanup logic tweaks If they are requesting resources then they re probably not bots set cookie RewriteCond HTTP COOKIE realbrowser RewriteCond THE REQUEST system base css RewriteRule L co realbrowser getscookies HTTP Host 86400 Check if this goes to register user or add content If so the human cookie must be set If the dudes dont abide they get a 403 RewriteCond HTTP COOKIE realbrowser RewriteCond THE REQUEST user register node add RewriteRule F drop the bot s first hit which checks for Drupal RewriteCond HTTP COOKIE realbrowser RewriteCond REQUEST URI node 1 node RewriteCond HTTP REFERER site domain com RewriteRule F replace site domain com with your host The new generation of bots is slightly more evolved 1 checks for Drupal first by getting node 1 with the home page as the referer without of course visiting the home page and getting the cookie 2 attempts to GET user register and node add before POSTing which still eats up resources even if Drupal ultimately 403s the bastards The above is adjusted to cover for these two point as well reply Stupid question Submitted by Michel not verified on Fri 2014 06 20 08 50 Great trick but I am struggling to implement it Does the line RewriteCond THE REQUEST system base css need to be adapted as well to point to an existing file Whatever I do my access to node add or node register is rejected even once logged in reply I saw the same thing so Submitted by Victoria not verified on Fri 2014 06 27 05 57 I saw the same thing so changed that line to just require my theme s logo png file which did the job Clever reply RewriteCond THE REQUEST system base css Submitted by Visitor not verified on Tue 2014 08 26 20 19 This is a great idea Can you please provide an example of how you linked that to the png Thank you for the help reply RewriteCond THE REQUEST system base css Submitted by Visitor not verified on Tue 2014 08 26 20 15 Can you provide a example how you linked this code to your image please I think this code works excellent I am not able to link it to an image in my root reply Newbie try Submitted by Visitor not verified on Wed 2015 09 16 12 51 I am also having a difficulties to implements above rules Hence I adapted it to bellow If they are requesting resources then they re probably not bots set cookie RewriteCond HTTP COOKIE dude NC RewriteCond REQUEST FILENAME mytheme css png NC RewriteRule L co dude abides HTTP Host 86400 Check if this goes to register user or add content If so the human cookie must be set If the dudes dont abide they get a 403 RewriteCond HTTP COOKIE dude NC RewriteCond THE REQUEST user register node add RewriteRule F drop the bot s first hit which checks for Drupal RewriteCond HTTP COOKIE dude NC RewriteCond REQUEST URI node 1 node RewriteCond HTTP HOST HTTP REFERER https 1 RewriteRule F Tested used CURL on terminal and seems to be working as expected Nevertheless I am still not sure that this is the correct solution for all I hope you find it useful Cheers reply We can also think of using Submitted by Visitor not verified on Wed 2014 03 12 03 59 We can also think of using the url structure at regular intervals by using https drupal org project rename admin paths So bots will not be able find those paths reply Would not help Submitted by Khalid on Wed 2014 03 12 10 45 That would not help since they are also attacking regular web pages and posting stuff to registration to mailing list etc They seem to scan the site and post something specific to it reply Just another botnet attack on a Drupal site Submitted by meno1max not verified on Wed 2014 03 12 05 15 Hi I ve been fighting a similar attack for the last ten days or so It looks like a mix of the cases described here thousands of IPs from any continent just one request always the same POST HTTP 1 1 200 15303 no referrer ancient user agent Firewalling the site had no positive effect whatsoever Support suggested blocking POST but that would cripple Drupal I think I ll try the solution you suggested for a previous case Thanks Max reply captcha will help identify bots too Submitted by Visitor not verified on Wed 2014 03 19 15 58 We experienced the same exact problem although I took a more explicit approach I like Ryan Aslett s approach with setting cookies and blocking POST operations based on that We have been indexing our watchdog and access logs in Apache SOLR so we can quickly identify problem areas on the site and traffic patterns Regardless if you use Mollom and have your forms protected I hope you do 100 of the time on our side they are failing the captcha Look for the corresponding event in the watchdog it s something like Mollom Failed Captcha If you aggregate on that you can get a list of client IPs to block in htaccess or can block at the subnet level like we did But this is a maintenance item so I will be trying Ryan s recipe Thanks for sharing reply Resource hogging not spam Submitted by Khalid on Wed 2014 03 19 17 08 The problem is not that they are spamming They are indeed trying to but failing The problem is that

    Original URL path: http://2bits.com/articles/another-botnet-spamming-drupal-web-sites-causing-performance-issues.html (2016-05-02)
    Open archived version from archive

  • Apache 2 and PHP5 on Ubuntu Feisty: bloated? | 2bits.com, Inc. - Drupal Performance Tuning and Optimization, Managed Hosting and Consulting
    S 0 0 2 8 0 01 75 apache2 Contents Articles Another botnet spamming Drupal web sites causing performance issues up Apache with fcgid acceptable performance and better resource utilization Add new comment Comments 20 M process size Holy Cow Submitted by Visitor not verified on Fri 2007 10 19 08 39 Thank you very much for your detailed articles and benchmarks Actually they make me wet my pants we chose drupal based on the features not because of of its performance which was reportedly questionable for large sites I can hardly imagine what performance issues will arise but your articles may help We are about to migrate a hightraffic homegrown CMS site to drupal The old site has 16 M maximum process size with Apache 1 3 php 4 4 7 having jumped from 10M after introducing a couple of wordpress blogs Now there is this fine new pristine server Debian Etch Apache224 PHP524 APC3 1 15 where each and every Apache and php module extension is handpicked Nevertheless I already have a process size of 20 M with nothing else than drupal and only two persons using it at all 14694 wwwrun 15 0 186m 21m 17m S 0 0 3 0 00 46 httpd 14688 wwwrun 15 0 186m 20m 14m S 0 0 2 0 00 21 httpd I wonder where this is going to end up and will certainly keep an eye on your site Thanks for sharing this helpful information Regards Ulrich reply Drupal is scalable Submitted by Visitor not verified on Fri 2007 10 19 10 05 Drupal is indeed scalable I personally know of several sites who can handle a million page views a day on a single dedicated server with no sweat On one server we get around 17M per Apache process but it depends on what modules you have installed and other factors as well So yes Drupal is feature rich but is also very scalable 2bits Drupal consulting reply Is your Drupal or WordPress site slow Is it suffering from server resources shortages Is it experiencing outages Contact us for Drupal and WordPress Performance Optimization and Tuning Consulting Contents Services Clients Testimonials News FAQ Payments Site Map Navigation Payment Recent content Do you use any of our Drupal modules Did you find our Drupal WordPress and LAMP performance articles informative Follow us on Twitter 2bits for tips and tricks on Drupal and WordPress Performance Contact us for Drupal and WordPress Performance Optimization and Tuning Consulting In Depth Articles Client Testimonials Developing tracing and debugging Drupal Drupal Performance Tuning and Optimization for large web sites PHP op code caches accelerators Drupal large site case study Abuse Drupal Best Practices at your own peril Poor Performance Admin Menu module Popular yet occasionally problematic Another botnet spamming Drupal web sites causing performance issues Apache 2 and PHP5 on Ubuntu Feisty bloated Apache with fcgid acceptable performance and better resource utilization Avoid excessive disk writes by avoiding PHP errors in your code Benchmarking

    Original URL path: http://2bits.com/articles/apache-2-and-php5-on-ubuntu-feisty-bloated.html (2016-05-02)
    Open archived version from archive



  •