-
Couldn't load subscription status.
- Fork 171
Full Installation Notes
This is a set of plugins, themes, and configuration files for jQuery's website infrastructure, which is powered by WordPress. It is designed as a custom content directory. So think of web-base-template as your wp-content directory.
-
Configure your local webserver with a virtual host that covers the relevant jQuery domains, such as
*.jquery.comand*.jqueryui.com, all pointing to the same root. For example, in Apache:<VirtualHost *:80> ServerName local.jquery.com ServerAlias *.jquery.com *.jqueryui.com *.jquery.org *.qunitjs.com *.sizzlejs.com *.jquerymobile.com DocumentRoot "/srv/www/jquery" <Directory "/srv/www/jquery"> Options All AllowOverride All Order allow,deny Allow from all </Directory> </VirtualHost>You do not need to configure your
/etc/hostsfile forlocal.*becausejquery.com's DNS handles this for you. -
Place the WordPress core files in the document root you chose. (Don't install it.) You can do this any number of ways:
- Download the latest version from http://wordpress.org/latest.zip
- Check out the latest tag from http://core.svn.wordpress.org/tags/
- Clone the official WordPress Github mirror at http://github.com/wordpress/wordpress/
-
Clone
web-base-templateinto place, so you have a file tree that looks like this:web-base-template/ wp-admin/ wp-content/ wp-includes/ index.php ... -
Copy
web-base-template/wp-config-sample.phpand move it up one directory, towp-config.php. Fill in your database credentials. -
Create an .htaccess file with the following content into that same document root:
RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteRule ^resources/?$ index.php [L] RewriteRule ^resources/(.+) gw-resources/%{HTTP_HOST}/$1 [L] # Add a trailing slash to the wp-admin of a subsite. RewriteRule ^([_0-9a-zA-Z\.-]+/)?wp-admin$ $1wp-admin/ [R=301,L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L] # Handle wp-admin, wp-includes, and root PHP files for subsites. RewriteRule ^[_0-9a-zA-Z\.-]+/((wp-admin|wp-includes).*) $1 [L] RewriteRule ^[_0-9a-zA-Z\.-]+/(.*\.php)$ $1 [L] RewriteRule . index.php [L] -
Make sure that you have assigned your WordPress files and directories the correct permissions.
For example, if your WordPress files are in the directorywordpress, and you are running Apache under Mac OS X with the_wwwuser:sudo chown -R _www wordpress sudo chmod -R g+w wordpress -
Go to
http://local.jquery.comand walk through the standard WordPress installation.web-base-templateincludes a special install script that will initialize the entire network. -
Be sure to have node >= 0.8 installed on your system. Some sites, such as download.jqueryui.com, require that version or greater.
Refer to the instructions for how to build content for individual sites (e.g. jquery.com, api.jquery.com, etc.)