We now have a workaround for the Langara network-related issues with respect to MAMP and WordPress.
Specifically, we have normally had to download themes or plugins manually—and then install them by copying them to the wp-content/themes or wp-content/plugins folders.
Now, however, with a small edit to a configuration file in each site we’re working on in the lab, we can now use the normal WordPress interface for themes and plugin installs, as well as updates.
The file is in the root level of any WordPress installation: wp-config.php is where the details of your database name, password, host, etc are stored when you set up WordPress for the first time.
Open it up in a text editor.
The information you will put in can go anywhere. Here I will put it after the MySQL Settings section, before the Authentication Keys and Salts section.
/* Langara Network Proxy Settings for use in labs with MAMP. If you move the site to another server, remove these three lines. */ define('WP_PROXY_HOST', 'proxy.langara.bc.ca'); define('WP_PROXY_PORT', '8080'); define('WP_PROXY_BYPASS_HOSTS', 'localhost');
I would also suggest editing the Table of Contents section around line 9, just to include a reference to the new section you’ve created:
* This file contains the following configurations: * * * MySQL settings * * Langara Proxy Settings For WP Use with MAMP * * Secret keys * * Database table prefix * * ABSPATH
Thanks to Langara IT, especially Mac Guy Mike Schmidt, for the workaround.