Created
April 16, 2010 05:37
-
-
Save adeleinr/368062 to your computer and use it in GitHub Desktop.
PHP Cheatsheet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Installing apc in LAMP and WAMP | |
-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! | |
-LAMP was easy, just get APC from yum install | |
Setting up vhosts in LAMP | |
-Add vhost usual syntax to httpd.conf | |
#This is to keep a link to the orignial localhost if you want to run apc.php for example | |
ServerAdmin webmaster@localhost | |
DocumentRoot “/var/www/html” | |
ServerName localhost | |
ErrorLog “logs/localhost-error.log” | |
CustomLog “logs/localhost-access.log” common | |
DocumentRoot “/home/ubersmith/public/www” | |
ServerName ubersmith.raptorcommerce.com | |
Options -Indexes | |
Order Deny,Allow | |
Deny from all | |
allow from all | |
-Add site name to /etc/hosts for dns resolving. | |
-Make sure the directory in the document root in the vhost config is searchable by apache. so chmod 755 it. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment