Greenguy's Board

Greenguy's Board (http://www.greenguysboard.com/board/index.php)
-   Blogs and Blogging (http://www.greenguysboard.com/board/forumdisplay.php?f=8)
-   -   I learned not to put WP in the root domain on one you post a lot of galleries too (http://www.greenguysboard.com/board/showthread.php?t=50049)

RedCherry 2008-11-13 01:10 PM

I learned not to put WP in the root domain on one you post a lot of galleries too
 
I got a gallery on the hun today, and it took my server down. I've gone through this once before, and we figured it was my .htaccess file preventing hotlinking, which they moved from .htaccess into an apache config file.

Come to find out, my gallery was on a domain that I also have a blog in the root domain. According to Chris at Phatservers:

Quote:

Hi Virginia, while memory is getting maxed out, it's not really due to the traffic hitting your gallery. It seems to be more because a lot of the traffic seems to be hitting wordpress on this site. When the hun listing is getting traffic on this domain, the wordpress database for this site is generating a lot of load on mysql by creating a lot of temporary tables non stop.

It's possible that the rewrite code for the wordpress site is just triggering hits to the index.php because of it. It's a very bad idea to run wordpress in the root directory of a site, while using the site for other things such as galleries.

I've disabled the re-write code for permalink's in wordpress, and everything is running great now.
So I moved the blog to a sub directory, put an index page that clicks through to the blog. Should solve the problem and my box is running smooth.

I don't know if anyone else in blog land has had this issue, but FYI just in case. And if you did have this issue, did you solve it some other way than moving your blog off your root directory?

walrus 2008-11-13 03:38 PM

I had never thought about it before but I guess it does make sense. WP seems to do it's own 404 error processing

RedCherry 2008-11-13 06:31 PM

He said as soon as he commented out the rewrite code for wordpress, it made a huge difference on the server load for that one domain. I'm putting index pages that have static links to categories, and link trades that look like site, then a clickable link to the actual blog.


All times are GMT -4. The time now is 10:42 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc