So far, Production check seems awesome, but I'm having a few problems at the moment.
When viewing the Prod-check report at admin/reports/prod-check ,
there is a link to APC at admin/reports/status/apc&destination=admin/reports/prod-check.
The data shown on this page is correct but the graphs do not dispay. Also, following the links to the other APC data displays gets me the browsers "not found" message. For example, the button/link to "View Host Stats" (which is actually the default page that comes up) has this address: http://localhost/mydrupalsite/admin/reports/status/apc?SCOPE=A&SORT1=H&S... The result is the same for all buttons/links as well as the graphs: "Not Found. The requested URL was not found on this server."
I am currently developing my website on my Ubuntu 11.10 home computer. APC is installed and running. The APC "Host Stats" page displays just fine here: localhost/mydrupalsite/apc.php?SCOPE=A&SORT1=H&SORT2=D&COUNT=20&OB=1 In order to look at it there I extracted and copied the apc.php file from /usr/share/doc/php-apc to the root folder of my Drupal installation.
Any help or direction with this would be very much appreciated. Thanks in advance for your time!
Drupal skill level = beginner ;-)
Comments
Comment #1
malc0mn commentedHmz, will have to check myself as the apc.php file you are referring to is exactly what has been integrated in prod_check... Unless there is a newer version available or something like that...
What APC version are you using? Could you compare your apc.php file to includes/prod_check.apc.inc.
Note: there will be small differences which had to be made to integrate the apc.php file into Drupal.
Comment #2
bharata commentedI am running APC 3.1.7, but a newer version (3.1.13) is available at http://pecl.php.net/package/APC/3.1.13
How can I best communitate to you the differences in the two files? When looking at them with Kompare if I ignore changes in case, the amount of whitespace or added/removed empty lines I get the following statistics:
Please forgive the huge amount of stuff below but perhaps it's helpful.
I also did a diff from the command line with the following command and got the info pasted below:
diff -u -b -B -d -i --ignore-case --ignore-space-change apc.php prod_check.apc.inc
Comment #3
malc0mn commentedGimme some time on this, I'll probably be able to test it on some systems tomorrow.
Edit: managed to test one system already, running FreeBSD, Apache, PHP 5.2.17 (using php5-fpm) and the latest version of APC (3.1.13). No problems at all.
A quick scan of the code shows the images are generated using the GD library:
Have you installed the php5-gd package?
$ sudo apt-get install php5-gdEdit 2: hmz, you said the latest apc.php file runs just fine, so the GD library must be up and running then. What version of PHP are you using?
Comment #4
bharata commentedThank you so much for you help with this malc0mn.
admin/reports/status/php says: PHP Version 5.3.10-1ubuntu3.6
Comment #5
malc0mn commentedStill no luck in reproducing... How are you running PHP? Using fast-cgi and php-fpm or just plain old mod_php?
Comment #6
bharata commentedThanks for getting back to me. To be honest I have know idea and would need to do some research to even figure out where to look up such information. It seems like I will be needing to take a different direction for the time being. I had been trying to get everything working on my home based localhost before going live. I'm not officially live yet, still writing content for the site and putting some final touches on the structure, but I have been practicing uploading the site and database and making everything work online. Things are working really well so far but APC is not installed on the server. My current web hosting is shared so installing APC could be a pain. I think there is a funky way of installing it in one of my site's sub-folders but I'm not sure if it's worth the effort because the site is quite responsive at things currently are. I think for the moment I will just simply enjoy all of the other wonderful features this module provides and I will come back to the APC thing later if needed.
Thanks again for all your help!! It really is a great module, especially for a first timer.
Comment #7
malc0mn commentedAllright, glad you like the module anyway ;-)
About APC: I really doubt that you can install it yourself on a shared hosting environment as it's a pecl PHP extension and needs it's own config files that need to be loaded when the server is started up.
Comment #8
malc0mn commentedDo you know if the server you had/have this problem on is perhaps nginx? I'm seeing this issue on an ngnix server right now running php-cgi:
Comment #9
malc0mn commentedlatest version of the official apc.php page integrated in the X.x-1.x-dev releases. Feel free to test if it makes a difference on your system (have not been able to test it on the ngnix environment I encountered the problem on due to deploy / update policies there)
Comment #10
anybodyAPC isn't that relevant anymore since OPC.