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".
  • How Google and Bing crawlers were confused by quicktabs | 2bits.com, Inc. - Drupal Performance Tuning and Optimization, Managed Hosting and Consulting
    by a crawler AND there is a quicktabs query parameter The idea here is bail out early and not incur the added performance overhead of a full Drupal bootstrap This is a meaningless URL anyways and should not be indexed as a separate page So far Google has not reacted negatively to that perhaps since we adjusted Google Webmaster to match reply Thank you for this approach Submitted by lennyaspen not verified on Mon 2011 11 07 15 24 I was just about to launch a new site tomorrow and how knows probably the google pagerank would have fallen reply Alterable RobotsTxt in core Submitted by Dave Reid not verified on Sat 2011 12 10 19 25 Another great reason why it would be good to have the RobotsTxt module in core http drupal org node 495608 reply Similar problem with Faceted Navigstion Submitted by cpliakas not verified on Tue 2013 04 09 09 11 Thanks for the great article We did a lot of research for Facet API on a similar problem and in case you are interested the relevant research plus some interesting responses is located in the Validate SEO approach taken by Facet API and determine if it would be worth adding an item to the checklist post on Drupal org Git the topic I thought it would be relevant to cross post 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

    Original URL path: http://2bits.com/bing/how-google-and-bing-crawlers-was-confused-quicktabs.html (2016-05-02)
    Open archived version from archive

  • How relying on connections to third party servers can be detrimental to performance | 2bits.com, Inc. - Drupal Performance Tuning and Optimization, Managed Hosting and Consulting
    www ESTABLISHED 5703 apache2 tcp 0 202 example com 50755 services digg com www ESTABLISHED 6562 apache2 tcp 0 227 example com 45244 services digg com www ESTABLISHED 6457 apache2 tcp 0 205 example com 50736 services digg com www ESTABLISHED 7062 apache2 tcp 0 236 example com 50745 services digg com www ESTABLISHED 7109 apache2 tcp 0 236 example com 45277 services digg com www ESTABLISHED 7013 apache2 tcp 0 204 example com 50757 services digg com www ESTABLISHED 6563 apache2 tcp 0 256 example com 45295 services digg com www ESTABLISHED 6960 apache2 tcp 0 185 example com 50818 services digg com www ESTABLISHED 6489 apache2 tcp 0 206 example com 45221 services digg com www ESTABLISHED 6475 apache2 tcp 0 207 example com 45268 services digg com www ESTABLISHED 7922 apache2 Now we know that it was connections to services digg com How many 169 connection at one point This means 169 Apache processes tied up doing nothing occuping memory waiting for the other end to respond Moreover with more incoming requests more and more memory was consumed causing the server to start swapping and going into thrashing and freezing up Digging into the site s module we found that it was the diggthis that was the culprit More accurately it was a combination of using module with a problem with a remote server accessed from the backend Disabling that module solved the problem So the morale of the story is to avoid having server side code that does calls to third party servers outside of your control If that server is down or slow your site will be down or slow too At least have a reasonable timeout value if you must do so Contents Articles How Google and Bing crawlers were confused by quicktabs up How to reduce page load times by sending emails via cron rather on page submission Add new comment Comments Here is a patch for timeout Submitted by Visitor not verified on Fri 2008 10 10 23 45 A patch in 156582 adds a timeout value to drupal http request 2bits Drupal consulting reply Signs of the widget bubble Submitted by Visitor not verified on Sat 2008 10 11 03 35 I ll go you one further these 3rd party widgets in drupal should use cron php to update their own cache occasionally in addition to having a short temper when it comes to outside servers locking them up in some perverted keep alive ruse reply death to blog widgets Submitted by Visitor not verified on Sat 2008 10 11 18 27 Yes blog widgets that rely on real time updates are the real problem in my opinion I wrote about this almost a year ago and found some data for it when it first really hit me Death to Blog Widgets reply You are right Submitted by Visitor not verified on Sat 2008 10 11 21 41 You are right Your blog post is mainly about front end widgets They do slow down the user s experience but they have no effect on the back end of the server This case of diggthis module doing server to server connections over the network killed the server totally not only made the site feel slow to users browsing it 2bits Drupal consulting reply Great find Submitted by Visitor not verified on Sat 2008 10 11 08 24 Great find reply The Web 2 0 Myth Submitted by Visitor not verified on Sun 2008 10 12 02 04 Thanks again for bringing attention to something that everyone should know There is no such thing as a free lunch The truth off web 2 0 is that you can mash anything together the myth of web 2 0 is that you can do it in real time If you are building for performance and scaling DO NOT use web services in real time As this example shows a dependency on an a service outside of your control can ruin your day andre reply One more vote to back up the others Submitted by Visitor not verified on Tue 2009 01 06 21 41 Indeed I ve become very disillusioned about most third party services In the better cases they seem like they slow things down a little bit at worse they re totally crippling to the performance and even the availability of a site and in all in all cases it puts a part of your code base out of your hands and makes it un testable unit testing wise Stay away from them as much as possibly can and only use them if you absolutely have to have to and never ever use one on for mission critical functionality says someone who has used a third party service in user registration workflow reply Dependence on Twitter Facebook Submitted by Nikhil not verified on Wed 2010 10 13 04 27 Indeed many sites now want to be social network compatible and adding FB like share and Twitter tweet buttons has become the norm I shudder to think the repercussions of such sites slowing down 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

    Original URL path: http://2bits.com/articles/how-relying-connections-third-party-servers-can-be-detrimental-performance.html (2016-05-02)
    Open archived version from archive

  • How to reduce page load times by sending emails via cron, rather on page submission | 2bits.com, Inc. - Drupal Performance Tuning and Optimization, Managed Hosting and Consulting
    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 Site Performance While Reducing Your Hosting Costs Improving the performance of Drupal s cron by using the Elysia cron module Increasing Drupal s speed via the Squid caching reverse proxy Installing PHP APC on GNU Linux Centos 5 Installing PHP APC on GNU Linux Ubuntu Gutsy Gibbon 7 10 and Debian Installing Varnish 3 x on Ubuntu Server 12 04 LTS and

    Original URL path: http://2bits.com/articles/how-reduce-page-load-times-sending-emails-cron-rather-page-submission.html (2016-05-02)
    Open archived version from archive

  • Identifying aggressive crawlers using Go Access | 2bits.com, Inc. - Drupal Performance Tuning and Optimization, Managed Hosting and Consulting
    total and 2 7G for that one ip and no identifying details for it other than a presumably faked browser id 2 76 GB 53922 home mybeonline logs access log 1 184 183 29 53 The only other address ranges that came close to hit count actual traffic was substantially lower had valid reverse dns ip ownership for common spiders eg GoogleBot Sogou Web Spider Baidu Spider 184 183 29 53 on the other hand identified itself as either Python urllib 2 5 or Mozilla 5 0 Macintosh U Intel Mac OS X 10 5 en US rv 1 9 0 11 Gecko 2009060214 Firefox 3 0 11 A line count of the logs showed 70 000 odd log lines grep Mozilla 5 0 Macintosh U Intel Mac OS X 10 5 en US rv 1 9 0 11 Gecko 2009060214 Firefox 3 0 11 home logs log home logs log 1 wc l 70120 A quick double check to make sure that the referrer matched the ip gave the same result grep Mozilla 5 0 Macintosh U Intel Mac OS X 10 5 en US rv 1 9 0 11 Gecko 2009060214 Firefox 3 0 11 home logs log home logs log 1 grep 184 183 29 53 wc l 70120 Guess the Firefox 3 0 11 is the new spambot Favourite As the User Agent seems remarkable close to the one listed on the botnet page http 2bits com botnet botnet hammering web site causing outages html you may want to take a look for that in future too Cheers Lawrence 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

    Original URL path: http://2bits.com/apache/identifying-aggressive-crawlers-using-goaccess.html (2016-05-02)
    Open archived version from archive

  • Improving the performance of Drupal's cron by using the Elysia cron module | 2bits.com, Inc. - Drupal Performance Tuning and Optimization, Managed Hosting and Consulting
    Visitor not verified on Tue 2010 08 10 08 59 Great article I came across Elysia a while back but wasn t quite sure how it compared with the other cron modules I ll have to give it a closer look Are there any suggested settings for common cron tasks Which to run hourly vs daily etc Also the example images appear broken reply Each site is different Submitted by Visitor not verified on Tue 2010 08 10 10 23 Well each site is different Depending on the modules you have size of the site number of nodes comments users and traffic things will be different Certain things should be very frequent for example if you are using job queue to defer mail to cron then this should be every 1 or 5 minutes That may need to change if you are using job queue for other heavier stuff though Log cleaning tasks statistics dblog etc should be once a day Content indexing is always a heavy tasks but site owners always want fresh search indexes reply Hm I get grumpy and don t Submitted by Visitor not verified on Sun 2010 08 15 02 55 Hm I get grumpy and don t want to touch any module that suggests I replace core files with their own even as just a suggestion reply You don t need to do that Submitted by Visitor not verified on Sun 2010 08 15 12 50 Replacing cron php is optional not mandatory to use this module We use it with the standard core cron php and it works well I think the module author is just documenting options and perhaps exaggerating the impact of using the standard cron php on performance We have not seen any degradation so far reply One dumb question Submitted by Visitor not verified on Mon 2011 01 24 05 59 I want to use Elysia Cron to run the search cron once every hour and every 30 mts session expire I want to use this module to clear the session clutter to improve the performance I ve specified these intervals in Elysia Cron Settings but not able to figure out how Elysia runs itself do I have to setup a Cron through the CPANEL for http www example com sites all modules elysia cron cron php and if yes what is the frequency to call this reply Yes set a crontab For Submitted by Visitor not verified on Thu 2012 08 16 22 01 Yes set a crontab For example wget O q t 1 http www example com sites all modules elysia cron cron php Read the INSTALL txt at module s folder for more info 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

    Original URL path: http://2bits.com/drupal-performance/improving-performance-drupals-cron-using-elysia-cron-module.html (2016-05-02)
    Open archived version from archive

  • Increasing Drupal's speed via the Squid caching reverse proxy | 2bits.com, Inc. - Drupal Performance Tuning and Optimization, Managed Hosting and Consulting
    could save 2 3 full seconds per page load just by filtering out the unused CSS identifiers There are some hand apps to find the unused identifiers and the ratios of used to total are pretty apalling if you look around various drupal sites 50 20 even 10 or less on large production drupal sites seems pretty common So wouldn t it be handy if some type of proxy scheme could first render the page from drupal then second trim unused css and javascript then third send that trimmed package over the pipe to the client For reference please see the questions at http drupal org node 338102 Any thoughts Can squid be combined with CSS pruning and or javascript pruning This would be a huge win and would put drupal back into the realm of usability for the rest of the world that s not ultra connected and if you re running a nonprofit web page where most clients have dial up it s a big deal Or is this way off base Thanks in advance reply This is off topic but I will Submitted by Visitor not verified on Sat 2008 12 13 22 42 This is off topic but I will answer it only this once We can continue in the issue you mentioned if you want Drupal is certainly for dialup and broadband and mobile phones and PDAs and everything 1 CSS is loaded only on the first access from any modern browser This means the first access will take a few seconds but subsequent ones will not load the CSS because they are stored in the browser s cache 2 You can go to admin settings performance and compress the CSS so it is only one file and not many This will cut the time needed for page loads 3 You can use the following code in template php to remove any CSS files you like and take the few pieces from them that is needed and you roll them into the style css of your theme function phptemplate variables hook vars css drupal add css System CSS unset css all module modules system system css unset css all module modules system defaults css Module CSS rm drupal get path module help help css unset css all module rm vars styles drupal get css css return vars 4 I am not sure if an automated approach would work It would be a lot of work but if such logic is developed the hard part writing a proxy to strip down the CSS would be the easy part reply css Submitted by Visitor not verified on Sat 2008 12 13 23 01 Thanks for the reply Will put more thought into it here reply Pre packaged derivative of Drupal with built in Squid support Submitted by Visitor not verified on Fri 2009 01 02 02 22 Four Kitchens maintains Pressflow a free open source derivative of Drupal featuring extensive performance improvements while maintaining compatibility with contributed modules We currently maintain Pressflow 5 and 6 which are derivatives of Drupal 5 and 6 Both have built in support for Squid and other reverse proxy caches We used Khalid s patch above for Pressflow 6 and we also adapted his patch for Pressflow 5 which required backporting some related proxy support code from Drupal 6 If you d like more information about how you can use Pressflow to scale your Drupal projects please contact Four Kitchens http fourkitchens com contact reply Modified for Drupal 5 Submitted by Visitor not verified on Thu 2009 01 15 11 49 Could the patch for Drupal 6 be modified for the Drupal 5 environment reply Yes but requires work Submitted by Visitor not verified on Thu 2009 01 15 12 06 It can be changed to work with Drupal 5 x but it is not simple since Drupal 6 x has the reverse proxy settings If you are interested in 2bits com working on this for you then please click on Contact on the top right of this page reply Patch does not work as of drupal 6 6 Submitted by Visitor not verified on Thu 2009 01 29 08 38 It seems that the exit in bootstrap inc function drupal page cache header line 643 has changed to return reply node access Submitted by Visitor not verified on Tue 2009 03 17 10 42 Sometimes I access via one node of the webservers I have two apache2 servers feeding the site through a reverse proxy Although making the changes to settings php corrected issues I was having with sitemaps for google delivering the local IP instead of the published URL Now I cannot directly access a single node out of the pair of web servers Is there a way to map through this so that a single node can be addressed I have mappings through the reverse proxy for them with their own url and then the main site is load balanced between them with session tracking reply I read on your post that you Submitted by Visitor not verified on Sun 2009 10 25 18 32 I read on your post that you need to set the variables base url http tuna example com cookie domain tuna example com on your settings php So you have to put the address of the machine running squid in there At least that s what it looks like on the example squid server is tuna and www server is head I ask because we have a couple of web servers and a couple of squid servers running with this setup and I always thought you had to put the website s real url in there not the cache one reply notice that it works if drupal cache is inables Submitted by Visitor not verified on Wed 2010 02 17 17 43 Hello friends great job In my case it only works if drupal cache is enabled i spent a couple of hours trying

    Original URL path: http://2bits.com/articles/increasing-drupals-speed-squid-caching-reverse-proxy.html (2016-05-02)
    Open archived version from archive

  • Installing PHP APC on GNU/Linux Centos 5 | 2bits.com, Inc. - Drupal Performance Tuning and Optimization, Managed Hosting and Consulting
    is enabled no checking for re2c no configure WARNING You will need re2c 0 13 4 or later if you want to regenerate PHP parsers checking for gawk gawk checking whether apc needs to get compiler flags from apxs Sorry I was not able to successfully run APXS Possible reasons 1 Perl is not installed 2 Apache was not compiled with DSO support enable module so 3 apxs is not in your path Try to use with apxs path to apxs The output of usr sbin apxs follows cannot open httpd build config vars mk No such file or directory at usr sbin apxs line 201 configure error Aborting ERROR var tmp APC configure with apxs failed My server run on Centos5 PHP Version 5 2 9 Note that I have no error when execute this previous command yum install php pear yum install php devel yum install httpd devel I hope your help Regards Adrian reply Me too Submitted by Visitor not verified on Tue 2009 10 27 06 44 Same for me same message APSX not available also CentOS 5 2 Installed without reply Fixed Submitted by Visitor not verified on Tue 2009 10 27 06 49 On CentOS 5 2 you need to do this to get APXS running yum install apr devel x86 64 reply php apc installation Submitted by Visitor not verified on Tue 2010 02 16 11 01 How to install the PHP APC Extension There are two ways to install this extension A Install from Source wget http pecl php net get APC 3 0 14 tgz gzip d APC 3 0 14 tgz tar xf APC 3 0 14 tar cd APC 3 0 14 locate php config it is in usr bin php cong Create configuration files Phpize Compile APC configure enable apc enable apc mmap with apxs with php config usr bin php cong make make install Edit pico etc php ini and add this extension apc so Restart the apache B Installing from Yum yum install php apc Go to this path usr share doc php pecl apc 3 0 14 apc php and copy apc php into your Document root for access from web For changing the settings got to this patch etc php d acp ini Setting parameter Enable apc extension module extension apc so Options for the apc module apc enabled 1 apc shm segments 1 apc optimization 0 apc shm size 32 apc ttl 0 apc ttl 7200 apc user ttl 7200 apc num files hint 1024 apc mmap file mask tmp XXXXXX apc enable cli 1 apc cache by default 1 reply Note these error 1 Perl is Submitted by Visitor not verified on Tue 2010 02 16 11 06 Note these error 1 Perl is not installed 2 Apache was not compiled with DSO support enable module so 3 apxs is not in your path Try to use with apxs path to apxs The output of usr sbin apxs follows cannot open httpd build config vars mk No such file or directory at usr sbin apxs line 201 configure error Aborting ERROR var tmp APC configure with apxs failed install php perl yum install php perl and also install apxs reply It was simple Very very simple Submitted by Visitor not verified on Tue 2010 05 11 17 28 Had same error Sorry I was not able to successfully run APXS Possible reasons 1 Perl is not installed 2 Apache was not compiled with DSO support enable module so 3 apxs is not in your path Try to use with apxs path to apxs The output of var tmp pear build slezhuk APC 3 0 19 n follows var tmp APC configure line 3457 var tmp pear build slezhuk APC 3 0 19 n No such file or directory configure error Aborting ERROR var tmp APC configure with apxs n failed The answer was for me to answer on question Use apxs to set compile flags if using APC with Apache yes not y but yes Yes it matters Killed 1 5 hours on this Yes i also added usr sbin to PATH it wasn t there for me Hope it helps somebody reply ECHO COMMAND IS WRONG Submitted by Visitor not verified on Wed 2010 07 14 09 43 Jeez over two years of people overwriting their php ini files and no one has complained Perhaps they didn t realize what happened Or maybe they did and were too embarrassed to respond to you Didn t test this did ya This is 100 dead wrong echo extension apc so etc php d apc ini It should be echo extension apc so etc php d apc ini That s a rookie mistake Fix your instructions reply Too much noise Submitted by Visitor not verified on Wed 2010 07 14 10 39 You are making too much noise without substance Double check your facts before making accusations that make you look like a fool in public I just checked the above instruction on a pristine CentOS 5 4 The etc php d apc ini file does not exist after pecl installs apc ls l etc php d total 4 rw r r 1 root root 51 Mar 31 02 51 dbase ini Now we create the file using the instructions I provided echo extension apc so etc php d apc ini And now it exists where it has not before ls l etc php d total 8 rw r r 1 root root 17 Jul 14 10 29 apc ini rw r r 1 root root 51 Mar 31 02 51 dbase ini Learn the difference between etc php ini and etc php d apc ini Perhaps this is lesson will be of some benefit to you reply I still maintain that it ll Submitted by Visitor not verified on Wed 2010 07 14 21 29 I still maintain that it ll overwrite the file if it exists And yes I will admit that I got the php ini and apc ini files mixed up Seems to me the better place to include the extension is in the php ini file which is where all the other extensions are defined anyway I believe some of the other install tutorials I found didn t mention the apc ini file at all and edited the php ini directly So my error no big deal reply Yes and no Submitted by Visitor not verified on Wed 2010 07 14 21 39 Yes any file that a is used for will be overwritten That is standard UNIX shell behavior No one has debated that As for php ini being a better place you are wrong again The whole idea of separating out the configurations into small extension specific files is that they can cleanly be created when an extension is installed and removed when it is uninstalled without affecting other extensions Most distro now do it that way instead of having one monolithic file that needs to be parsed and edited when an extension is added or removed Here is an example from an Ubuntu Debian derivative with a few extensions enabled in PHP they go to etc php5 conf d instead of etc php d but the same underlying idea rw r r 1 root root 33 Aug 24 2008 apc ini rw r r 1 root root 50 Jul 3 2008 gd ini rw r r 1 root root 75 Sep 26 2009 local ini rw r r 1 root root 56 Jul 3 2008 mysql ini rw r r 1 root root 57 Jul 3 2008 mysqli ini rw r r 1 root root 52 Jul 3 2008 pdo ini rw r r 1 root root 60 Jul 3 2008 pdo mysql ini rw r r 1 root root 804 Aug 8 2009 xdebug ini Yeah no big deal hence the combative tone of your original comment was unwarranted reply echo command is OK Submitted by Visitor zoka not verified on Sun 2010 10 10 19 38 That file do not exist it is not appending things to php ini it is creating new file with contest that echo outputs reply Error troubleshooting Submitted by Visitor not verified on Mon 2010 09 27 15 12 I received the following error when trying the documented steps above var tmp APC php apc c 959 error duplicate static make php apc lo Error 1 ERROR make failed I tried installing apc beta but got the following error bin sh var tmp pear build root APC 3 1 4 libtool mode compile cc I I var tmp APC DPHP ATOM INC I var tmp pear build root APC 3 1 4 include I var tmp pear build root APC 3 1 4 main I var tmp APC I usr include php I usr include php main I usr include php TSRM I usr include php Zend I usr include php ext I usr include php ext date lib DHAVE CONFIG H g O2 c var tmp APC apc c o apc lo libtool compile cc I I var tmp APC DPHP ATOM INC I var tmp pear build root APC 3 1 4 include I var tmp pear build root APC 3 1 4 main I var tmp APC I usr include php I usr include php main I usr include php TSRM I usr include php Zend I usr include php ext I usr include php ext date lib DHAVE CONFIG H g O2 c var tmp APC apc c fPIC DPIC o libs apc o In file included from var tmp APC apc c 44 usr include php ext pcre php pcre h 29 18 error pcre h No such file or directory In file included from var tmp APC apc c 44 usr include php ext pcre php pcre h 37 error expected asm or attribute before token usr include php ext pcre php pcre h 38 error expected asm or attribute before token usr include php ext pcre php pcre h 44 error expected specifier qualifier list before pcre var tmp APC apc c 356 error expected specifier qualifier list before pcre var tmp APC apc c In function apc regex compile array var tmp APC apc c 417 error apc regex has no member named preg var tmp APC apc c 417 error apc regex has no member named preg var tmp APC apc c 418 error apc regex has no member named nreg var tmp APC apc c 418 error apc regex has no member named nreg var tmp APC apc c In function apc regex match array var tmp APC apc c 450 error apc regex has no member named preg var tmp APC apc c 450 error apc regex has no member named preg var tmp APC apc c 451 error apc regex has no member named nreg var tmp APC apc c 451 error apc regex has no member named nreg make apc lo Error 1 ERROR make failed After a little googling I found the solution yum install pcre devel pecl install apc beta Hope this helps reply I was on this page and Submitted by Visitor not verified on Mon 2011 09 26 01 00 I was on this page and looking for solution but I was blinded to see this post so dumb After one hour and a lot of trail and error I finally have found the same solution you post here reply problem in apc install on centos version 5 5 Submitted by Visitor not verified on Fri 2010 11 12 06 35 we have install pac we have following step 1 yum install php pear php devel httpd devel 2 pecl install apc Then facing this problem Sorry I was not able to successfully run APXS Possible reasons 1 Perl is not installed 2 Apache was not compiled with DSO support enable module so 3 apxs is not in your path Try to use with apxs path to apxs The output of apxs follows var tmp APC configure line 3457 apxs command not found configure error Aborting ERROR var tmp APC configure with apxs failed reply How do you test it s working Submitted by J Guesclin not verified on Thu 2010 12 02 03 31 Assuming that all the installation runs ok and you manage to restart Apache is there some simple way of verifying that it is working other than just empirically noting page load times Also how do you go about uninstalling if it doesn t work Otherwise many thanks for a useful and easy to read tutorial reply Several things Submitted by Khalid on Thu 2010 12 02 09 31 There are several things that you can do to verify that APC is working 1 Check the output of phpinfo There should be an APC section there with the parameters it is using 2 Search usr share for a script called apc php Run it and you will see hit rate memory usage fragmentation etc While performance varies depending on site complexity the minimum improvement is that you should feel that most pages are at least 200 milliseconds less reply Need to yum install Submitted by Visitor not verified on Wed 2011 02 23 18 06 Need to yum install pcre devel for centos 5 reply I was having problem to Submitted by GDRafael not verified on Fri 2011 03 04 08 32 I was having problem to install APC via pecl cause I didn t install the pcre devel This was very helpful Thank you very much guys reply Same Thanks It solved my Submitted by Visitor not verified on Thu 2011 12 08 09 36 Same Thanks It solved my problem reply yum install pcre devel did Submitted by Zahir not verified on Tue 2011 04 26 15 54 yum install pcre devel did the trick APC installed In phpinfo apc shows as one of the modules but none of the variables like those below show apc enabled 1 apc shm segments 1 apc optimization 0 apc shm size 32 apc ttl 0 apc ttl 7200 apc user ttl 7200 apc num files hint 1024 apc mmap file mask tmp XXXXXX apc enable cli 1 apc cache by default 1 How do we know its installed and working Also we located apc php but executing it in a browser gives us 500 error Thanks a ton reply This did the trick Thank Submitted by Matt not verified on Sat 2012 01 14 14 09 This did the trick Thank you reply A video tutorial would be Submitted by Visitor not verified on Sun 2011 10 16 11 19 A video tutorial would be greatly appreciated as I m sure there are many newbies such as myself who don t have the slightest idea how to work this Between google dealing with a hosting helpdesk who is losing his her patience and my own complete frustration with trying to figure this out I am requesting a video tutorial please reply pblm make install Submitted by justin namara not verified on Thu 2011 10 20 10 53 make apc lo Erreur 1 ERROR make failed root ks32755 for pecl install apc reply problem Submitted by Levani not verified on Wed 2012 01 04 06 48 Can t run the first command successfully Here is what I get Loaded plugins fastestmirror Repository base is listed more than once in the configuration Repository updates is listed more than once in the configuration Repository extras is listed more than once in the configuration Repository centosplus is listed more than once in the configuration Repository contrib is listed more than once in the configuration Determining fastest mirrors Plesk 951 B 00 00 Plesk Third Party 951 B 00 00 base 1 1 kB 00 00 extras 2 1 kB 00 00 updates 1 9 kB 00 00 Excluding Packages in global exclude list Finished Setting up Install Process Resolving Dependencies Running transaction check Package php pear noarch 1 1 4 9 6 el5 set to be updated Processing Dependency php devel for package php pear Running transaction check Package php devel x86 64 0 5 1 6 27 el5 5 3 set to be updated Processing Dependency php 5 1 6 27 el5 5 3 for package php devel Processing Dependency autoconf for package php devel Processing Dependency automake for package php devel Running transaction check Package autoconf noarch 0 2 59 12 set to be updated Processing Dependency imake for package autoconf Package automake noarch 0 1 9 6 2 3 el5 set to be updated Package php devel x86 64 0 5 1 6 27 el5 5 3 set to be updated Processing Dependency php 5 1 6 27 el5 5 3 for package php devel Running transaction check Package imake x86 64 0 1 0 2 3 set to be updated Package php devel x86 64 0 5 1 6 27 el5 5 3 set to be updated Processing Dependency php 5 1 6 27 el5 5 3 for package php devel Finished Dependency Resolution php devel 5 1 6 27 el5 5 3 x86 64 from base has depsolving problems Missing Dependency php 5 1 6 27 el5 5 3 is needed by package php devel 5 1 6 27 el5 5 3 x86 64 base Error Missing Dependency php 5 1 6 27 el5 5 3 is needed by package php devel 5 1 6 27 el5 5 3 x86 64 base You could try using skip broken to work around the problem You could try running package cleanup problems package cleanup dupes rpm Va nofiles nodigest The program package cleanup is found in the yum utils package What do the last two errors mean and how should I fix it php devel 5 1 6 27 el5 5 3 x86 64 from base has depsolving problems Missing Dependency php 5 1 6 27 el5 5 3 is

    Original URL path: http://2bits.com/articles/installing-php-apc-gnulinux-centos-5.html (2016-05-02)
    Open archived version from archive

  • Installing PHP APC on GNU/Linux Ubuntu Gutsy Gibbon 7.10 (and Debian) | 2bits.com, Inc. - Drupal Performance Tuning and Optimization, Managed Hosting and Consulting
    8 and these have been the best instructions I ve been able to find so far so thanks I m running into problems after downloading the pacakages Specifically when I try the pecl install apc command I get the following 54 source files building running phpize Cannot find config m4 Make sure that you run usr bin phpize in the top level source directory of the module ERROR phpize failed I do have a config m4 file in the usr local src APC 3 0 19 directory which is where I m trying to run pecl install apc Now if I run usr bin phpize I get a little bit farther usr local src APC 3 0 19 usr bin phpize Configuring for PHP Api Version 20041225 Zend Module Api No 20060613 Zend Extension Api No 220060519 At that point I continued on with the remaining steps no errors But I m not sure if this worked How do I verify the APC module is installed Thanks for any suggestions Sir timbit 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

    Original URL path: http://2bits.com/articles/installing-php-apc-gnulinux-ubuntu-gutsy-gibbon-710-and-debian.html (2016-05-02)
    Open archived version from archive



  •