News for hackers. Stuff that matters.
Re:WordPress 3.0 available by Terretta on Thursday June 17, 2010 @01:55PM (#1439765)
If someone has a recommendation on the best method of configuring this for multiple domains (not subdomains) on a cloud host, I'd appreciate the pointer.

I've found this: http://blog.mixu.net/2010/05/17/setting-up-multisite-wordpre...

Which references this: http://www.interconnectit.com/840/wordpress-3-0-multisite-wi...

These assume you can edit your Apache conf, and many cloud hosts don't support that.

Re:WordPress 3.0 available by ryanjkirk on Thursday June 17, 2010 @03:01PM (#1440011)
Wait, is the term "cloud host" now being used to define shared web hosting as well as everything else it already means?
Re:WordPress 3.0 available by Terretta on Thursday June 17, 2010 @03:27PM (#1440086)
In this case, I mean not shared web hosting in the VPS sense (one server, many customer sites) but web farm or web cluster (your site on many servers).
Re:WordPress 3.0 available by mvandemar on Thursday June 17, 2010 @03:40PM (#1440124)
Sorry about the hijack, but you're not on Rackspace, are you? Wordpress sites there have been getting hacked quite a bit lately, it looks like they have a security issue.
Re:WordPress 3.0 available by ryanjkirk on Thursday June 17, 2010 @05:31PM (#1440420)
Got it. To me, those terms are more understandable.
Re:WordPress 3.0 available by Otto42 on Friday June 18, 2010 @09:24AM (#1442115)
Read this: http://weblogtoolscollection.com/archives/2010/06/02/wordpre...

Then read this: http://ottopress.com/2010/wordpress-3-0-multisite-domain-map...

I use this exact method (and a subdirectory, not a subdomain install) to run multiple domains off on a WP 3.0 installation on cheap, shared, GoDaddy hosting. No apache config editing whatsoever.

Re:WordPress 3.0 available by Terretta on Friday June 18, 2010 @10:43AM (#1442348)
Fantastic. The second article seems exactly what I was looking for.

Also appreciate the article references workarounds (eg., use trunk version of plugin). I'm suspicious of articles suggesting everything "just works".

Thank you, Otto.

Re:WordPress 3.0 available by jasonlbaptiste on Thursday June 17, 2010 @03:07PM (#1440033)
how many domains? I have a nice setup going on with rackspace Cloud:

- One DB server - The application server (wordpress install) - Cloudfiles with CDN enabled for speed.

Adding in multiple domains isn't hard either. Email me if you need help: [email protected]

Re:WordPress 3.0 available by neurotech1 on Thursday June 17, 2010 @02:43PM (#1439953)
I haven't tested this with 3.0, but I had a dedicated IP for my WPMU installation. If the site is configured in the WPMU panel, it would work, without any Apache config needed.
Re:WordPress 3.0 available by eisokant on Thursday June 17, 2010 @03:29PM (#1440091)
Our startup runs on WP3 and the ability to allow multiple domains. Feel free to email me at [email protected] or add me on Skype: eisokant. I think I can give you some pointers.
Re:WordPress 3.0 available by mvandemar on Thursday June 17, 2010 @03:47PM (#1440140)
When I go a suitable period of time with no Wordpress 3.0 users contacting me for a de-hacking job, then I will upgrade. :)
Re:WordPress 3.0 available by jsiarto on Thursday June 17, 2010 @03:02PM (#1440017)
Sorry for the shameless self-promotion, but I'm just about done with Head First Wordpress (http://www.amazon.com/Head-First-WordPress-Brain-Friendly-Cr...). It covers Wordpress 3.0 (although not the MU integration) and I've tried to make it more about using Wordpress as a content management system. This is exciting news from the WP team and there are a ton of cool new features in this release--my favorite being the menu admin and custom header images.
Re:WordPress 3.0 available by askedrelic on Thursday June 17, 2010 @02:22PM (#1439875)
I look forward to new 0-day hacks and admin vulnerabilities!
Re:WordPress 3.0 available by photomatt on Thursday June 17, 2010 @04:30PM (#1440237)
Come on guys -- it's been a while. We oversee or advise on blogs for basically every major media site (CNN, WSJ, NYT, IHT, TechCrunch, GigaOM...) as well as running WordPress myself (and WP.org) for 7+ years and have never had an application level exploit. If WP was really as insecure as you suggest, all of the news sites would look like 4chan.

It's possible to run WP in a secure manner. Just because some people don't doesn't mean you can't. It doesn't require crazy wget hacks, just updating. You can even automate it with SVN.

If anyone has questions or would like best practices for running WP in a secure manner, I'd be happy to answer them, here or over email -- [email protected].

Re:WordPress 3.0 available by dcurtis on Thursday June 17, 2010 @05:36PM (#1440440)
You should make running WordPress securely a thoughtless process. The best practices should be clearly explained to every single user who downloads/installs it.
Re:WordPress 3.0 available by photomatt on Thursday June 17, 2010 @05:53PM (#1440502)
Sure -- the simplest way to keep it secure is just keep it updated.

To this end we work with numerous third-party hosts to help them update their customers, and have invested significantly in a notification and upgrade system for 10k+ plugins, 1k+ themes, and of course the core software. This was a particular PITA because runs on so many platforms with wildly different constraints and configurations. We blog, tweet, and email 200k people whenever there's a new release and offer free help on our forums to anyone who is stuck. Someday we might even offer auto-update in core just like many hosts already do.

My comment was more aimed at the HN audience which might want pro tips for staying updated or more defense in depth. For example I have a cron job run `svn up` on my site every morning which keeps it up to date whether I'm in front of my computer or on a beach sipping mai tais.

Re:WordPress 3.0 available by chaosmachine on Thursday June 17, 2010 @06:03PM (#1440541)
"I have a cron job run `svn up` on my site every morning"

Can you really trust that not to randomly break your site? Surely you'll run into regressions or backwards-incompatibilities at some point?

Re:WordPress 3.0 available by photomatt on Thursday June 17, 2010 @06:16PM (#1440595)
What I suggest for most folks is to tie it to a stable branch, that way you get overnight fixes but nothing potentially backward-incompatible. When a major release comes out, you need to svn switch to the new branch.

Many folks in the WP community, including myself, svn up to trunk. I wouldn't recommend that for the general public, but I think it's only broken my site once in the past year and I fixed it by running svn up again. If I was smarter I would script it to svn up, check the site, revert if it was blank. WP.com syncs to WordPress trunk pretty regularly, as well, sometimes daily depending on where WP is in its release cycle or if we have to do any database migrations.

Re:WordPress 3.0 available by thenbrent on Thursday June 17, 2010 @08:58PM (#1440947)
You're trying to say WordPress is to blame for not making server administration, across multiple * nix flavours thougthless.

WordPress has secure defaults and the codex does a good job of providing instructions if you really want to go modifying the default.

There will always be tutorials out there saying

  chmod 777 *
Rookie users will follow these tutorials and then blame WP because they find a whole bunch of malicious scripts show up in their wordpress directory.

EDIT: formatting

Re:WordPress 3.0 available by ryanjkirk on Thursday June 17, 2010 @05:52PM (#1440498)
Has Automattic or wordpress.org published anything like the various guides found across the internet? I know you offered to email, but it would be great to see something published that is tested and comprehensive.
Re:WordPress 3.0 available by photomatt on Thursday June 17, 2010 @05:55PM (#1440516)
Sure, this page is pretty comprehensive:

http://codex.wordpress.org/Hardening_WordPress

(And much is applicable to many web apps besides WordPress.)

Re:WordPress 3.0 available by ryanjkirk on Thursday June 17, 2010 @07:07PM (#1440725)
I've seen this page before but actually thought it to be fairly basic. What about topics such as moving wp-config.php outside of public_html, renaming the wp-admin folder, and automattic's position on some of the various 3rd-party security plugins?

One thing I don't understand, is why I can't access the admin over SSL if the Wordpress domain isn't the Apache SSL domain? For example, I can't go to https://example.com/domains/mydomain.com/wp-admin/ without getting a failed redirect. This is a major annoyance, as I can't set up another SSL site on the server without leasing another IP.

Re:WordPress 3.0 available by Otto42 on Friday June 18, 2010 @09:23AM (#1442103)
Moving wp-config.php outside of the public html folder is easy. Just do it. WordPress checks the main root level and one level above for it automatically. No configuration needed.

Renaming wp-admin is not currently possible. This is slated for future versions though.

And the reason WordPress doesn't use relative URLs is because it uses a rewrite system for most of the site. With the permalink system, most of the URLs don't actually exist as real directories, but are simply indicators to tell WordPress what sort of things you're looking for. Now, I grant you that this is not the case for the admin side of things, which uses direct links to files and the like. Those links there, however, are relative.

However, the reason the admin redirects to the right URL is because of the secure cookie handling. Cookies in WordPress are carefully controlled as to which URLs they are sent to, they're not just indiscriminately sent to the whole site. If you're using SSL Login and Admin, then the login cookies are only sent to the SSL side of things, and only to requests in the admin directories, etc. Other cookies are sent to the normal non-SSL side, which will identify you for login purposes, but not allow you administrative access. All this careful cookie handling means that the correct domain must be present for everything to work. It can't work through some other domain that it doesn't know about.

Re:WordPress 3.0 available by photomatt on Friday June 18, 2010 @12:10AM (#1441307)
Moving wp-config.php out of public_html is mentioned on that page, section 9. I think renaming the wp-admin would probably break more than it protects.

Not sure on the second question.

Re:WordPress 3.0 available by ryanjkirk on Friday June 18, 2010 @12:39AM (#1441356)
Don't get me wrong, I love WordPress. And I can't stand Joomla. But Joomla works completely off relative URL's so it doesn't have to know it's location. The links work no matter what domain you put it on. You can access the CMS through example.com/~myusername/domains/joomladomain/ or myusername.example.com/domains/joomladomain/ or joomladomain.com/ and it will for fine every way. Which means SSL will work without a dedicated IP address. This would be awesome.
Re:WordPress 3.0 available by steveklabnik on Thursday June 17, 2010 @02:42PM (#1439947)
While I agree with you... what to use instead? It seems that all the other CMS/blogging platforms have the same issues...
Re:WordPress 3.0 available by callahad on Thursday June 17, 2010 @03:20PM (#1440067)
Static site generators using Disqus for comments seem to be quite popular in certain circles.
Re:WordPress 3.0 available by steveklabnik on Thursday June 17, 2010 @03:24PM (#1440074)
It's true, I used to use Jekyll myself. Unfortunately, this won't work for the site I'm building for my girlfriend's father...
Re:WordPress 3.0 available by tjpick on Friday June 18, 2010 @12:31AM (#1441344)
I gave my GF's mother a weebly site. She loves it.
Re:WordPress 3.0 available by nuclear_eclipse on Friday June 18, 2010 @07:50AM (#1441906)
My father is now running his site on Weebly too, and he thinks it's fantastic.
Re:WordPress 3.0 available by sjs382 on Thursday June 17, 2010 @03:46PM (#1440137)
I use WordPress + wget as a static site generator for a client of mine. Works wonders. :)

Headed to Refresh Pittsburgh tonight? There's a presentation about WP3.

Re:WordPress 3.0 available by steveklabnik on Thursday June 17, 2010 @03:57PM (#1440163)
Iiiinteresting. That sounds terrible... but awesome.

I didn't know it was happening tonight. Maybe. We'll see. I've been on a roll with Hackety Hack lately, and I want to make sure I have a few hours to put in.

Re:WordPress 3.0 available by askedrelic on Thursday June 17, 2010 @03:51PM (#1440148)
Whoa, someone else from Pittsburgh? I've been looking for hackers/tech culture around Pittsburgh and haven't managed to find too much so far. I think I will check this out tonight.
Re:WordPress 3.0 available by sjs382 on Thursday June 17, 2010 @03:58PM (#1440170)
http://www.refreshpittsburgh.org/

There are events pretty much every month, but I haven't made any in a while this will be my first Refresh Pittsburgh all year. Make sure ya say hello to this guy: http://bit.ly/9jELdY (me)

Might want to add RefreshPittsburgh, Devhouse Pittsburgh and Dorkbot Pittsburgh to the events calendar, too.

Re:WordPress 3.0 available by steveklabnik on Thursday June 17, 2010 @03:54PM (#1440156)
Check out my project, http://pghtechevents.com/ ;)
Re:WordPress 3.0 available by jauer on Thursday June 17, 2010 @03:19PM (#1440065)
MovableType seems to not have as many issues.
Re:WordPress 3.0 available by aasarava on Thursday June 17, 2010 @07:22PM (#1440763)
Just because there aren't as many known exploits for MT doesn't mean it's more secure than WP. That's the same argument used when people say Apple software is more secure than Microsoft software. Yet if Apple software was used by more than 90%+ of businesses, it's likely more people would attempt to (and possibly find ways to) hack it.

Security aside, MT has lots of issues -- performance (or lack thereof) being one of them and bad upgrades being another. After the third time an upgrade broke some sites I manage, I gave up and migrated some sites to WordPress and some to Drupal. Have yet to come across the same issue.

Re:WordPress 3.0 available by ck2 on Thursday June 17, 2010 @07:58PM (#1440842)
MT does not disclose many security issues and instead slips fixes quietly into new releases.
Re:WordPress 3.0 available by photomatt on Thursday June 17, 2010 @04:18PM (#1440212)
It also seems to have not as many users.
Re:WordPress 3.0 available by pcarmichael on Thursday June 17, 2010 @04:27PM (#1440232)
I'll take that over constantly having to upgrade my install or recovering from being hacked.
Re:WordPress 3.0 available by mitchellhislop on Friday June 18, 2010 @12:51AM (#1441376)
Really? You will take a less vibrant, less helpful, and less forward-moving community over WP because you cant set it up right?
Re:WordPress 3.0 available by weego on Friday June 18, 2010 @03:52AM (#1441613)
How forward-moving do you need a system that allows you to manage content within site templates to be?
Re:WordPress 3.0 available by nnash on Thursday June 17, 2010 @01:50PM (#1439734)
Looking forward to using custom post types and the integration of WPMU and WP. Wordpress is really coming into its own as a CMS.
Re:WordPress 3.0 available by ck2 on Thursday June 17, 2010 @06:11PM (#1440574)
Wait 24-48 hours for 3.0.1 (and then another few days for 3.0.2)

I'm not being funny, it happens with nearly every WP release because they do everything last minute.

Re:WordPress 3.0 available by photomatt on Thursday June 17, 2010 @06:26PM (#1440633)
I bet you $10 it won't this time. :)
Re:WordPress 3.0 available by ck2 on Thursday June 17, 2010 @07:30PM (#1440780)
Considering there was code added/changed during the "code sprint" the morning after Wordcamp SF while y'all were likely hung over, I'll take that bet ;-)

If I win, you have to drop everything and fix the backtick code bug on bbpress.org

ps. I also consider the bet won if there is a major issue posted on TRAC within a week, even if you delay a bugfix release.

http://core.trac.wordpress.org/report/1?asc=1&sort=sever...

Re:WordPress 3.0 available by photomatt on Friday July 09, 2010 @03:41PM (#1501941)
I believe I won this one. Drop me an email at [email protected]. :)
Re:WordPress 3.0 available by photomatt on Friday June 18, 2010 @11:00AM (#1442399)
Okay on bet.

Can you email me details of the backtick bug?

Re:WordPress 3.0 available by Tawheed on Thursday June 17, 2010 @03:38PM (#1440119)
Nice! With WP MU built-in, now a 100 Posterous clones can pop up.
Re:WordPress 3.0 available by tjmaxal on Thursday June 17, 2010 @02:01PM (#1439784)
I'm so glad they have merged MU and Wordpress!

Now if I could just figure out how to get the darn thing to work properly.

Re:WordPress 3.0 available by pixelcort on Thursday June 17, 2010 @02:00PM (#1439778)
How do the new feature in WP3 compare to similar features in Drupal?
Re:WordPress 3.0 available by wmeredith on Thursday June 17, 2010 @02:31PM (#1439915)
I can almost assure you that they're probably easier to use. That's always been WordPress' strength, despite its weaknesses.
Re:WordPress 3.0 available by GiraffeNecktie on Thursday June 17, 2010 @02:45PM (#1439959)
Drupal 7 should be out in a few months and will address ease of use (along with some major advances under the hood)
Re:WordPress 3.0 available by jzting on Thursday June 17, 2010 @05:22PM (#1440397)
Being able to define custom post types is a huge step--it's becoming a more robust CMS than just a blogging platform now.

A good article on custom post types: http://kovshenin.com/archives/custom-post-types-in-wordpress...

Re:WordPress 3.0 available by pan69 on Thursday June 17, 2010 @09:14PM (#1440984)
It seems that Wordpress and Drupal are growing closer and closer to each other. Drupal is still more powerful though, even-though it's more complex to get up and running with. From a developer point of view they can be equally as awkward to develop for.
Re:WordPress 3.0 available by ddemchuk on Thursday June 17, 2010 @05:23PM (#1440400)
Hopefully the settings to enable Mu functionality isn't easy to get to, or else millions of people are going to upgrade and turn that on because they think it'd be cool and "I'm sure other people want to blog on my site!" and then get spammed to hell by parasite hosting spammers.
Re:WordPress 3.0 available by jdub on Thursday June 17, 2010 @06:31PM (#1440646)
No user interface for the multisite/multiuser functionality appears until a constant is set in the configuration file. So most users will never see it, and those who do really wanted to. :-)
Re:WordPress 3.0 available by photomatt on Thursday June 17, 2010 @06:27PM (#1440635)
It's hidden a bit, you have to enable it in the config file, and of course it still requires subdomains and such to be properly configured. I expect this to make not much difference for WordPress users, but should be night and day for people who were running MU.