Regarding my particular APC setup:
APC 3.1.9
PHP 5.3.3/fCGI/SuEXEC
Apache 2.2.15
CentOS 6.3
I would like to keep only one copy of apc.php that can be accessed via any of the vhosts on the server. What's the recommended way to do this?
It seems that apc.php doesn't play well with apache Alias directive. apc.php only exists is on one of the vhosts, is set to 644 and it doesn't seem to matter who owns it: if I try to access it via an alias I get only gibberish:
Do I really need to use a symbolic link for this purpose or can I make an Apache alias work?
apc
is being displayed rather than interpreted. The vhost it resides on is probably not configured to interpret PHP files.Fix your vhost configuration (make sure the PHP module is loaded or the CGI is configured, and the appropriate
AddType
directive for PHP files has been added to your Apache configuration.(Instructions on how to do both of these items can be found in the PHP documentation.)