localhost installs
-
I recently did my first bbpress install on localhost and it went miserably. I used the latest download from today.
Checking on this forum I had the same path seperator issues and stylesheet issues others had, etc.
My $bb->domain and $bb->path were fine. The fresh install just didn’t work properly under xampp and then again a retry on easyPHP.
This is the solution and findings I found:
1. The first issue is because in config.php and bb-load.php dirname(__FILE__) is used to get the base path for BBPATH. This is not a good thing on localhost Windows based installs.
2. There are a number of attempted workarounds to this that I’ve read about in this forum. All of them that I saw didn’t work. Focusing on the issue with the stylesheet href not being correct I noticed that there was logic in the bb_get_active_theme_folder() function.
By default, the installer does NOT create an option entry ‘bb_active_theme’ in the database table topicmeta. The code logic doesn’t make the correct uri.
To fix this, do an install and then add a database field bb_active_theme in the topicmeta table.
For example, I set mine to:
Playing regular expression games to change x: and in general is not worth it. This seemed to be simple and worked right out of the box.
- You must be logged in to reply to this topic.