May
22
2012
-
$ mkdir blog
$ cd blog
$ svn co http://core.svn.wordpress.org/trunk/ .
apt-get update
-
<VirtualHost nnn.nnn.nnn.nnn:443> ServerName www.mysite.com SSLEngine On SSLCertificateFile /etc/apache2/ssl/thissite.crt SSLCertificateKeyFile /etc/apache2/ssl/thissite.pem SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown DocumentRoot /var/www/mysite <IfModule mod_rewrite.c> RewriteEngine On RewriteRule !^/wp-admin/(.*) - [C] RewriteRule ^/(.*) http://www.mysite.com/$1 [QSA,L] </IfModule> ... </VirtualHost> # Insecure site <VirtualHost *> ServerName www.mysite.com DocumentRoot /var/www/ii/mysite <Directory /var/www/ii/mysite > <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^wp-admin/(.*) https://www.mysite.com/wp-admin/$1 [C] RewriteRule ^.*$ - [S=40] RewriteRule ^feed/(feed|rdf|rss|rss2|atom)/?$ /index.php?&feed=$1 [QSA,L] ... </IfModule> </Directory> ... </VirtualHost>
May
16
2012
-
// Add Site Favicon // function site_favicon() { echo '<link rel="shortcut icon" type="image/x-icon" href="'.get_bloginfo('stylesheet_directory').'http://diww.s3.amazonaws.com/favicon.ico.gzip" />'; } add_action('wp_head', 'site_favicon'); // Add Admin Favicon // function admin_favicon() { echo '<link rel="shortcut icon" type="image/x-icon" href="'.get_bloginfo('stylesheet_directory').'/images/favicon.ico" />'; } add_action('admin_head', 'admin_favicon');
-
- RewriteEngine On
- RewriteBase /
- RewriteRule ^index\.php$ - [L]
- # uploaded files
- RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]
- RewriteCond %{REQUEST_FILENAME} -f [OR]
- RewriteCond %{REQUEST_FILENAME} -d
- RewriteRule ^ - [L]
- RewriteRule . index.php [L]
-
- Create a new group (www-pub) and add the users to that group.
- Change the ownership of everything under /var/www to root:www-pub.
- Change the permissions of all the folders to 2775
- Change all the files to 0664.
- Change the umask for your users to 0002
-
- chown root /u
- Change the owner of /u to "root".
- chown root:staff /u
- Likewise, but also change its group to "staff".
- chown -hR root /u
- Change the owner of /u and subfiles to "root".
-
Installing the SSH2 PHP extension on CentOS
Top Tags
View All Recent Tags (10)
Erik James Albaugh's Public Lists (20)
Highlighter, Sticky notes, Tagging, Groups and Network: integrated suite dramatically boosting research productivity. Learn more »
Join Diigo