Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I am attempting to get a local version of a live WP site working. I have pulled down the entire file structure. I have a copy of the DB. After setting up locally, I get a few random issues such as:

  1. Permalinks not working properly
  2. Javascript error
  3. Content generally not loading properly.
  4. 500 errors (probably caused by the .HTACCESS)
  5. This error caused by a plugin: Warning: Parameter 1 to ace_where() expected to be a reference

I suspect it has something do with a server setting of which I am unaware. The live server is IIS. I am running OSX with the built-in Apache.

I have many other WP installations working fine locally. Any thoughts, comments, or suggestions are appreciated.

Here is the .htaccess:

RewriteEngine on
RewriteCond %{HTTP_HOST} ^client.com$
RewriteRule ^(.*)$ "http\:\/\/www\.client\.com\/$1" [R=301,L]
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /~client/
RewriteCond /home2/client/public_html/wp-content/sitemaps%{REQUEST_URI} -f
RewriteRule \.xml(\.gz)?$ /~client/wp-content/sitemaps%{REQUEST_URI} [L]

RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /~client/index.php [L]
</IfModule>

# END WordPress
share|improve this question
    
IIS does not use .htaccess, disable your plugins and go back to default permalinks (rename your .htaccess and create a new one by swithcing permalinks back on).This question is impossible to answer and does not fit the format of WPSE very well. –  Wyck Feb 26 '13 at 17:34
    
Sorry for the bad question :( but thanks for the input. The .htaccess file is generated by the installation of WP. The issue probably revolves IIS/Apache, and this ACE plugin: wordpress.org/extend/plugins/advanced-category-excluder –  Scott Simpson Feb 26 '13 at 18:39

1 Answer 1

If you're on OSX, look into MAMP. It's developed with WordPress in mind and generally works without any further configuration. Just copy your files into the web root directory, set up an empty database, and install.

share|improve this answer
    
Sure, MAMP is great. But my WP environment works, just not with this site. I am pretty sure it has to do with an out-of-date plugin, and variances between PHP versions. –  Scott Simpson Feb 27 '13 at 1:44
    
I'm sure you could get it working with the built in Apache on OSX.. but I know every site I've tried to run using the built in server has had some sort of bug. –  bcorkins Feb 27 '13 at 15:01

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.