Guest User

Untitled

a guest
May 22nd, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. Installing apc in LAMP and WAMP
  2.  
  3. -WAMP sucks, no APC binary/dll for windows found anywhere for the newest versions of PHP ie php 5.3. And yes, the APC binary must match exactly the php version duh!
  4. -LAMP was easy, just get APC from yum install
  5.  
  6. Setting up vhosts in LAMP
  7.  
  8.  
  9. -Add vhost usual syntax to httpd.conf
  10.  
  11. #This is to keep a link to the orignial localhost if you want to run apc.php for example
  12.  
  13. ServerAdmin webmaster@localhost
  14. DocumentRoot “/var/www/html”
  15. ServerName localhost
  16. ErrorLog “logs/localhost-error.log”
  17. CustomLog “logs/localhost-access.log” common
  18.  
  19. DocumentRoot “/home/ubersmith/public/www”
  20. ServerName ubersmith.raptorcommerce.com
  21.  
  22. Options -Indexes
  23. Order Deny,Allow
  24. Deny from all
  25. allow from all
  26.  
  27. -Add site name to /etc/hosts for dns resolving.
  28.  
  29. -Make sure the directory in the document root in the vhost config is searchable by apache. so chmod 755 it.
Add Comment
Please, Sign In to add comment